You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ne...@apache.org on 2004/05/06 12:55:43 UTC
cvs commit: avalon-excalibur/fortress/bean/src/test/org/apache/avalon/fortress/tools FortressBeanTestCase.java
neeme 2004/05/06 03:55:43
Modified: fortress/bean/src/test/org/apache/avalon/fortress/tools
FortressBeanTestCase.java
Log:
uncommented and refactored the testcase a bit, no functional changes
Revision Changes Path
1.5 +8 -7 avalon-excalibur/fortress/bean/src/test/org/apache/avalon/fortress/tools/FortressBeanTestCase.java
Index: FortressBeanTestCase.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/fortress/bean/src/test/org/apache/avalon/fortress/tools/FortressBeanTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FortressBeanTestCase.java 28 Feb 2004 15:16:27 -0000 1.4
+++ FortressBeanTestCase.java 6 May 2004 10:55:43 -0000 1.5
@@ -31,11 +31,7 @@
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
- //this.bean = new FortressBean();
- }
-
- public void test() throws Exception {
- /*
+ this.bean = new FortressBean();
this.bean.setRoleManagerConfiguration("resource://org/apache/avalon/fortress/tools/FortressBeanTestCase.roles");
this.bean.setContainerConfiguration("resource://org/apache/avalon/fortress/tools/FortressBeanTestCase.xconf");
this.bean.setLoggerManagerConfiguration("resource://org/apache/avalon/fortress/tools/FortressBeanTestCase.xlog");
@@ -44,11 +40,16 @@
this.bean.setSystemExitOnDispose(false);
this.bean.initialize();
this.bean.run();
+ }
+
+ protected void tearDown() throws Exception {
+ this.bean.dispose();
+ }
+
+ public void test() throws Exception {
TestInterface ti = (TestInterface) this.bean.getServiceManager().lookup(TestInterface.ROLE);
assertNotNull(ti);
assertTrue(ti.isRunning());
- this.bean.dispose();
- */
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org