public void store() {
   Test.deleteAllInstances(new Atom());
   Test.deleteAllInstances(this);
   CascadeToExistingVectorMember cev = new CascadeToExistingVectorMember();
   cev.vec = new Vector();
   Atom atom = new Atom("one");
   Test.store(atom);
   cev.vec.addElement(atom);
   Test.store(cev);
 }
 public void store() {
   Test.deleteAllInstances(this);
   //        Test.store(new TestStringBuffer("Aloha"));
   //        Test.store(new TestStringBuffer("Yohaa"));
   Test.store(new TestStringBuffer("Aloe Vera"));
   //        Test.store(new TestStringBuffer("Store Aloha"));
 }
  public void test() {

    Test.store(new Parent1(new Child1()));

    ObjectContainer container = Test.reOpen();
    container
        .ext()
        .configure()
        .addAlias(new TypeAlias("com.db4o.test.aliases.Parent1", "com.db4o.test.aliases.Parent2"));
    container
        .ext()
        .configure()
        .addAlias(new TypeAlias("com.db4o.test.aliases.Child1", "com.db4o.test.aliases.Child2"));

    ObjectSet os = container.query(Parent2.class);

    Test.ensure(os.size() > 0);

    Parent2 p2 = (Parent2) os.next();

    Test.ensure(p2.child != null);
  }
Example #4
0
 public void store() {
   Test.store(new GetAllSoda("one"));
   Test.store(new GetAllSoda("two"));
 }
 public void store() {
   for (int i = 0; i < COUNT; i++) {
     Test.store(new TuningMemberFieldQuery(new TMFMember("" + i)));
   }
 }