weaver 2003/08/11 16:31:00
Modified: portal/src/test/org/apache/jetspeed/pipeline
TestPipeline.java
Log:
TestPipeline now accomodates the ActionValveImpl valve
Revision Changes Path
1.2 +17 -17
jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/pipeline/TestPipeline.java
Index: TestPipeline.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/pipeline/TestPipeline.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestPipeline.java 28 Jul 2003 23:47:54 -0000 1.1
+++ TestPipeline.java 11 Aug 2003 23:31:00 -0000 1.2
@@ -53,7 +53,6 @@
*/
package org.apache.jetspeed.pipeline;
-
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -66,45 +65,45 @@
* @author <a href="[EMAIL PROTECTED]">David Sean Taylor</a>
* @version $Id$
*/
-public class TestPipeline extends JetspeedTest
+public class TestPipeline extends JetspeedTest
{
-
+
/**
* Defines the testcase name for JUnit.
*
* @param name the testcase's name.
*/
- public TestPipeline(String name)
+ public TestPipeline(String name)
{
- super( name );
+ super(name);
}
-
+
/**
* Start the tests.
*
* @param args the arguments. Not used
*/
- public static void main(String args[])
+ public static void main(String args[])
{
- junit.awtui.TestRunner.main( new String[] { TestPipeline.class.getName() }
);
+ junit.awtui.TestRunner.main(new String[] { TestPipeline.class.getName()});
}
-
- public void setup()
+
+ public void setup()
{
}
-
+
/**
* Creates the test suite.
*
* @return a test suite (<code>TestSuite</code>) that includes all methods
* starting with "test"
*/
- public static Test suite()
+ public static Test suite()
{
// All methods starting with "test" will be executed in the test suite.
- return new TestSuite( TestPipeline.class );
+ return new TestSuite(TestPipeline.class);
}
-
+
/**
* Tests
*
@@ -117,8 +116,9 @@
assertNotNull(pipeline);
Valve[] valves = pipeline.getValves();
assertTrue(valves[0].toString().equals("CapabilityValveImpl"));
- assertTrue(valves[1].toString().equals("ContainerValve"));
+ assertTrue(valves[1].toString().equals("ContainerValve"));
assertTrue(valves[2].toString().equals("ProfilerValve"));
- assertTrue(valves[3].toString().equals("AggregatorValve"));
+ assertTrue(valves[3].toString().equals("ActionValveImpl"));
+ assertTrue(valves[4].toString().equals("AggregatorValve"));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]