You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2017/09/22 18:13:57 UTC
[geode] 06/07: GEODE-3481: rename and add RequiresGeodeHome rule
This is an automated email from the ASF dual-hosted git repository.
klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
commit ac9c2ab035e2840ac71df1ae097961e7c72595c6
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Mon Aug 21 13:47:39 2017 -0700
GEODE-3481: rename and add RequiresGeodeHome rule
---
...stServersJUnitTest.java => RestServersIntegrationTest.java} | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestServersJUnitTest.java b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestServersIntegrationTest.java
similarity index 93%
rename from geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestServersJUnitTest.java
rename to geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestServersIntegrationTest.java
index 0c2765a..8cf74f7 100644
--- a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestServersJUnitTest.java
+++ b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestServersIntegrationTest.java
@@ -12,7 +12,6 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-
package org.apache.geode.rest.internal.web;
import static org.apache.geode.distributed.internal.DistributionConfig.DEFAULT_HTTP_SERVICE_PORT;
@@ -24,22 +23,27 @@ import org.apache.http.HttpStatus;
import org.json.JSONArray;
import org.junit.BeforeClass;
import org.junit.ClassRule;
+import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.apache.geode.internal.AvailablePort;
+import org.apache.geode.test.dunit.rules.RequiresGeodeHome;
import org.apache.geode.test.dunit.rules.ServerStarterRule;
import org.apache.geode.test.junit.categories.IntegrationTest;
import org.apache.geode.test.junit.categories.RestAPITest;
@Category({IntegrationTest.class, RestAPITest.class})
-public class RestServersJUnitTest {
+public class RestServersIntegrationTest {
+
+ private static GeodeRestClient restClient;
@ClassRule
public static ServerStarterRule serverStarter = new ServerStarterRule().withRestService(true);
- private static GeodeRestClient restClient;
+ @Rule
+ public RequiresGeodeHome requiresGeodeHome = new RequiresGeodeHome();
@BeforeClass
public static void before() throws Exception {
--
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.