Author: cschneider
Date: Mon Jul 27 15:55:27 2015
New Revision: 1692903

URL: http://svn.apache.org/r1692903
Log:
Add check for coordinations that have been kept open from previous test

Modified:
    
aries/trunk/jpa/itests/jpa-container-itest/src/test/java/org/apache/aries/jpa/blueprint/aries/itest/BlueprintTest.java

Modified: 
aries/trunk/jpa/itests/jpa-container-itest/src/test/java/org/apache/aries/jpa/blueprint/aries/itest/BlueprintTest.java
URL: 
http://svn.apache.org/viewvc/aries/trunk/jpa/itests/jpa-container-itest/src/test/java/org/apache/aries/jpa/blueprint/aries/itest/BlueprintTest.java?rev=1692903&r1=1692902&r2=1692903&view=diff
==============================================================================
--- 
aries/trunk/jpa/itests/jpa-container-itest/src/test/java/org/apache/aries/jpa/blueprint/aries/itest/BlueprintTest.java
 (original)
+++ 
aries/trunk/jpa/itests/jpa-container-itest/src/test/java/org/apache/aries/jpa/blueprint/aries/itest/BlueprintTest.java
 Mon Jul 27 15:55:27 2015
@@ -115,6 +115,11 @@ public class BlueprintTest extends Abstr
     }
 
     private void carLifecycle(CarService carService) {
+        Coordination coord = coordinator.peek();
+        Assert.assertNull("There should not be a coordination on this thread", 
coord);
+        if (carService.getCar(BLACK_CAR_PLATE) != null) {
+            carService.deleteCar(BLUE_CAR_PLATE);
+        }
         carService.addCar(createBlueCar());
         assertBlueCar(carService.getCar(BLUE_CAR_PLATE));
         carService.deleteCar(BLUE_CAR_PLATE);


Reply via email to