OPENJPA-1348 Use @AllowFailure annotation rather than commenting out failing testcase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825161 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tim McConnell 2009-10-14 15:09:58 +00:00
parent cc59e096ef
commit bb205a29c9
1 changed files with 6 additions and 4 deletions

View File

@ -25,6 +25,7 @@ import org.apache.openjpa.jdbc.writebehind.entities.Entity01;
import org.apache.openjpa.jdbc.writebehind.entities.Entity02; import org.apache.openjpa.jdbc.writebehind.entities.Entity02;
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
import org.apache.openjpa.persistence.OpenJPAEntityManagerSPI; import org.apache.openjpa.persistence.OpenJPAEntityManagerSPI;
import org.apache.openjpa.persistence.test.AllowFailure;
import org.apache.openjpa.persistence.test.SingleEMFTestCase; import org.apache.openjpa.persistence.test.SingleEMFTestCase;
import org.apache.openjpa.writebehind.WriteBehindCache; import org.apache.openjpa.writebehind.WriteBehindCache;
import org.apache.openjpa.writebehind.WriteBehindCacheManager; import org.apache.openjpa.writebehind.WriteBehindCacheManager;
@ -123,7 +124,8 @@ public class TestEmbeddable extends SingleEMFTestCase {
* *
* @exception Exception * @exception Exception
*/ */
/* public void testEntity01ManualFlush() { @AllowFailure(value=true, message="See OPENJPA-1348")
public void test_Entity01_Manual_Flush() {
// //
// Create a new instance of the entity/embeddable class // Create a new instance of the entity/embeddable class
@ -181,10 +183,10 @@ public class TestEmbeddable extends SingleEMFTestCase {
assertEquals(findEntity01.getEnt01_int01(), 1); assertEquals(findEntity01.getEnt01_int01(), 1);
assertEquals(findEntity01.getEnt01_int02(), 2); assertEquals(findEntity01.getEnt01_int02(), 2);
assertEquals(findEntity01.getEnt01_int03(), 3); assertEquals(findEntity01.getEnt01_int03(), 3);
assertEquals(fndEntity01.getEmb01_int01(), 4); assertEquals(findEntity01.getEmb01_int01(), 4);
assertEquals(findEntity01.getEmb01_int02(), 5); assertEquals(findEntity01.getEmb01_int02(), 5);
assertEquals(findEntity01.getEmb01_int03(), 6); assertEquals(findEntity01.getEmb01_int03(), 6);
} */ }
/** /**
@ -192,7 +194,7 @@ public class TestEmbeddable extends SingleEMFTestCase {
* *
* @exception Exception * @exception Exception
*/ */
public void testEntity02ManualFlush() { public void test_Entity02_Manual_Flush() {
// //
// Create a new instance of the entity class // Create a new instance of the entity class