You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gz...@apache.org on 2015/11/07 21:15:42 UTC

camel git commit: Refactor to JUnit 4-style test classes

Repository: camel
Updated Branches:
  refs/heads/master a6a26b33e -> 896dbd717


Refactor to JUnit 4-style test classes

Signed-off-by: Gregor Zurowski <gr...@zurowski.org>

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/896dbd71
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/896dbd71
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/896dbd71

Branch: refs/heads/master
Commit: 896dbd7175ae6d87f83bae8cac12caca6d5fb0b3
Parents: a6a26b3
Author: Gregor Zurowski <gr...@zurowski.org>
Authored: Sat Nov 7 21:15:11 2015 +0100
Committer: Gregor Zurowski <gr...@zurowski.org>
Committed: Sat Nov 7 21:15:23 2015 +0100

----------------------------------------------------------------------
 .../apache/camel/catalog/CamelCatalogMBeanExporterTest.java    | 6 ++++--
 .../test/java/org/apache/camel/catalog/CamelCatalogTest.java   | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/896dbd71/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
----------------------------------------------------------------------
diff --git a/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java b/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
index 7492c04..1d6d1bc 100644
--- a/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
+++ b/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
@@ -20,9 +20,11 @@ import java.lang.management.ManagementFactory;
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
 
-import junit.framework.TestCase;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
 
-public class CamelCatalogMBeanExporterTest extends TestCase {
+public class CamelCatalogMBeanExporterTest {
 
     private CamelCatalogMBeanExporter exporter = new CamelCatalogMBeanExporter();
 

http://git-wip-us.apache.org/repos/asf/camel/blob/896dbd71/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
----------------------------------------------------------------------
diff --git a/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java b/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
index 9de5f88..b2f7861 100644
--- a/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
+++ b/platforms/catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
@@ -22,12 +22,14 @@ import java.util.Map;
 
 import com.fasterxml.jackson.databind.JsonNode;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import junit.framework.TestCase;
 import org.junit.Test;
 
 import static org.apache.camel.catalog.CatalogHelper.loadText;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
 
-public class CamelCatalogTest extends TestCase {
+public class CamelCatalogTest {
 
     private CamelCatalog catalog = new DefaultCamelCatalog();