[jbosstools-commits] JBoss Tools SVN: r42691 - trunk/ws/tests/org.jboss.tools.ws.jaxrs.core.test/src/org/jboss/tools/ws/jaxrs/core.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Jul 24 10:02:17 EDT 2012


Author: xcoulon
Date: 2012-07-24 10:02:16 -0400 (Tue, 24 Jul 2012)
New Revision: 42691

Modified:
   trunk/ws/tests/org.jboss.tools.ws.jaxrs.core.test/src/org/jboss/tools/ws/jaxrs/core/AbstractCommonTestCase.java
Log:
updating JUnit API (was using deprecated classes) 

Modified: trunk/ws/tests/org.jboss.tools.ws.jaxrs.core.test/src/org/jboss/tools/ws/jaxrs/core/AbstractCommonTestCase.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.jaxrs.core.test/src/org/jboss/tools/ws/jaxrs/core/AbstractCommonTestCase.java	2012-07-24 13:39:26 UTC (rev 42690)
+++ trunk/ws/tests/org.jboss.tools.ws.jaxrs.core.test/src/org/jboss/tools/ws/jaxrs/core/AbstractCommonTestCase.java	2012-07-24 14:02:16 UTC (rev 42691)
@@ -29,9 +29,9 @@
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Rule;
-import org.junit.rules.MethodRule;
-import org.junit.rules.TestWatchman;
-import org.junit.runners.model.FrameworkMethod;
+import org.junit.rules.TestRule;
+import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
 import org.osgi.framework.Bundle;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -67,18 +67,18 @@
 	private ProjectSynchronizator synchronizor;
 
 	@Rule
-	public MethodRule watchman = new TestWatchman() {
+	public TestRule watchman = new TestWatcher() {
 		@Override
-		public void starting(FrameworkMethod method) {
+		public void starting(Description description) {
 			LOGGER.info("**********************************************************************************");
-			LOGGER.info("Starting test '{}'...", method.getName());
+			LOGGER.info("Starting test '{}'...", description.getMethodName());
 			LOGGER.info("**********************************************************************************");
 		}
 
 		@Override
-		public void finished(FrameworkMethod method) {
+		public void finished(Description description) {
 			LOGGER.info("**********************************************************************************");
-			LOGGER.info("Test '{}' finished.", method.getName());
+			LOGGER.info("Test '{}' finished.", description.getMethodName());
 			LOGGER.info("**********************************************************************************");
 		}
 	};



More information about the jbosstools-commits mailing list