Skip to content

Commit 8176c08

Browse files
committed
v16.14.3
1 parent 8d68ddb commit 8176c08

File tree

7 files changed

+34
-58
lines changed

7 files changed

+34
-58
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-parent</artifactId>
9-
<version>16.14.2</version>
9+
<version>16.14.3</version>
1010
</parent>
1111
<artifactId>schemacrawler-database-plugins-parent</artifactId>
1212
<packaging>pom</packaging>

schemacrawler-hana/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-parent</artifactId>
9-
<version>16.14.2</version>
9+
<version>16.14.3</version>
1010
</parent>
1111
<artifactId>schemacrawler-hana</artifactId>
1212
<packaging>jar</packaging>

schemacrawler-hana/src/test/java/schemacrawler/integration/test/CommandLineHelpTest.java

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
package schemacrawler.integration.test;
2929

30-
3130
import static org.hamcrest.MatcherAssert.assertThat;
3231
import static schemacrawler.test.utility.FileHasContent.classpathResource;
3332
import static schemacrawler.test.utility.FileHasContent.hasNoContent;
@@ -42,50 +41,43 @@
4241
import org.junit.jupiter.api.BeforeEach;
4342
import org.junit.jupiter.api.Test;
4443
import org.junit.jupiter.api.extension.ExtendWith;
44+
4545
import schemacrawler.Main;
4646
import schemacrawler.test.utility.TestContext;
4747
import schemacrawler.test.utility.TestContextParameterResolver;
4848
import schemacrawler.test.utility.TestOutputStream;
4949

5050
@ExtendWith(TestContextParameterResolver.class)
51-
public class CommandLineHelpTest
52-
{
51+
public class CommandLineHelpTest {
5352

54-
private static final String COMMAND_LINE_HELP_OUTPUT =
55-
"command_line_help_output/";
53+
private static final String COMMAND_LINE_HELP_OUTPUT = "command_line_help_output/";
5654

5755
private TestOutputStream err;
5856
private TestOutputStream out;
5957

6058
@AfterEach
61-
public void cleanUpStreams()
62-
{
59+
public void cleanUpStreams() {
6360
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));
6461
System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));
6562
}
6663

6764
@Test
68-
public void commandLineHelp(final TestContext testContext)
69-
throws Exception
70-
{
65+
public void commandLineHelp(final TestContext testContext) throws Exception {
7166
final String server = "hana";
72-
Main.main("-help", "-server", server);
67+
Main.main("--help", "server:" + server);
7368

7469
assertThat(outputOf(err), hasNoContent());
75-
assertThat(outputOf(out),
76-
hasSameContentAs(classpathResource(
77-
COMMAND_LINE_HELP_OUTPUT + server + ".help.txt")));
70+
assertThat(
71+
outputOf(out),
72+
hasSameContentAs(classpathResource(COMMAND_LINE_HELP_OUTPUT + server + ".help.txt")));
7873
}
7974

8075
@BeforeEach
81-
public void setUpStreams()
82-
throws Exception
83-
{
76+
public void setUpStreams() throws Exception {
8477
out = new TestOutputStream();
8578
System.setOut(new PrintStream(out));
8679

8780
err = new TestOutputStream();
8881
System.setErr(new PrintStream(err));
8982
}
90-
9183
}

schemacrawler-sapiq/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>us.fatehi</groupId>
99
<artifactId>schemacrawler-parent</artifactId>
10-
<version>16.14.2</version>
10+
<version>16.14.3</version>
1111
</parent>
1212
<artifactId>schemacrawler-sapiq</artifactId>
1313
<packaging>jar</packaging>

schemacrawler-sapiq/src/test/java/schemacrawler/integration/test/CommandLineHelpTest.java

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
package schemacrawler.integration.test;
2929

30-
3130
import static org.hamcrest.MatcherAssert.assertThat;
3231
import static schemacrawler.test.utility.FileHasContent.classpathResource;
3332
import static schemacrawler.test.utility.FileHasContent.hasNoContent;
@@ -42,50 +41,43 @@
4241
import org.junit.jupiter.api.BeforeEach;
4342
import org.junit.jupiter.api.Test;
4443
import org.junit.jupiter.api.extension.ExtendWith;
44+
4545
import schemacrawler.Main;
4646
import schemacrawler.test.utility.TestContext;
4747
import schemacrawler.test.utility.TestContextParameterResolver;
4848
import schemacrawler.test.utility.TestOutputStream;
4949

5050
@ExtendWith(TestContextParameterResolver.class)
51-
public class CommandLineHelpTest
52-
{
51+
public class CommandLineHelpTest {
5352

54-
private static final String COMMAND_LINE_HELP_OUTPUT =
55-
"command_line_help_output/";
53+
private static final String COMMAND_LINE_HELP_OUTPUT = "command_line_help_output/";
5654

5755
private TestOutputStream err;
5856
private TestOutputStream out;
5957

6058
@AfterEach
61-
public void cleanUpStreams()
62-
{
59+
public void cleanUpStreams() {
6360
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));
6461
System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));
6562
}
6663

