geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [2/2] incubator-geode git commit: Annotate case methods with BeforeClass and AfterClass
Date Wed, 01 Jun 2016 18:08:22 GMT
Annotate case methods with BeforeClass and AfterClass


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

Branch: refs/heads/feature/GEODE-837
Commit: 51c2417a464f0741b71d8abfd6f91d4c8381c56a
Parents: 59de4b8
Author: Kirk Lund <klund@apache.org>
Authored: Wed Jun 1 11:07:26 2016 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Wed Jun 1 11:07:26 2016 -0700

----------------------------------------------------------------------
 .../internal/cache/PartitionedRegionDUnitTestCase.java        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/51c2417a/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionDUnitTestCase.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionDUnitTestCase.java
b/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionDUnitTestCase.java
index e51cf20..f6627f0 100644
--- a/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionDUnitTestCase.java
+++ b/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionDUnitTestCase.java
@@ -16,6 +16,8 @@
  */
 package com.gemstone.gemfire.internal.cache;
 
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
 import org.junit.experimental.categories.Category;
 import org.junit.Test;
 
@@ -111,12 +113,15 @@ public class PartitionedRegionDUnitTestCase extends JUnit4CacheTestCase
   
   protected void preTearDownPartitionedRegionDUnitTest() throws Exception {
   }
-  
+
+  @BeforeClass
   public static void caseSetUp() {
     DUnitLauncher.launchIfNeeded();
     // this makes sure we don't have any connection left over from previous tests
     disconnectAllFromDS();
   }
+
+  @AfterClass
   public static void caseTearDown() {
     // this makes sure we don't leave anything for the next tests
     disconnectAllFromDS();


Mime
View raw message