@@ -0,0 +1,902 @@
+package edu.mit.csail.db.ml;%0A%0Aimport edu.mit.csail.db.ml.server.storage.EventDao;%0Aimport jooq.sqlite.gen.Tables;%0Aimport jooq.sqlite.gen.tables.records.EventRecord;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class TestEvent %7B%0A  private int expRunId;%0A%0A  @Before%0A  public void initialize() throws Exception %7B%0A    expRunId = TestBase.reset();%0A  %7D%0A%0A  @Test%0A  public void testStore() throws Exception %7B%0A    // Try storing an event.%0A    EventDao.store(2, %22testevent%22, expRunId, TestBase.ctx());%0A%0A%0A    // Verify that the proper value is stored.%0A    Assert.assertEquals(1, TestBase.tableSize(Tables.EVENT));%0A    EventRecord rec = TestBase.ctx().selectFrom(Tables.EVENT).fetchOne();%0A    Assert.assertEquals(2, rec.getEventid().intValue());%0A    Assert.assertEquals(%22testevent%22, rec.getEventtype());%0A    Assert.assertEquals(expRunId, rec.getExperimentrun().intValue());%0A  %7D%0A%7D%0A

Test for EventDao