Skip to content

Commit 1d0b2dd

Browse files
committed
Add test for ParameterExpression
1 parent a049297 commit 1d0b2dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/org/apache/ibatis/builder/ParameterExpressionTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,11 @@ public void invalidOldJdbcTypeFormat() {
138138
new ParameterExpression("id:");
139139
}
140140

141+
@Test
142+
public void invalidJdbcTypeOptUsingExpression() {
143+
expectedException.expect(BuilderException.class);
144+
expectedException.expectMessage(is("Parsing error in {(expression)+} in position 12"));
145+
new ParameterExpression("(expression)+");
146+
}
147+
141148
}

0 commit comments

Comments
 (0)