1
2
3
4
5
6
7 package test.tuigwaa;
8
9 import javassist.CannotCompileException;
10 import junit.framework.Test;
11 import junit.framework.TestCase;
12 import junit.framework.TestSuite;
13
14 import org.seasar.framework.container.S2Container;
15 import org.seasar.framework.container.factory.SingletonS2ContainerFactory;
16 import org.seasar.tuigwaa.model.ModelService;
17
18
19 /***
20 * @author nishioka
21 */
22 public class ManyToManyTest extends TestCase {
23
24
25 private static S2Container container;
26
27 private static ModelService entityService_;
28
29 static {
30 SingletonS2ContainerFactory.init();
31 container = SingletonS2ContainerFactory.getContainer();
32
33 entityService_ = (ModelService) container
34 .getComponent(ModelService.class);
35
36 entityService_.createDomain("junit");
37
38 }
39
40 public ManyToManyTest(String method) {
41 super(method);
42 }
43
44 public static Test suite() {
45 TestSuite suite = new TestSuite();
46
47
48 suite.addTest(new ManyToManyTest("testInit"));
49
50 return suite;
51 }
52
53 public void testInit() throws ClassNotFoundException, CannotCompileException{
54
55
56
57
58
59
60
61 }
62 }