webwork/src/main/webwork/examples Test.java,1.12,1.13
[email protected] Mon, 31 May 2004 15:42:14 -0700
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/examples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18235
Modified Files:
Test.java
Log Message:
Small changes for new test cases
Index: Test.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/examples/Test.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Test.java 14 Mar 2004 23:29:33 -0000 1.12
+++ Test.java 31 May 2004 22:42:11 -0000 1.13
@@ -32,6 +32,11 @@
ArrayList list;
Properties settings = new Properties();
Map params;
+ Person person = new Person();
+ int[] ints = new int[]{0,1,2,3};
+ Integer[] integers = new Integer[]{new Integer(0),new Integer(1), new Integer(2), new Integer(3)};
+ long[] longs = new long[]{0,1,2,3};
+ Long[] longObjects = new Long[]{new Long(0),new Long(1), new Long(2), new Long(3)};
// Static --------------------------------------------------------
@@ -60,7 +65,7 @@
public Person getPerson()
{
- return new Person();
+ return person;
}
public Person getPerson(String name)
@@ -83,6 +88,11 @@
return two;
}
+ public boolean isOk()
+ {
+ return true;
+ }
+
public boolean getStringsEqual(String one, String two)
{
return one.equals(two);
@@ -109,6 +119,26 @@
return b;
}
+ public int[] getInts()
+ {
+ return ints;
+ }
+
+ public Integer[] getIntegers()
+ {
+ return integers;
+ }
+
+ public long[] getLongs()
+ {
+ return longs;
+ }
+
+ public Long[] getLongObjects()
+ {
+ return longObjects;
+ }
+
public String concat(String s1, String s2)
{
return s1+s2;
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click