starting to test object store
[mir.git] / source / mir / storage / store / test / TestStore.java
1 package mir.storage.store.test;
2
3 /**
4  * Title:
5  * Description:
6  * Copyright:    Copyright (c) 2002
7  * Company:
8  * @author
9  * @version 1.0
10  */
11
12 import mir.storage.store.*;
13
14 public class TestStore {
15
16         private static ObjectStore o_store = ObjectStore.getInstance();
17
18         public TestStore() {
19
20         }
21
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)");
29         }
30
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());
37
38                 System.out.println(o_store.toString());
39     /** @todo compare values of store and state failed if values are not
40      *  right*/
41
42     /** @todo test cycle: search in store */
43     /** @todo test cycle: invalidation */
44
45         }
46 }