1
1
/*
2
- * Copyright 2004-2019 the original author or authors.
2
+ * Copyright 2004-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -67,12 +67,12 @@ void existsForAnEmptyMap() throws Exception {
67
67
}
68
68
69
69
@ Test
70
- void existsForIndefinatePathWithResults () throws Exception {
70
+ void existsForIndefinitePathWithResults () throws Exception {
71
71
new JsonPathExpectationsHelper ("$.familyMembers[?(@.name == 'Bart')]" ).exists (SIMPSONS );
72
72
}
73
73
74
74
@ Test
75
- void existsForIndefinatePathWithEmptyResults () throws Exception {
75
+ void existsForIndefinitePathWithEmptyResults () throws Exception {
76
76
String expression = "$.familyMembers[?(@.name == 'Dilbert')]" ;
77
77
assertThatExceptionOfType (AssertionError .class ).isThrownBy (() ->
78
78
new JsonPathExpectationsHelper (expression ).exists (SIMPSONS ))
@@ -101,15 +101,15 @@ void doesNotExistForAnEmptyMap() throws Exception {
101
101
}
102
102
103
103
@ Test
104
- void doesNotExistForIndefinatePathWithResults () throws Exception {
104
+ void doesNotExistForIndefinitePathWithResults () throws Exception {
105
105
String expression = "$.familyMembers[?(@.name == 'Bart')]" ;
106
106
assertThatExceptionOfType (AssertionError .class ).isThrownBy (() ->
107
107
new JsonPathExpectationsHelper (expression ).doesNotExist (SIMPSONS ))
108
108
.withMessageContaining ("Expected no value at JSON path \" " + expression + "\" but found: [{\" name\" :\" Bart\" }]" );
109
109
}
110
110
111
111
@ Test
112
- void doesNotExistForIndefinatePathWithEmptyResults () throws Exception {
112
+ void doesNotExistForIndefinitePathWithEmptyResults () throws Exception {
113
113
new JsonPathExpectationsHelper ("$.familyMembers[?(@.name == 'Dilbert')]" ).doesNotExist (SIMPSONS );
114
114
}
115
115
@@ -129,12 +129,12 @@ void assertValueIsEmptyForAnEmptyMap() throws Exception {
129
129
}
130
130
131
131
@ Test
132
- void assertValueIsEmptyForIndefinatePathWithEmptyResults () throws Exception {
132
+ void assertValueIsEmptyForIndefinitePathWithEmptyResults () throws Exception {
133
133
new JsonPathExpectationsHelper ("$.familyMembers[?(@.name == 'Dilbert')]" ).assertValueIsEmpty (SIMPSONS );
134
134
}
135
135
136
136
@ Test
137
- void assertValueIsEmptyForIndefinatePathWithResults () throws Exception {
137
+ void assertValueIsEmptyForIndefinitePathWithResults () throws Exception {
138
138
String expression = "$.familyMembers[?(@.name == 'Bart')]" ;
139
139
assertThatExceptionOfType (AssertionError .class ).isThrownBy (() ->
140
140
new JsonPathExpectationsHelper (expression ).assertValueIsEmpty (SIMPSONS ))
@@ -175,12 +175,12 @@ void assertValueIsNotEmptyForMap() throws Exception {
175
175
}
176
176
177
177
@ Test
178
- void assertValueIsNotEmptyForIndefinatePathWithResults () throws Exception {
178
+ void assertValueIsNotEmptyForIndefinitePathWithResults () throws Exception {
179
179
new JsonPathExpectationsHelper ("$.familyMembers[?(@.name == 'Bart')]" ).assertValueIsNotEmpty (SIMPSONS );
180
180
}
181
181
182
182
@ Test
183
- void assertValueIsNotEmptyForIndefinatePathWithEmptyResults () throws Exception {
183
+ void assertValueIsNotEmptyForIndefinitePathWithEmptyResults () throws Exception {
184
184
String expression = "$.familyMembers[?(@.name == 'Dilbert')]" ;
185
185
assertThatExceptionOfType (AssertionError .class ).isThrownBy (() ->
186
186
new JsonPathExpectationsHelper (expression ).assertValueIsNotEmpty (SIMPSONS ))
@@ -222,12 +222,12 @@ void hasJsonPathWithNull() {
222
222
}
223
223
224
224
@ Test
225
- void hasJsonPathForIndefinatePathWithResults () {
225
+ void hasJsonPathForIndefinitePathWithResults () {
226
226
new JsonPathExpectationsHelper ("$.familyMembers[?(@.name == 'Bart')]" ).hasJsonPath (SIMPSONS );
227
227
}
228
228
229
229
@ Test
230
- void hasJsonPathForIndefinatePathWithEmptyResults () {
230
+ void hasJsonPathForIndefinitePathWithEmptyResults () {
231
231
String expression = "$.familyMembers[?(@.name == 'Dilbert')]" ;
232
232
assertThatExceptionOfType (AssertionError .class ).isThrownBy (() ->
233
233
new JsonPathExpectationsHelper (expression ).hasJsonPath (SIMPSONS ))
@@ -246,12 +246,12 @@ void doesNotHaveJsonPathWithNull() {
246
246
}
247
247
248
248
@ Test
249
- void doesNotHaveJsonPathForIndefinatePathWithEmptyResults () {
249
+ void doesNotHaveJsonPathForIndefinitePathWithEmptyResults () {
250
250
new JsonPathExpectationsHelper ("$.familyMembers[?(@.name == 'Dilbert')]" ).doesNotHaveJsonPath (SIMPSONS );
251
251
}
252
252
253
253
@ Test
254
- void doesNotHaveEmptyPathForIndefinatePathWithResults () {
254
+ void doesNotHaveEmptyPathForIndefinitePathWithResults () {
255
255
String expression = "$.familyMembers[?(@.name == 'Bart')]" ;
256
256
assertThatExceptionOfType (AssertionError .class ).isThrownBy (() ->
257
257
new JsonPathExpectationsHelper (expression ).doesNotHaveJsonPath (SIMPSONS ))
0 commit comments