vmassol 2002/08/30 13:29:03
Modified: sample-servlet/src/unit/share/org/apache/cactus/unit
TestAbstractWebTestCase.java
Log:
new coding conventions
Revision Changes Path
1.3 +14 -12
jakarta-cactus/sample-servlet/src/unit/share/org/apache/cactus/unit/TestAbstractWebTestCase.java
Index: TestAbstractWebTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/sample-servlet/src/unit/share/org/apache/cactus/unit/TestAbstractWebTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestAbstractWebTestCase.java 3 Aug 2002 18:03:15 -0000 1.2
+++ TestAbstractWebTestCase.java 30 Aug 2002 20:29:03 -0000 1.3
@@ -76,6 +76,11 @@
public class TestAbstractWebTestCase extends ServletTestCase
{
/**
+ * true if <code>end()</code> has been called.
+ */
+ private boolean isClientGlobalEndCalled;
+
+ /**
* Defines the testcase name for JUnit.
*
* @param theName the testcase's name.
@@ -92,25 +97,21 @@
*/
public static void main(String[] theArgs)
{
- junit.swingui.TestRunner.main(new String[]{
- TestAbstractWebTestCase.class.getName()});
+ junit.swingui.TestRunner.main(
+ new String[] { TestAbstractWebTestCase.class.getName() });
}
- //-------------------------------------------------------------------------
-
- /**
- * true if <code>end()</code> has been called.
- */
- private boolean isClientGlobalEndCalled;
-
/**
* Verifies that <code>end()</code> has been called correctly.
+ *
+ * @exception Throwable on test failure
*/
protected void runTest() throws Throwable
{
runGenericTest(new ServletHttpClient());
- if (!this.isClientGlobalEndCalled) {
+ if (!this.isClientGlobalEndCalled)
+ {
fail("end() has not been called");
}
}
@@ -145,6 +146,8 @@
* Verify that it is possible to modify the <code>WebRequest</code> in
* the common <code>begin()()</code> method. It also verifies that
* <code>begin()()</code> is called at all.
+ *
+ * @exception Exception on test failure
*/
public void testGlobalBeginEnd() throws Exception
{
@@ -176,5 +179,4 @@
assertEquals("Hello there!", theResponse.getText());
this.isClientGlobalEndCalled = true;
}
-
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>