aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rotty3...@apache.org
Subject aries-jax-rs-whiteboard git commit: simplify counter test
Date Fri, 04 Aug 2017 14:18:56 GMT
Repository: aries-jax-rs-whiteboard
Updated Branches:
  refs/heads/master 825974e31 -> 9c7620caf


simplify counter test

Signed-off-by: Raymond Auge <rotty3000@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/9c7620ca
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/9c7620ca
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/9c7620ca

Branch: refs/heads/master
Commit: 9c7620caf637f1c3bf3fee841c269b98aa3dc644
Parents: 825974e
Author: Raymond Auge <rotty3000@apache.org>
Authored: Fri Aug 4 10:14:43 2017 -0400
Committer: Raymond Auge <rotty3000@apache.org>
Committed: Fri Aug 4 10:17:31 2017 -0400

----------------------------------------------------------------------
 .../src/main/java/test/WhiteboardFactoryTest.java       | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/9c7620ca/jax-rs.itests/src/main/java/test/WhiteboardFactoryTest.java
----------------------------------------------------------------------
diff --git a/jax-rs.itests/src/main/java/test/WhiteboardFactoryTest.java b/jax-rs.itests/src/main/java/test/WhiteboardFactoryTest.java
index b945eff..8a3d01e 100644
--- a/jax-rs.itests/src/main/java/test/WhiteboardFactoryTest.java
+++ b/jax-rs.itests/src/main/java/test/WhiteboardFactoryTest.java
@@ -146,15 +146,17 @@ public class WhiteboardFactoryTest {
                 bundleContext.registerService(
                     Application.class, new TestApplication(), properties);
 
-            assertTrue(
-                changeCount < (Long)runtimeTracker.getServiceReference().getProperty("service.changecount"));
+            Long newCount = (Long)serviceReference.getProperty("service.changecount");
 
-            changeCount = (Long)serviceReference.getProperty("service.changecount");
+            assertTrue(changeCount < newCount);
+
+            changeCount = newCount;
 
             serviceRegistration.unregister();
 
-            assertTrue(
-                changeCount < (Long)runtimeTracker.getServiceReference().getProperty("service.changecount"));
+            newCount = (Long)serviceReference.getProperty("service.changecount");
+
+            assertTrue(changeCount < newCount);
         }
         finally {
             runtimeTracker.close();


Mime
View raw message