1
2
3
4
5
6
7 package org.weda;
8
9 import org.weda.domain.Address;
10 import org.weda.domain.Check;
11 import org.weda.domain.Company;
12 import org.weda.domain.Contract;
13 import org.weda.domain.Employee;
14 import org.weda.domain.Post;
15 import org.weda.store.ObjectStore;
16 import org.weda.test.*;
17
18 /**
19 *
20 * @author Mikhail Titov
21 */
22 public class ObjectStoreTestCase extends WedaTestCase {
23 protected ObjectStore store;
24
25 public ObjectStoreTestCase(String name) throws Exception {
26 super(name);
27 }
28
29 protected void setUp() throws Exception {
30 super.setUp();
31 store = (ObjectStore)registry.getService(ObjectStore.class);
32 store.deleteAll(Check.class);
33 store.deleteAll(Contract.class);
34 store.deleteAll(Employee.class);
35 store.deleteAll(Post.class);
36 store.deleteAll(Company.class);
37 store.deleteAll(Address.class);
38 }
39
40 protected void tearDown() throws Exception {
41 super.tearDown();
42 store.deleteAll(Check.class);
43 store.deleteAll(Contract.class);
44 store.deleteAll(Employee.class);
45 store.deleteAll(Post.class);
46 store.deleteAll(Company.class);
47 store.deleteAll(Address.class);
48 }
49
50 }