@Before
 public void before() {
   TestTools.createDb();
   TestTools.defineSchema(TestClass.class);
   pm = TestTools.openPM();
   pm.currentTransaction().begin();
 }
Example #2
0
 @BeforeClass
 public static void beforeClass() {
   TestTools.removeDb();
   TestTools.createDb();
   TestTools.defineSchema(ComplexHolder0.class, ComplexHolder1.class, ComplexHolder2.class);
   TestTools.defineIndex(ComplexHolder0.class, "id", false);
 }
  @BeforeClass
  public static void setUp() {
    TestTools.createDb(DB_NAME);
    TestTools.defineSchema(DB_NAME, JB0.class);
    TestTools.defineSchema(DB_NAME, JB1.class);
    TestTools.defineSchema(DB_NAME, JB2.class);
    TestTools.defineSchema(DB_NAME, JB3.class);
    TestTools.defineSchema(DB_NAME, JB4.class);

    PersistenceManager pm = TestTools.openPM();
    pm.currentTransaction().begin();

    for (int i = 1; i <= COUNT; i++) {
      JB0 jb;
      jb = new JB4(4, 4, i, 4, 4);
      pm.makePersistent(jb);
      jb = new JB3(3, 3, i, 3);
      pm.makePersistent(jb);
      jb = new JB2(2, 2, i);
      pm.makePersistent(jb);
      jb = new JB1(1, 2);
      pm.makePersistent(jb);
      jb = new JB0(0);
      pm.makePersistent(jb);
    }

    pm.currentTransaction().commit();
    TestTools.closePM(pm);
  }
 @Before
 public void before() {
   TestTools.createDb();
   TestSerializer.resetStatic();
 }
 @Before
 public void beforeTest() {
   TestTools.createDb();
   TestTools.defineSchema(TestClass.class, TestClassTiny.class, TestClassTiny2.class);
 }
 @BeforeClass
 public static void setUp() {
   TestTools.createDb();
   TestTools.defineSchema(TestClass.class, TestClassTiny.class, TestClassTiny2.class);
 }
 @BeforeClass
 public static void beforeClass() {
   TestTools.createDb();
 }
 @BeforeClass
 public static void setUp() {
   TestTools.createDb();
   TestTools.defineSchema(JB0.class, JB1.class, JB2.class, JB3.class, JB4.class, JdoTree.class);
 }
 @BeforeClass
 public static void setUp() {
   TestTools.createDb();
   TestTools.defineSchema(
       TestPostLoad.class, TestPreStore.class, TestPreClear.class, TestPreDelete.class);
 }
Example #10
0
 @BeforeClass
 public static void setUpClass() {
   TestTools.createDb(DB_NAME);
   TestTools.defineSchema(DB_NAME, PersistentDummyImpl.class);
 }
 @Before
 public void before() {
   TestTools.createDb();
   TestTools.defineSchema(TestClass.class);
 }