@@ -39,7 +39,7 @@ public void test_getDetails() throws IOException, ApiError, InterruptedException
39
39
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_getDetails.json" ));
40
40
server .enqueue (response );
41
41
42
- Term .Regex regex = Term .Regex . of ("(abc|de)" );
42
+ Term .Regex regex = Term .regex ("(abc|de)" );
43
43
44
44
Details details = regex .getDetails ();
45
45
@@ -69,7 +69,7 @@ public void test_generateStrings() throws IOException, ApiError, InterruptedExce
69
69
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_generateStrings.json" ));
70
70
server .enqueue (response );
71
71
72
- Term .Regex regex = Term .Regex . of ("(abc|de){2}" );
72
+ Term .Regex regex = Term .regex ("(abc|de){2}" );
73
73
74
74
List <String > strings = regex .generateStrings (10 );
75
75
assertEquals (4 , strings .size ());
@@ -87,9 +87,9 @@ public void test_intersection() throws IOException, ApiError, InterruptedExcepti
87
87
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_intersection.json" ));
88
88
server .enqueue (response );
89
89
90
- Term .Regex term1 = Term .Regex . of ("(abc|de){2}" );
91
- Term .Regex term2 = Term .Regex . of ("de.*" );
92
- Term .Regex term3 = Term .Regex . of (".*abc" );
90
+ Term .Regex term1 = Term .regex ("(abc|de){2}" );
91
+ Term .Regex term2 = Term .regex ("de.*" );
92
+ Term .Regex term3 = Term .regex (".*abc" );
93
93
94
94
Term result = term1 .intersection (term2 , term3 );
95
95
assertTrue (result instanceof Term .Regex );
@@ -110,9 +110,9 @@ public void test_union() throws IOException, ApiError, InterruptedException {
110
110
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_union.json" ));
111
111
server .enqueue (response );
112
112
113
- Term .Regex term1 = Term .Regex . of ("abc" );
114
- Term .Regex term2 = Term .Regex . of ("de" );
115
- Term .Regex term3 = Term .Regex . of ("fghi" );
113
+ Term .Regex term1 = Term .regex ("abc" );
114
+ Term .Regex term2 = Term .regex ("de" );
115
+ Term .Regex term3 = Term .regex ("fghi" );
116
116
117
117
Term result = term1 .union (term2 , term3 );
118
118
assertTrue (result instanceof Term .Regex );
@@ -133,8 +133,8 @@ public void test_subtraction() throws IOException, ApiError, InterruptedExceptio
133
133
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_subtraction.json" ));
134
134
server .enqueue (response );
135
135
136
- Term .Regex term1 = Term .Regex . of ("(abc|de)" );
137
- Term .Regex term2 = Term .Regex . of ("de" );
136
+ Term .Regex term1 = Term .regex ("(abc|de)" );
137
+ Term .Regex term2 = Term .regex ("de" );
138
138
139
139
Term result = term1 .subtraction (term2 );
140
140
assertTrue (result instanceof Term .Regex );
@@ -154,8 +154,8 @@ public void test_isEquivalentTo() throws IOException, ApiError, InterruptedExcep
154
154
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_isEquivalentTo.json" ));
155
155
server .enqueue (response );
156
156
157
- Term .Regex term1 = Term .Regex . of ("(abc|de)" );
158
- Term .Fair term2 = Term .Fair . of ("rgmsW[1g2LvP=Gr&V>sLc#w-!No&(oq@Sf>X).?lI3{uh{80qWEH[#0.pHq@B-9o[LpP-a#fYI+" );
157
+ Term .Regex term1 = Term .regex ("(abc|de)" );
158
+ Term .Fair term2 = Term .fair ("rgmsW[1g2LvP=Gr&V>sLc#w-!No&(oq@Sf>X).?lI3{uh{80qWEH[#0.pHq@B-9o[LpP-a#fYI+" );
159
159
160
160
boolean result = term1 .isEquivalentTo (term2 );
161
161
assertFalse (result );
@@ -174,8 +174,8 @@ public void test_isSubsetOf() throws IOException, ApiError, InterruptedException
174
174
MockResponse response = TestUtils .generateMockResponse (TestUtils .getResourceFileContent ("response_isSubsetOf.json" ));
175
175
server .enqueue (response );
176
176
177
- Term .Regex term1 = Term .Regex . of ("de" );
178
- Term .Regex term2 = Term .Regex . of ("(abc|de)" );
177
+ Term .Regex term1 = Term .regex ("de" );
178
+ Term .Regex term2 = Term .regex ("(abc|de)" );
179
179
180
180
boolean result = term1 .isSubsetOf (term2 );
181
181
assertTrue (result );
@@ -194,8 +194,8 @@ public void test_errorResponse() throws IOException {
194
194
MockResponse response = TestUtils .generateErrorMockResponse (TestUtils .getResourceFileContent ("response_error.json" ), 400 );
195
195
server .enqueue (response );
196
196
197
- Term .Regex term1 = Term .Regex . of ("abc" );
198
- Term .Regex term2 = Term .Regex . of ("de" );
197
+ Term .Regex term1 = Term .regex ("abc" );
198
+ Term .Regex term2 = Term .regex ("de" );
199
199
200
200
try {
201
201
term1 .intersection (term2 );
0 commit comments