camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [5/6] camel git commit: do not populate enum when no allowable values are set
Date Fri, 29 Jan 2016 16:24:28 GMT
do not populate enum when no allowable values are set


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

Branch: refs/heads/camel-2.16.x
Commit: 11ff9540f577c04db3884a12ac93ee8d099d7900
Parents: 58a3b00
Author: Seb Calbaza <sebastian.calbaza@hgdata.com>
Authored: Fri Jan 29 18:01:03 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Jan 29 17:24:10 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/swagger/RestSwaggerReaderModelTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/11ff9540/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderModelTest.java
----------------------------------------------------------------------
diff --git a/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderModelTest.java
b/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderModelTest.java
index 72f8409..ed6ee6d 100644
--- a/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderModelTest.java
+++ b/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderModelTest.java
@@ -89,7 +89,7 @@ public class RestSwaggerReaderModelTest extends CamelTestSupport {
         assertTrue(json.contains("\"$ref\" : \"#/definitions/User\""));
         assertTrue(json.contains("\"x-className\""));
         assertTrue(json.contains("\"format\" : \"org.apache.camel.swagger.User\""));
-
+        assertFalse(json.contains("\"enum\""));
         context.stop();
     }
 


Mime
View raw message