Author: cbegin
Date: Sat Aug 12 21:12:37 2006
New Revision: 431144
URL: http://svn.apache.org/viewvc?rev=431144&view=rev
Log:
more cosmetic changes to test
Modified:
ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java
Modified:
ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java
URL:
http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java?rev=431144&r1=431143&r2=431144&view=diff
==============================================================================
---
ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java
(original)
+++
ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java
Sat Aug 12 21:12:37 2006
@@ -6,46 +6,34 @@
import java.util.List;
import java.util.Map;
-
public class MultiResultSetTest extends BaseSqlMapTest {
// SETUP & TEARDOWN
protected void setUp() throws Exception {
-
- initSqlMap(
- "com/ibatis/sqlmap/maps/DerbySqlMapConfig.xml",
- Resources.getResourceAsProperties(
- "com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties"));
-
+ initSqlMap("com/ibatis/sqlmap/maps/DerbySqlMapConfig.xml",
Resources.getResourceAsProperties("com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties"));
initScript("scripts/account-init.sql");
initScript("scripts/derby-proc-init.sql");
-
+
}
-
+
/**
* This test should return 2 lists of 2 accounts each
- *
*/
public void testShouldRetrieveTwoSetsOfTwoAccountsFromMultipleResultSets() {
-
Map persons = new HashMap();
- persons.put("accountId1",new Integer(1));
- persons.put("accountId2",new Integer(2));
- persons.put("accountId3",new Integer(3));
- persons.put("accountId4",new Integer(4));
-
+ persons.put("accountId1", new Integer(1));
+ persons.put("accountId2", new Integer(2));
+ persons.put("accountId3", new Integer(3));
+ persons.put("accountId4", new Integer(4));
try {
- List results =
- sqlMap.queryForList("getMultiListsRm", persons);
-
- assertEquals(2,results.size());
+ List results = sqlMap.queryForList("getMultiListsRm", persons);
+ assertEquals(2, results.size());
} catch (Exception e) {
fail(e.getMessage());
}
}
-
-
+
}