Skip to content

Commit 5a12e7b

Browse files
committed
Fix typo in test method names
1 parent 5576321 commit 5a12e7b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

spring-test/src/test/java/org/springframework/test/util/JsonPathExpectationsHelperTests.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2004-2019 the original author or authors.
2+
* Copyright 2004-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -67,12 +67,12 @@ void existsForAnEmptyMap() throws Exception {
6767
}
6868

6969
@Test
70-
void existsForIndefinatePathWithResults() throws Exception {
70+
void existsForIndefinitePathWithResults() throws Exception {
7171
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Bart')]").exists(SIMPSONS);
7272
}
7373

7474
@Test
75-
void existsForIndefinatePathWithEmptyResults() throws Exception {
75+
void existsForIndefinitePathWithEmptyResults() throws Exception {
7676
String expression = "$.familyMembers[?(@.name == 'Dilbert')]";
7777
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
7878
new JsonPathExpectationsHelper(expression).exists(SIMPSONS))
@@ -101,15 +101,15 @@ void doesNotExistForAnEmptyMap() throws Exception {
101101
}
102102

103103
@Test
104-
void doesNotExistForIndefinatePathWithResults() throws Exception {
104+
void doesNotExistForIndefinitePathWithResults() throws Exception {
105105
String expression = "$.familyMembers[?(@.name == 'Bart')]";
106106
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
107107
new JsonPathExpectationsHelper(expression).doesNotExist(SIMPSONS))
108108
.withMessageContaining("Expected no value at JSON path \"" + expression + "\" but found: [{\"name\":\"Bart\"}]");
109109
}
110110

111111
@Test
112-
void doesNotExistForIndefinatePathWithEmptyResults() throws Exception {
112+
void doesNotExistForIndefinitePathWithEmptyResults() throws Exception {
113113
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Dilbert')]").doesNotExist(SIMPSONS);
114114
}
115115

@@ -129,12 +129,12 @@ void assertValueIsEmptyForAnEmptyMap() throws Exception {
129129
}
130130

131131
@Test
132-
void assertValueIsEmptyForIndefinatePathWithEmptyResults() throws Exception {
132+
void assertValueIsEmptyForIndefinitePathWithEmptyResults() throws Exception {
133133
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Dilbert')]").assertValueIsEmpty(SIMPSONS);
134134
}
135135

136136
@Test
137-
void assertValueIsEmptyForIndefinatePathWithResults() throws Exception {
137+
void assertValueIsEmptyForIndefinitePathWithResults() throws Exception {
138138
String expression = "$.familyMembers[?(@.name == 'Bart')]";
139139
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
140140
new JsonPathExpectationsHelper(expression).assertValueIsEmpty(SIMPSONS))
@@ -175,12 +175,12 @@ void assertValueIsNotEmptyForMap() throws Exception {
175175
}
176176

177177
@Test
178-
void assertValueIsNotEmptyForIndefinatePathWithResults() throws Exception {
178+
void assertValueIsNotEmptyForIndefinitePathWithResults() throws Exception {
179179
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Bart')]").assertValueIsNotEmpty(SIMPSONS);
180180
}
181181

182182
@Test
183-
void assertValueIsNotEmptyForIndefinatePathWithEmptyResults() throws Exception {
183+
void assertValueIsNotEmptyForIndefinitePathWithEmptyResults() throws Exception {
184184
String expression = "$.familyMembers[?(@.name == 'Dilbert')]";
185185
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
186186
new JsonPathExpectationsHelper(expression).assertValueIsNotEmpty(SIMPSONS))
@@ -222,12 +222,12 @@ void hasJsonPathWithNull() {
222222
}
223223

224224
@Test
225-
void hasJsonPathForIndefinatePathWithResults() {
225+
void hasJsonPathForIndefinitePathWithResults() {
226226
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Bart')]").hasJsonPath(SIMPSONS);
227227
}
228228

229229
@Test
230-
void hasJsonPathForIndefinatePathWithEmptyResults() {
230+
void hasJsonPathForIndefinitePathWithEmptyResults() {
231231
String expression = "$.familyMembers[?(@.name == 'Dilbert')]";
232232
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
233233
new JsonPathExpectationsHelper(expression).hasJsonPath(SIMPSONS))
@@ -246,12 +246,12 @@ void doesNotHaveJsonPathWithNull() {
246246
}
247247

248248
@Test
249-
void doesNotHaveJsonPathForIndefinatePathWithEmptyResults() {
249+
void doesNotHaveJsonPathForIndefinitePathWithEmptyResults() {
250250
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Dilbert')]").doesNotHaveJsonPath(SIMPSONS);
251251
}
252252

253253
@Test
254-
void doesNotHaveEmptyPathForIndefinatePathWithResults() {
254+
void doesNotHaveEmptyPathForIndefinitePathWithResults() {
255255
String expression = "$.familyMembers[?(@.name == 'Bart')]";
256256
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
257257
new JsonPathExpectationsHelper(expression).doesNotHaveJsonPath(SIMPSONS))

0 commit comments

Comments
 (0)