Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 25241a1

Browse files
add test case to reproduce #264
1 parent d46ff7d commit 25241a1

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.trivadis.plsql.formatter.settings.tests.issues;
2+
3+
import com.trivadis.plsql.formatter.settings.ConfiguredTestFormatter;
4+
import org.junit.jupiter.api.Test;
5+
import org.junit.jupiter.api.TestInstance;
6+
7+
import java.io.IOException;
8+
9+
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
10+
public class Issue_264_exit_in_whenever_oserror extends ConfiguredTestFormatter {
11+
@Test
12+
public void exit_in_whenever_os_error() throws IOException {
13+
var input = """
14+
whenever sqlerror exit failure
15+
whenever oserror exit failure
16+
select * from dual;
17+
""";
18+
formatAndAssert(input);
19+
}
20+
}

0 commit comments

Comments
 (0)