Package ch.agent.crnickl.api

Examples of ch.agent.crnickl.api.Chronicle


    }
  }

  public void test3() {
    try {
      Chronicle e1 = db.getChronicle(BASE, true);
      Chronicle e2 = db.getChronicle(e1.getSurrogate());
      assertEquals(e1, e2);
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here


    }
  }
 
  public void test4() {
    try {
      Chronicle e1 = db.getChronicle(BASE, true);
      Chronicle e2 = db.getChronicle(e1.getSurrogate());
      assertEquals(e1.getSchema(true), e2.getSchema(true));
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

    }
  }
 
  public void test5() {
    try {
      Chronicle e1 = db.getChronicle(BASE, true);
      Chronicle e2 = db.getChronicle(e1.getSurrogate());
      assertEquals(e1.getCollection(), e2.getCollection());
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

    }
  }
 
  public void test6() {
    try {
      Chronicle e = db.getChronicle(db.getTopChronicle().getName(true), true);
      e.getAttribute("Currency", true);
      expectException();
    } catch (Exception e) {
      assertException(e, D.D40101);
    }
  }
View Full Code Here

    }
  }

  public void test7() {
    try {
      Chronicle e = db.getChronicle(db.getTopChronicle().getName(true), true);
      assertNull(e.getSurrogate().getObject());
    } catch (Exception e) {
      fail(e.toString());
    }
  }
View Full Code Here

   * Bug 4423
   * 2012-03-16
   */
  public void test8() {
    try {
      Chronicle e1 = db.getChronicle(db.getTopChronicle().getName(true), true);
      db.getChronicle(e1.getSurrogate());
      expectException();
    } catch (Exception e) {
      assertException(e, D.D02102);
    }
  }
View Full Code Here

    }
  }
 
  public void test9() {
    try {
      Chronicle e = db.getChronicle(BASE, true);
      e.getAttribute("Currency", true);
      expectException();
    } catch (Exception e) {
      assertException(e, D.D40114);
    }
  }
View Full Code Here

  }
 
  public void test10() {
    try {
      String[] split = db.getNamingPolicy().split(ENTITY);
      Chronicle base = db.getChronicle(split[0], true);
      base.edit().createChronicle(split[1], false, "test entity", null, null).applyUpdates();
      assertEquals(ENTITY, db.getChronicle(ENTITY, true).getName(true));
    } catch (T2DBException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

      fail(e.getMessage());
    }
  }
  public void test11() {
    try {
      Chronicle e1 = db.getChronicle(ENTITY, true);
      Chronicle e2 = db.getChronicle(e1.getSurrogate());
      assertEquals(e1, e2);
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

    }
  }
 
  public void test12() {
    try {
      Chronicle e1 = db.getChronicle(ENTITY, true);
      Chronicle e2 = db.getChronicle(e1.getSurrogate());
      assertEquals(e1.getSchema(true), e2.getSchema(true));
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of ch.agent.crnickl.api.Chronicle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.