dgraham 2003/11/15 13:22:33
Modified: src/test/org/apache/struts/action TestActionMessage.java
Log:
Formatting changes only.
Revision Changes Path
1.4 +54 -44
jakarta-struts/src/test/org/apache/struts/action/TestActionMessage.java
Index: TestActionMessage.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/test/org/apache/struts/action/TestActionMessage.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TestActionMessage.java 7 Feb 2003 00:29:21 -0000 1.3
+++ TestActionMessage.java 15 Nov 2003 21:22:33 -0000 1.4
@@ -1,7 +1,13 @@
/*
+ * $Header$
+ * $Revision$
+ * $Date$
+ *
+ * ====================================================================
+ *
* The Apache Software License, Version 1.1
*
- * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -52,7 +58,9 @@
* <http://www.apache.org/>.
*
*/
+
package org.apache.struts.action;
+
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
@@ -63,67 +71,69 @@
* @author Dominique Plante
* @version $Revision$ $Date$
*/
-
-public class TestActionMessage extends TestCase
-{
- protected ActionMessage amWithNoValue = null;
- protected ActionMessage amWithOneValue = null;
+public class TestActionMessage extends TestCase {
+
+ protected ActionMessage amWithNoValue = null;
+
+ protected ActionMessage amWithOneValue = null;
+
/**
* Defines the testcase name for JUnit.
*
* @param theName the testcase's name.
*/
- public TestActionMessage(String theName)
- {
- super(theName);
- }
+ public TestActionMessage(String theName) {
+ super(theName);
+ }
/**
* Start the tests.
*
* @param theArgs the arguments. Not used
*/
- public static void main(String[] theArgs)
- {
- junit.awtui.TestRunner.main(new String[]
{TestActionMessage.class.getName()});
+ public static void main(String[] theArgs) {
+ junit.awtui.TestRunner.main(
+ new String[] { TestActionMessage.class.getName()});
}
/**
* @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(TestActionMessage.class);
}
- public void setUp()
- {
- amWithNoValue = new ActionMessage("amWithNoValue");
- amWithOneValue = new ActionMessage("amWithOneValue", new
String("stringValue"));
- }
-
- public void tearDown()
- {
- amWithNoValue = null;
- }
- public void testActionMessageWithNoValue()
- {
- assertTrue("testActionMessageWithNoValue value is not null",
- amWithNoValue.getValues() == null);
- assertTrue("testActionMessageWithNoValue key is not amWithNoValue",
- amWithNoValue.getKey() == "amWithNoValue");
- }
-
- public void testActionMessageWithAStringValue()
- {
- Object [] values = amWithOneValue.getValues();
- assertTrue("testActionMessageWithAStringValue value is not null",
- values != null);
- assertTrue("testActionMessageWithAStringValue value[0] is not the
string stringValue",
- values[0].equals("stringValue"));
- assertTrue("testActionMessageWithAStringValue key is not
amWithOneValue",
- amWithOneValue.getKey() == "amWithOneValue");
- }
+ public void setUp() {
+ amWithNoValue = new ActionMessage("amWithNoValue");
+ amWithOneValue =
+ new ActionMessage("amWithOneValue", new String("stringValue"));
+ }
+
+ public void tearDown() {
+ amWithNoValue = null;
+ }
+
+ public void testActionMessageWithNoValue() {
+ assertTrue(
+ "testActionMessageWithNoValue value is not null",
+ amWithNoValue.getValues() == null);
+ assertTrue(
+ "testActionMessageWithNoValue key is not amWithNoValue",
+ amWithNoValue.getKey() == "amWithNoValue");
+ }
+
+ public void testActionMessageWithAStringValue() {
+ Object[] values = amWithOneValue.getValues();
+ assertTrue(
+ "testActionMessageWithAStringValue value is not null",
+ values != null);
+ assertTrue(
+ "testActionMessageWithAStringValue value[0] is not the string
stringValue",
+ values[0].equals("stringValue"));
+ assertTrue(
+ "testActionMessageWithAStringValue key is not amWithOneValue",
+ amWithOneValue.getKey() == "amWithOneValue");
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]