geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstew...@apache.org
Subject [5/7] geode git commit: Add assertions to CPLIntTest
Date Tue, 28 Feb 2017 23:37:48 GMT
Add assertions to CPLIntTest


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/4c88b41a
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/4c88b41a
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/4c88b41a

Branch: refs/heads/GEODE-2290
Commit: 4c88b41a882544aa8c314ae560369d2d098cbed0
Parents: 228bf4f
Author: Jared Stewart <jstewart@pivotal.io>
Authored: Tue Feb 28 11:29:45 2017 -0800
Committer: Jared Stewart <jstewart@pivotal.io>
Committed: Tue Feb 28 11:29:45 2017 -0800

----------------------------------------------------------------------
 .../geode/internal/ClassPathLoaderIntegrationTest.java       | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/4c88b41a/geode-core/src/test/java/org/apache/geode/internal/ClassPathLoaderIntegrationTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/internal/ClassPathLoaderIntegrationTest.java
b/geode-core/src/test/java/org/apache/geode/internal/ClassPathLoaderIntegrationTest.java
index 0a207cf..69e56c6 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/ClassPathLoaderIntegrationTest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/ClassPathLoaderIntegrationTest.java
@@ -133,6 +133,14 @@ public class ClassPathLoaderIntegrationTest {
 
     assertThatResourceCanBeLoaded(classBResource);
     assertThatResourceCannotBeLoaded(classAResource);
+
+    //Now undeploy JAR and make sure it gets cleaned up
+    ClassPathLoader.getLatest().getJarDeployer().undeploy(jarName);
+    assertThatClassCannotBeLoaded(classBName);
+    assertThatClassCannotBeLoaded(classAName);
+
+    assertThatResourceCannotBeLoaded(classBResource);
+    assertThatResourceCannotBeLoaded(classAResource);
   }
 
   @Test


Mime
View raw message