File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
core/src/test/java/org/everit/json/schema/internal Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .everit .json .schema .internal ;
2
+
3
+ import static org .everit .json .schema .internal .ValidatorTestSupport .assertFailure ;
4
+ import static org .everit .json .schema .internal .ValidatorTestSupport .assertSuccess ;
5
+
6
+ import org .junit .Test ;
7
+
8
+ public class URITemplateFormatTest {
9
+
10
+ private final URITemplateFormatValidator subject = new URITemplateFormatValidator ();
11
+
12
+ @ Test
13
+ public void success () {
14
+ assertSuccess ("http://example.com/dictionary/{term:1}/{term}" , subject );
15
+ }
16
+
17
+ @ Test
18
+ public void unclosedBracket () {
19
+ assertFailure ("http://example.com/dictionary/{term:1}/{term" , subject ,
20
+ "[http://example.com/dictionary/{term:1}/{term] is not a valid URI template" );
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments