Fix broken ApiDocGeneratorTest 68/45968/4
authormiroslav.kovac <miroslav.kovac@pantheon.tech>
Wed, 21 Sep 2016 11:22:42 +0000 (13:22 +0200)
committerTomas Cere <tcere@cisco.com>
Wed, 21 Sep 2016 12:13:14 +0000 (12:13 +0000)
Patch https://git.opendaylight.org/gerrit/#/c/43500/ changed
the way constraints are handled in yangtools which causes
the faiure of EdgeTest in ApiDocGeneratorTest.

Change-Id: I455d924b69aee0a6cd6304be27656d44a62e6c73
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
restconf/sal-rest-docgen/src/test/java/org/opendaylight/controller/sal/rest/doc/impl/ApiDocGeneratorTest.java

index 1ef745aff62795685e4e06fb052170be95f16cdc..c72b5f019dff53a24c8ec22779c4ded342ceb5e7 100644 (file)
@@ -224,7 +224,7 @@ public class ApiDocGeneratorTest {
                 // testing bugs.opendaylight.org bug 1290. UnionType model type.
                 final String jsonString = doc.getModels().toString();
                 assertTrue(jsonString.contains(
-                        "testUnion\":{\"minItems\":0,\"maxItems\":2147483647,\"type\":\"integer or string\",\"required\":false}"));
+                        "testUnion\":{\"type\":\"integer or string\",\"required\":false}"));
             }
         }
     }