-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTestRunnerStatementProviderIT.java
More file actions
38 lines (29 loc) · 1.54 KB
/
TestRunnerStatementProviderIT.java
File metadata and controls
38 lines (29 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.utplsql.api.testRunner;
import org.junit.jupiter.api.Test;
import org.utplsql.api.AbstractDatabaseTest;
import org.utplsql.api.TestRunnerOptions;
import org.utplsql.api.Version;
import java.sql.SQLException;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestRunnerStatementProviderIT extends AbstractDatabaseTest {
@Test
void testGettingPre303Version() throws SQLException {
TestRunnerStatement stmt = TestRunnerStatementProvider.getCompatibleTestRunnerStatement(Version.V3_0_2, new TestRunnerOptions(), getConnection());
assertEquals(Pre303TestRunnerStatement.class, stmt.getClass());
}
@Test
void testGettingPre312Version_from_303() throws SQLException {
TestRunnerStatement stmt = TestRunnerStatementProvider.getCompatibleTestRunnerStatement(Version.V3_0_3, new TestRunnerOptions(), getConnection());
assertEquals(Pre312TestRunnerStatement.class, stmt.getClass());
}
@Test
void testGettingPre312Version_from_311() throws SQLException {
TestRunnerStatement stmt = TestRunnerStatementProvider.getCompatibleTestRunnerStatement(Version.V3_1_1, new TestRunnerOptions(), getConnection());
assertEquals(Pre312TestRunnerStatement.class, stmt.getClass());
}
@Test
void testGettingActualVersion() throws SQLException {
TestRunnerStatement stmt = TestRunnerStatementProvider.getCompatibleTestRunnerStatement(Version.V3_1_2, new TestRunnerOptions(), getConnection());
assertEquals(ActualTestRunnerStatement.class, stmt.getClass());
}
}