Skip to content

Commit

Permalink
Fix typo in test method names
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Aug 1, 2020
1 parent 5576321 commit 5a12e7b
Showing 1 changed file with 13 additions and 13 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2019 the original author or authors.
* Copyright 2004-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -67,12 +67,12 @@ void existsForAnEmptyMap() throws Exception {
}

@Test
void existsForIndefinatePathWithResults() throws Exception {
void existsForIndefinitePathWithResults() throws Exception {
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Bart')]").exists(SIMPSONS);
}

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

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

@Test
void doesNotExistForIndefinatePathWithEmptyResults() throws Exception {
void doesNotExistForIndefinitePathWithEmptyResults() throws Exception {
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Dilbert')]").doesNotExist(SIMPSONS);
}

Expand All @@ -129,12 +129,12 @@ void assertValueIsEmptyForAnEmptyMap() throws Exception {
}

@Test
void assertValueIsEmptyForIndefinatePathWithEmptyResults() throws Exception {
void assertValueIsEmptyForIndefinitePathWithEmptyResults() throws Exception {
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Dilbert')]").assertValueIsEmpty(SIMPSONS);
}

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

@Test
void assertValueIsNotEmptyForIndefinatePathWithResults() throws Exception {
void assertValueIsNotEmptyForIndefinitePathWithResults() throws Exception {
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Bart')]").assertValueIsNotEmpty(SIMPSONS);
}

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

@Test
void hasJsonPathForIndefinatePathWithResults() {
void hasJsonPathForIndefinitePathWithResults() {
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Bart')]").hasJsonPath(SIMPSONS);
}

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

@Test
void doesNotHaveJsonPathForIndefinatePathWithEmptyResults() {
void doesNotHaveJsonPathForIndefinitePathWithEmptyResults() {
new JsonPathExpectationsHelper("$.familyMembers[?(@.name == 'Dilbert')]").doesNotHaveJsonPath(SIMPSONS);
}

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

0 comments on commit 5a12e7b

Please sign in to comment.