Skip to content

Commit 96d2464

Browse files
committed
Simple test to check if we get what we expect
1 parent 856607a commit 96d2464

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/java/org/utplsql/cli/RunCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public class RunCommand implements ICommand {
124124
private ReporterFactory reporterFactory;
125125
private ReporterManager reporterManager;
126126

127-
private ConnectionInfo getConnectionInfo() {
127+
ConnectionInfo getConnectionInfo() {
128128
return connectionInfoList.get(0);
129129
}
130130

src/test/java/org/utplsql/cli/RunCommandTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,11 @@ void reporterOptions_TwoReporters() {
8585
assertTrue(reporterOptions2.outputToScreen());
8686
}
8787

88+
@Test
89+
void connectionString_asSysdba() {
90+
RunCommand runCmd = TestHelper.createRunCommand("sys as sysdba/mypass@connectstring/service");
91+
92+
assertEquals("sys as sysdba/mypass@connectstring/service",
93+
runCmd.getConnectionInfo().getConnectionString());
94+
}
8895
}

0 commit comments

Comments
 (0)