DATAMONGO-2571 - Polishing.

Reduce test method visibility for JUnit 5.

Original pull request: #873.
This commit is contained in:
Mark Paluch
2020-07-15 15:33:10 +02:00
parent 25733664b3
commit 7a39e94e4b

View File

@@ -334,7 +334,7 @@ class ParameterBindingJsonReaderUnitTests {
} }
@Test // DATAMONGO-2571 @Test // DATAMONGO-2571
public void shouldParseRegexCorrectly() { void shouldParseRegexCorrectly() {
Document target = parse("{ $and: [{'fieldA': {$in: [/ABC.*/, /CDE.*F/]}}, {'fieldB': {$ne: null}}]}"); Document target = parse("{ $and: [{'fieldA': {$in: [/ABC.*/, /CDE.*F/]}}, {'fieldB': {$ne: null}}]}");
assertThat(target) assertThat(target)
@@ -342,7 +342,7 @@ class ParameterBindingJsonReaderUnitTests {
} }
@Test // DATAMONGO-2571 @Test // DATAMONGO-2571
public void shouldParseRegexWithPlaceholderCorrectly() { void shouldParseRegexWithPlaceholderCorrectly() {
Document target = parse("{ $and: [{'fieldA': {$in: [/?0.*/, /CDE.*F/]}}, {'fieldB': {$ne: null}}]}", "ABC"); Document target = parse("{ $and: [{'fieldA': {$in: [/?0.*/, /CDE.*F/]}}, {'fieldB': {$ne: null}}]}", "ABC");
assertThat(target) assertThat(target)