We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3cb254 commit 9ede590Copy full SHA for 9ede590
src/test/java/org/mybatis/dynamic/sql/InvalidSQLTest.java
@@ -47,6 +47,7 @@
47
import org.mybatis.dynamic.sql.update.UpdateDSL;
48
import org.mybatis.dynamic.sql.update.UpdateModel;
49
import org.mybatis.dynamic.sql.util.Messages;
50
+import org.mybatis.dynamic.sql.where.condition.IsEqualTo;
51
52
class InvalidSQLTest {
53
@@ -253,8 +254,9 @@ void testInvalidMultipleWhereClauses() {
253
254
.set(id).equalTo(3)
255
.where(id, isEqualTo(2));
256
257
+ IsEqualTo<Integer> condition = isEqualTo(5);
258
assertThatExceptionOfType(InvalidSqlException.class)
- .isThrownBy(() -> builder.where(id, isEqualTo(5)))
259
+ .isThrownBy(() -> builder.where(id, condition))
260
.withMessage(Messages.getString("ERROR.32"));
261
262
}
0 commit comments