// ------------------------------------------------------------------------- @Test public void test_basics() throws Exception { assertNotNull(_cnvMaster); assertEquals(true, _cnvMaster.getUniqueIdScheme().equals("DbCnv")); assertNotNull(_cnvMaster.getDbConnector()); assertNotNull(_cnvMaster.getClock()); }
// ------------------------------------------------------------------------- @Test public void test_addAndGet() throws Exception { MockConvention cnv = new MockConvention("London", ExternalIdBundle.of("Test", "OG"), Currency.GBP); ConventionDocument addDoc = new ConventionDocument(cnv); ConventionDocument added = _cnvMaster.add(addDoc); ConventionDocument loaded = _cnvMaster.get(added.getUniqueId()); assertEquals(added, loaded); }
// ------------------------------------------------------------------------- @Test public void test_toString() { assertEquals("DbConventionBeanMaster[DbCnv]", _cnvMaster.toString()); }