-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDatabaseInformationIT.java
More file actions
30 lines (22 loc) · 1014 Bytes
/
DatabaseInformationIT.java
File metadata and controls
30 lines (22 loc) · 1014 Bytes
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
package org.utplsql.api;
import org.junit.jupiter.api.Test;
import org.utplsql.api.db.DatabaseInformation;
import org.utplsql.api.db.DefaultDatabaseInformation;
import java.sql.SQLException;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
class DatabaseInformationIT extends AbstractDatabaseTest {
@Test
void getFrameworkVersion() throws SQLException {
DatabaseInformation databaseInformation = new DefaultDatabaseInformation();
Version v = databaseInformation.getUtPlsqlFrameworkVersion(getConnection());
assertTrue(v.isValid());
System.out.println(v.getNormalizedString() + " - " + v.toString());
}
@Test
void getOracleDatabaseVersion() throws SQLException {
DatabaseInformation databaseInformation = new DefaultDatabaseInformation();
String databaseVersion = databaseInformation.getOracleVersion(getConnection());
assertNotNull(databaseVersion);
}
}