camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/3] camel git commit: Polished the CamelCatalogTest to help us find the test failure reason
Date Tue, 03 Mar 2015 03:36:44 GMT
Polished the CamelCatalogTest to help us find the test failure reason


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

Branch: refs/heads/master
Commit: 7872b5d0fabd74f3e654ec8438928f27de6cedc8
Parents: 79767bf
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Mar 3 11:29:00 2015 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Mar 3 11:36:09 2015 +0800

----------------------------------------------------------------------
 .../camel/commands/catalog/CamelCatalogTest.java    | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7872b5d0/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/catalog/CamelCatalogTest.java
----------------------------------------------------------------------
diff --git a/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/catalog/CamelCatalogTest.java
b/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/catalog/CamelCatalogTest.java
index e115836..798195c 100644
--- a/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/catalog/CamelCatalogTest.java
+++ b/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/catalog/CamelCatalogTest.java
@@ -37,7 +37,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         List<String> names = catalog.findComponentNames();
 
-        assertNotNull(names);
+        assertNotNull("The names should not be null", names);
 
         LOG.info("Found {} names", names.size());
         assertTrue("Should find some components", names.size() > 0);
@@ -48,7 +48,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         List<String> names = catalog.findComponentNames("testing");
 
-        assertNotNull(names);
+        assertNotNull("The names should not be null", names);
 
         LOG.info("Found {} names", names.size());
         assertTrue("Should find some testing components", names.size() > 0);
@@ -59,7 +59,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         List<String> names = catalog.findComponentNames("t*");
 
-        assertNotNull(names);
+        assertNotNull("The names should not be null", names);
 
         LOG.info("Found {} names", names.size());
         assertTrue("Should find some t* components", names.size() > 0);
@@ -70,7 +70,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         List<String> names = catalog.findComponentNames("transformation");
 
-        assertNotNull(names);
+        assertNotNull("The names should not be null", names);
 
         LOG.info("Found {} names", names.size());
         assertTrue("Should find some transformation components", names.size() > 0);
@@ -81,7 +81,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         List<String> names = catalog.findComponentNames("cannotmatchme");
 
-        assertNotNull(names);
+        assertNotNull("The names should not be null", names);
 
         assertTrue("Should not match any components", names.size() == 0);
     }
@@ -91,7 +91,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         String json = catalog.componentJSonSchema("bean");
 
-        assertNotNull(json);
+        assertNotNull("Should find the json information about the bean component", json);
         LOG.info(json);
 
         assertTrue("Should find bean component", json.contains("bean"));
@@ -102,7 +102,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         String json = catalog.componentJSonSchema("ftp");
 
-        assertNotNull(json);
+        assertNotNull("Should find the json information about the ftp component", json);
         LOG.info(json);
 
         assertTrue("Should find ftp component", json.contains("ftp"));
@@ -113,7 +113,7 @@ public class CamelCatalogTest {
         CamelCatalog catalog = new DefaultCamelCatalog();
         Set<String> labels = catalog.findComponentLabels();
 
-        assertNotNull(labels);
+        assertNotNull("Should component labels", labels);
 
         assertTrue("Should find labels", labels.size() > 0);
         assertTrue("Should find core label", labels.contains("core"));


Mime
View raw message