From e670ae0c4e2f7cdd909c04e234e636d71ef936ec Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 11 Apr 2012 01:42:45 -0400 Subject: [PATCH] Stopping the local JBoss test server for rhcloud-tweetstore after integration tests --- .../demo/tweetstore/integration/TweetStoreLiveTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/demos/tweetstore/rhcloud-tweetstore/src/test/java/org/jclouds/demo/tweetstore/integration/TweetStoreLiveTest.java b/demos/tweetstore/rhcloud-tweetstore/src/test/java/org/jclouds/demo/tweetstore/integration/TweetStoreLiveTest.java index aa0a6833de..6698931488 100644 --- a/demos/tweetstore/rhcloud-tweetstore/src/test/java/org/jclouds/demo/tweetstore/integration/TweetStoreLiveTest.java +++ b/demos/tweetstore/rhcloud-tweetstore/src/test/java/org/jclouds/demo/tweetstore/integration/TweetStoreLiveTest.java @@ -44,6 +44,7 @@ import org.jclouds.demo.tweetstore.controller.StoreTweetsController; import org.jclouds.logging.log4j.config.Log4JLoggingModule; import org.jclouds.rest.AuthorizationException; import org.jclouds.util.Strings2; +import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Parameters; import org.testng.annotations.Test; @@ -228,4 +229,9 @@ public class TweetStoreLiveTest { String string = Strings2.toStringAndClose(i); assert string.indexOf("Tweets in Clouds") >= 0 : string; } + + @AfterTest + public void stopDevAppServer() throws Exception { + server.stop(); + } }