public void testNull() throws Exception { try { ObjectStoreWriterFactory.getObjectStoreWriter(null); fail("Expected: NullPointerException"); } catch (NullPointerException e) { } }
public void testEmpty() throws Exception { try { ObjectStoreWriterFactory.getObjectStoreWriter(""); fail("Expected: IllegalArgumentException"); } catch (IllegalArgumentException e) { } }
public void testInvalid() throws Exception { try { ObjectStoreWriterFactory.getObjectStoreWriter("db.unittest"); fail("Expected: ObjectStoreException"); } catch (ObjectStoreException e) { } } }
@Before public void setup() { try { osw = ObjectStoreWriterFactory.getObjectStoreWriter(ALIAS); } catch (ObjectStoreException e) { LOG.error("Could not initialise object-store", e); return; } }
protected void setUp() throws Exception { super.setUp(); uosw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.userprofile-test"); if (uosw instanceof ObjectStoreWriterInterMineImpl) { con = ((ObjectStoreWriterInterMineImpl) uosw).getConnection(); } trackQueue = new ArrayBlockingQueue<Track>(count); //create the table if doesn't exist LoginTracker.getInstance(con, trackQueue); }
@Before public void setup() throws ObjectStoreException { osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); MainHelper.RangeConfig.rangeHelpers.put(EmploymentPeriod.class, new EmploymentPeriodHelper()); }
public void testValid() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); assertNotNull(osw); osw.close(); }
public void setUp() throws Exception { super.setUp(); os = ObjectStoreFactory.getObjectStore("os.unittest"); userProfileOSW = ObjectStoreWriterFactory.getObjectStoreWriter("osw.userprofile-test"); userProfileOS = userProfileOSW.getObjectStore(); pm = new NonCheckingProfileManager(os, userProfileOSW); }
@AfterClass public static void shutdown() throws Exception { try { osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); ObjectStoreTestUtils.deleteAllObjectsInStore(osw); } finally { osw.close(); } }
public void setUp() throws Exception { writer = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); iw = IntegrationWriterFactory.getIntegrationWriter("integration.unittestmulti"); loader = new XmlDataLoader(iw); binding = new XmlBinding(writer.getModel()); toDelete = new ArrayList(); }
@AfterClass public static void shutdown() throws Exception { try { osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); ObjectStoreTestUtils.deleteAllObjectsInStore(osw); } finally { osw.close(); } }
protected void setUp() throws Exception { super.setUp(); uosw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.userprofile-test"); os = ObjectStoreFactory.getObjectStore("os.unittest"); initQueries(); initWebConfig(); initData(); }
@BeforeClass public static void setUp() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); osw.close(); }
@Before public void setUp() throws Exception { osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); os = osw.getObjectStore(); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); }
public void setUp() throws Exception { super.setUp(); pm = im.getProfileManager(); storeDataWriter = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(storeDataWriter, data); }
@Before public void setUp() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); os = osw.getObjectStore(); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); osw.close(); }
@BeforeClass public static void setUp() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); os = osw.getObjectStore(); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); osw.close(); }
public void setUp() throws Exception { super.setUp(); classKeys = im.getClassKeys(); pm = im.getProfileManager(); storeDataWriter = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(storeDataWriter, data); setUpUserProfiles(); }
@Before public void setUp() throws Exception { osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); os = osw.getObjectStore(); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); runner = getRunner(true); runnerMatchAll = getRunner(false); }
public void setUp() throws Exception { super.setUp(); classKeys = im.getClassKeys(); pm = im.getProfileManager(); storeDataWriter = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(storeDataWriter, data); setUpUserProfiles(); }