Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Simple test to check if we get what we expect
  • Loading branch information
pesse committed Mar 14, 2019
commit 96d2464538106caf2988b2a314f908b0fce2af36
2 changes: 1 addition & 1 deletion src/main/java/org/utplsql/cli/RunCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public class RunCommand implements ICommand {
private ReporterFactory reporterFactory;
private ReporterManager reporterManager;

private ConnectionInfo getConnectionInfo() {
ConnectionInfo getConnectionInfo() {
return connectionInfoList.get(0);
}

Expand Down
7 changes: 7 additions & 0 deletions src/test/java/org/utplsql/cli/RunCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,11 @@ void reporterOptions_TwoReporters() {
assertTrue(reporterOptions2.outputToScreen());
}

@Test
void connectionString_asSysdba() {
RunCommand runCmd = TestHelper.createRunCommand("sys as sysdba/mypass@connectstring/service");

assertEquals("sys as sysdba/mypass@connectstring/service",
runCmd.getConnectionInfo().getConnectionString());
}
}