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 d93541d commit c728e55Copy full SHA for c728e55
src/test/java/org/mybatis/spring/batch/MyBatisCursorItemReaderTest.java
@@ -27,6 +27,8 @@
27
import org.springframework.batch.item.ExecutionContext;
28
import org.springframework.batch.item.ItemStreamException;
29
30
+import static org.junit.Assert.fail;
31
+
32
/**
33
* Tests for {@link MyBatisCursorItemReader}.
34
*/
@@ -59,6 +61,7 @@ public void testCloseOnFailing() throws Exception {
59
61
ExecutionContext executionContext = new ExecutionContext();
60
62
try {
63
itemReader.open(executionContext);
64
+ fail();
65
} catch (ItemStreamException e) {
66
Assert.assertThat(e.getMessage(), Is.is("Failed to initialize the reader"));
67
Assert.assertThat(e.getCause(), IsInstanceOf.instanceOf(RuntimeException.class));
0 commit comments