KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > fortress > tools > FortressBeanTestCase


1 /*
2  * Copyright 2003-2004 The Apache Software Foundation
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12  * implied.
13  *
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.avalon.fortress.tools;
19
20 import junit.framework.TestCase;
21
22 public class FortressBeanTestCase extends TestCase {
23
24     private FortressBean bean;
25
26     public FortressBeanTestCase(String JavaDoc name) {
27         super(name);
28     }
29
30     /**
31      * @see junit.framework.TestCase#setUp()
32      */

33     protected void setUp() throws Exception JavaDoc {
34         //this.bean = new FortressBean();
35
}
36
37     public void test() throws Exception JavaDoc {
38         /*
39         this.bean.setRoleManagerConfiguration("resource://org/apache/avalon/fortress/tools/FortressBeanTestCase.roles");
40         this.bean.setContainerConfiguration("resource://org/apache/avalon/fortress/tools/FortressBeanTestCase.xconf");
41         this.bean.setLoggerManagerConfiguration("resource://org/apache/avalon/fortress/tools/FortressBeanTestCase.xlog");
42         this.bean.setLookupComponentRole(TestInterface.ROLE);
43         this.bean.setInvokeMethod("run");
44         this.bean.setSystemExitOnDispose(false);
45         this.bean.initialize();
46         this.bean.run();
47         TestInterface ti = (TestInterface) this.bean.getServiceManager().lookup(TestInterface.ROLE);
48         assertNotNull(ti);
49         assertTrue(ti.isRunning());
50         this.bean.dispose();
51         */

52     }
53
54 }
55
Popular Tags