1 package mir.storage.store.test;
6 * Copyright: Copyright (c) 2002
12 import mir.storage.store.*;
14 public class TestStore {
16 private static ObjectStore o_store = ObjectStore.getInstance();
22 public static void main(String[] args) {
23 long startTime = System.currentTimeMillis();
24 System.out.println("Starting testrun on ObjectStore...");
25 TestStore testStore1 = new TestStore();
26 testStore1.startTest();
27 System.out.println("Finished testrun on ObjectStore. ("
28 + (System.currentTimeMillis() - startTime) + " ms)");
31 public void startTest() {
32 //System.out.println(o_store.toString());
33 EntityC1 c1 = new EntityC1("1");
34 o_store.add(c1.getStoreIdentifier());
35 EntityC1 c2 = new EntityC1("2");
36 o_store.add(c2.getStoreIdentifier());
38 System.out.println(o_store.toString());
39 /** @todo compare values of store and state failed if values are not
42 /** @todo test cycle: search in store */
43 /** @todo test cycle: invalidation */