aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1693099 - /aries/trunk/jpa/itests/jpa-container-itest/src/test/java/org/apache/aries/jpa/blueprint/aries/itest/BlueprintTest.java
Date Tue, 28 Jul 2015 14:38:02 GMT
Author: cschneider
Date: Tue Jul 28 14:38:02 2015
New Revision: 1693099

URL: http://svn.apache.org/r1693099
Log:
[ARIES-1362] Fix coordination handling in 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=1693099&r1=1693098&r2=1693099&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
Tue Jul 28 14:38:02 2015
@@ -47,22 +47,21 @@ public class BlueprintTest extends Abstr
         assertNoCars(carService);
         for (int c=0; c<100; c++) {
             System.out.println(c);
-            Coordination coord = null;
             try {
-                coord = coordinator.begin("testCoordination", 0);
+                coordinator.begin("testCoordination", 0);
                 carService.addCar(createBlueCar());
                 Collection<Car> cars = carService.getCars();
                 carService.updateCar(cars.iterator().next());
             } finally {
-                coord.end();
+                coordinator.pop().end();
             }
             // TODO For some reason I need a second coordination here
             try {
-                coord = coordinator.begin("testCoordination", 0);
+                coordinator.begin("testCoordination", 0);
                 carService.deleteCar(BLUE_CAR_PLATE);
                 Assert.assertEquals(0, carService.getCars().size());
             } finally {
-                coord.end();
+                coordinator.pop().end();
             }
         }
     }



Mime
View raw message