Skip to content

Commit 259fc8c

Browse files
committed
Change how a Like comparator parameter is handled in a StringQuery. Replacing the provided parameter in a StringQuery with a new name or index when the named or indexed parameter is used more then once in the query.
Closes #1929
1 parent 799a1c7 commit 259fc8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/StringQueryUnitTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private void assertNamedBinding(Class<? extends ParameterBinding> bindingType, S
569569

570570
private void assertUpdatedNameBinding(String parameterName, LikeParameterBinding expectedBinding) {
571571

572-
softly.assertThat(expectedBinding).isNotNull();
573-
softly.assertThat(expectedBinding.hasUpdatedName(parameterName)).isTrue();
572+
assertThat(expectedBinding).isNotNull();
573+
assertThat(expectedBinding.hasUpdatedName(parameterName)).isTrue();
574574
}
575575
}

0 commit comments

Comments
 (0)