6764
@Test
68-
public void commandLineHelp(final TestContext testContext)
69-
throws Exception
70-
{
65+
public void commandLineHelp(final TestContext testContext) throws Exception {
7166
final String server = "sapiq";
72-
Main.main("-help", "-server", server);
67+
Main.main("--help", "server:" + server);
7368

7469
assertThat(outputOf(err), hasNoContent());
75-
assertThat(outputOf(out),
76-
hasSameContentAs(classpathResource(
77-
COMMAND_LINE_HELP_OUTPUT + server + ".help.txt")));
70+
assertThat(
71+
outputOf(out),
72+
hasSameContentAs(classpathResource(COMMAND_LINE_HELP_OUTPUT + server + ".help.txt")));
7873
}
7974

8075
@BeforeEach
81-
public void setUpStreams()
82-
throws Exception
83-
{
76+
public void setUpStreams() throws Exception {
8477
out = new TestOutputStream();
8578
System.setOut(new PrintStream(out));
8679

8780
err = new TestOutputStream();
8881
System.setErr(new PrintStream(err));
8982
}
90-
9183
}

schemacrawler-timesten/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-parent</artifactId>
9-
<version>16.14.2</version>
9+
<version>16.14.3</version>
1010
</parent>
1111
<artifactId>schemacrawler-timesten</artifactId>
1212
<packaging>jar</packaging>

schemacrawler-timesten/src/test/java/schemacrawler/integration/test/CommandLineHelpTest.java

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
package schemacrawler.integration.test;
2929

30-
3130
import static org.hamcrest.MatcherAssert.assertThat;
3231
import static schemacrawler.test.utility.FileHasContent.classpathResource;
3332
import static schemacrawler.test.utility.FileHasContent.hasNoContent;
@@ -42,50 +41,43 @@
4241
import org.junit.jupiter.api.BeforeEach;
4342
import org.junit.jupiter.api.Test;
4443
import org.junit.jupiter.api.extension.ExtendWith;
44+
4545
import schemacrawler.Main;
4646
import schemacrawler.test.utility.TestContext;
4747
import schemacrawler.test.utility.TestContextParameterResolver;
4848
import schemacrawler.test.utility.TestOutputStream;
4949

5050
@ExtendWith(TestContextParameterResolver.class)
51-
public class CommandLineHelpTest
52-
{
51+
public class CommandLineHelpTest {
5352

54-
private static final String COMMAND_LINE_HELP_OUTPUT =
55-
"command_line_help_output/";
53+
private static final String COMMAND_LINE_HELP_OUTPUT = "command_line_help_output/";
5654

5755
private TestOutputStream err;
5856
private TestOutputStream out;
5957

6058
@AfterEach
61-
public void cleanUpStreams()
62-
{
59+
public void cleanUpStreams() {
6360
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));
6461
System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));
6562
}
6663

6764
@Test
68-
public void commandLineHelp(final TestContext testContext)
69-
throws Exception
70-
{
65+
public void commandLineHelp(final TestContext testContext) throws Exception {
7166
final String server = "timesten";
72-
Main.main("-help", "-server", server);
67+
Main.main("--help", "server:" + server);
7368

7469
assertThat(outputOf(err), hasNoContent());
75-
assertThat(outputOf(out),
76-
hasSameContentAs(classpathResource(
77-
COMMAND_LINE_HELP_OUTPUT + server + ".help.txt")));
70+
assertThat(
71+
outputOf(out),
72+
hasSameContentAs(classpathResource(COMMAND_LINE_HELP_OUTPUT + server + ".help.txt")));
7873
}
7974

8075
@BeforeEach
81-
public void setUpStreams()
82-
throws Exception
83-
{
76+
public void setUpStreams() throws Exception {
8477
out = new TestOutputStream();
8578
System.setOut(new PrintStream(out));
8679

8780
err = new TestOutputStream();
8881
System.setErr(new PrintStream(err));
8982
}
90-
9183
}

0 commit comments

Comments
 (0)