incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r1035057 - /incubator/isis/trunk/alternatives/objectstore/sql/tests-common/src/main/java/org/apache/isis/extensions/sql/objectstore/common/SqlIntegrationTestCommon.java
Date Sun, 14 Nov 2010 19:43:48 GMT
Author: kevin
Date: Sun Nov 14 19:43:47 2010
New Revision: 1035057

URL: http://svn.apache.org/viewvc?rev=1035057&view=rev
Log:
Minor edit - split testUpdate into two stages - only the second stage is the real test - confirm
that altered value is correctly updated and loaded from DB.

Modified:
    incubator/isis/trunk/alternatives/objectstore/sql/tests-common/src/main/java/org/apache/isis/extensions/sql/objectstore/common/SqlIntegrationTestCommon.java

Modified: incubator/isis/trunk/alternatives/objectstore/sql/tests-common/src/main/java/org/apache/isis/extensions/sql/objectstore/common/SqlIntegrationTestCommon.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/objectstore/sql/tests-common/src/main/java/org/apache/isis/extensions/sql/objectstore/common/SqlIntegrationTestCommon.java?rev=1035057&r1=1035056&r2=1035057&view=diff
==============================================================================
--- incubator/isis/trunk/alternatives/objectstore/sql/tests-common/src/main/java/org/apache/isis/extensions/sql/objectstore/common/SqlIntegrationTestCommon.java
(original)
+++ incubator/isis/trunk/alternatives/objectstore/sql/tests-common/src/main/java/org/apache/isis/extensions/sql/objectstore/common/SqlIntegrationTestCommon.java
Sun Nov 14 19:43:47 2010
@@ -520,7 +520,7 @@ public abstract class SqlIntegrationTest
 		}
 	}
 
-	public void testUpdate() {
+	public void testUpdate1() {
 		SqlDataClassFactory factory = SqlIntegrationTestSingleton
 				.getSqlDataClassFactory();
 		List<SimpleClassTwo> classes = factory.allSimpleClassTwos();
@@ -528,9 +528,15 @@ public abstract class SqlIntegrationTest
 
 		SimpleClassTwo simpleClass = classes.get(0);
 		simpleClass.setText("XXX");
+	}
 
-		// factory.update(simpleClass);
+	public void testUpdate2() {
+		SqlDataClassFactory factory = SqlIntegrationTestSingleton
+				.getSqlDataClassFactory();
+		List<SimpleClassTwo> classes = factory.allSimpleClassTwos();
+		assertEquals(1, classes.size());
 
+		SimpleClassTwo simpleClass = classes.get(0);
 		assertEquals("XXX", simpleClass.getText());
 	}
 



Mime
View raw message