Skip to content

Commit 854e8b5

Browse files
authored
feature/13: Made info message single line (#33)
1 parent 5960d3d commit 854e8b5

File tree

6 files changed

+108
-78
lines changed

6 files changed

+108
-78
lines changed

dependencies.md

Lines changed: 63 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@
1313
| [Apache Commons Compress][11] | [Apache License, Version 2.0][12] |
1414
| [Test Database Builder for Java][13] | [MIT][4] |
1515
| [SLF4J API Module][15] | [MIT License][16] |
16+
| [JUnit5 System Extensions][17] | [Eclipse Public License v2.0][18] |
1617

1718
## Test Dependencies
1819

1920
| Dependency | License |
2021
| ----------------------------------------------- | --------------------------------- |
2122
| [JaCoCo :: Agent][5] | [Eclipse Public License 2.0][6] |
22-
| [JUnit Jupiter Engine][19] | [Eclipse Public License v2.0][20] |
23-
| [JUnit Jupiter Params][19] | [Eclipse Public License v2.0][20] |
24-
| [mockito-core][23] | [The MIT License][24] |
25-
| [mockito-junit-jupiter][23] | [The MIT License][24] |
26-
| [Hamcrest All][27] | [New BSD License][28] |
27-
| [Test containers for Exasol on Docker][29] | [MIT][4] |
28-
| [Testcontainers :: JUnit Jupiter Extension][31] | [MIT][32] |
23+
| [JUnit Jupiter Engine][21] | [Eclipse Public License v2.0][22] |
24+
| [JUnit Jupiter Params][21] | [Eclipse Public License v2.0][22] |
25+
| [mockito-core][25] | [The MIT License][26] |
26+
| [mockito-junit-jupiter][25] | [The MIT License][26] |
27+
| [Hamcrest All][29] | [New BSD License][30] |
28+
| [Test containers for Exasol on Docker][31] | [MIT][4] |
29+
| [Testcontainers :: JUnit Jupiter Extension][33] | [MIT][34] |
2930

3031
## Runtime Dependencies
3132

@@ -37,71 +38,73 @@
3738

3839
| Dependency | License |
3940
| ------------------------------------------------------- | ---------------------------------------------- |
40-
| [Maven Surefire Plugin][36] | [Apache License, Version 2.0][12] |
41-
| [Maven Failsafe Plugin][38] | [Apache License, Version 2.0][12] |
42-
| [JaCoCo :: Maven Plugin][40] | [Eclipse Public License 2.0][6] |
43-
| [Apache Maven Compiler Plugin][42] | [Apache License, Version 2.0][12] |
44-
| [Maven Dependency Plugin][44] | [The Apache Software License, Version 2.0][45] |
45-
| [Versions Maven Plugin][46] | [Apache License, Version 2.0][12] |
46-
| [Apache Maven Source Plugin][48] | [Apache License, Version 2.0][12] |
47-
| [Apache Maven Javadoc Plugin][50] | [Apache License, Version 2.0][12] |
48-
| [Apache Maven GPG Plugin][52] | [Apache License, Version 2.0][45] |
49-
| [org.sonatype.ossindex.maven:ossindex-maven-plugin][54] | [ASL2][45] |
50-
| [Apache Maven Enforcer Plugin][56] | [Apache License, Version 2.0][12] |
51-
| [Project keeper maven plugin][58] | [MIT][4] |
52-
| [Maven Deploy Plugin][60] | [The Apache Software License, Version 2.0][45] |
53-
| [Nexus Staging Maven Plugin][62] | [Eclipse Public License][63] |
54-
| [error-code-crawler-maven-plugin][64] | [MIT][4] |
55-
| [Reproducible Build Maven Plugin][66] | [Apache 2.0][45] |
56-
| [Maven Clean Plugin][68] | [The Apache Software License, Version 2.0][45] |
57-
| [Maven Resources Plugin][70] | [The Apache Software License, Version 2.0][45] |
58-
| [Maven JAR Plugin][72] | [The Apache Software License, Version 2.0][45] |
59-
| [Maven Install Plugin][74] | [The Apache Software License, Version 2.0][45] |
60-
| [Maven Site Plugin 3][76] | [The Apache Software License, Version 2.0][45] |
41+
| [Maven Surefire Plugin][38] | [Apache License, Version 2.0][12] |
42+
| [Maven Failsafe Plugin][40] | [Apache License, Version 2.0][12] |
43+
| [JaCoCo :: Maven Plugin][42] | [Eclipse Public License 2.0][6] |
44+
| [Apache Maven Compiler Plugin][44] | [Apache License, Version 2.0][12] |
45+
| [Maven Dependency Plugin][46] | [The Apache Software License, Version 2.0][47] |
46+
| [Versions Maven Plugin][48] | [Apache License, Version 2.0][12] |
47+
| [Apache Maven Source Plugin][50] | [Apache License, Version 2.0][12] |
48+
| [Apache Maven Javadoc Plugin][52] | [Apache License, Version 2.0][12] |
49+
| [Apache Maven GPG Plugin][54] | [Apache License, Version 2.0][47] |
50+
| [org.sonatype.ossindex.maven:ossindex-maven-plugin][56] | [ASL2][47] |
51+
| [Apache Maven Enforcer Plugin][58] | [Apache License, Version 2.0][12] |
52+
| [Project keeper maven plugin][60] | [MIT][4] |
53+
| [Maven Deploy Plugin][62] | [The Apache Software License, Version 2.0][47] |
54+
| [Nexus Staging Maven Plugin][64] | [Eclipse Public License][65] |
55+
| [error-code-crawler-maven-plugin][66] | [MIT][4] |
56+
| [Reproducible Build Maven Plugin][68] | [Apache 2.0][47] |
57+
| [Maven Clean Plugin][70] | [The Apache Software License, Version 2.0][47] |
58+
| [Maven Resources Plugin][72] | [The Apache Software License, Version 2.0][47] |
59+
| [Maven JAR Plugin][74] | [The Apache Software License, Version 2.0][47] |
60+
| [Maven Install Plugin][76] | [The Apache Software License, Version 2.0][47] |
61+
| [Maven Site Plugin 3][78] | [The Apache Software License, Version 2.0][47] |
6162

6263
[5]: https://www.eclemma.org/jacoco/index.html
63-
[58]: https://github.com/exasol/project-keeper-maven-plugin
64+
[60]: https://github.com/exasol/project-keeper-maven-plugin
6465
[7]: https://github.com/exasol/bucketfs-java
6566
[3]: https://github.com/exasol/error-reporting-java
66-
[45]: http://www.apache.org/licenses/LICENSE-2.0.txt
67-
[36]: https://maven.apache.org/surefire/maven-surefire-plugin/
68-
[62]: http://www.sonatype.com/public-parent/nexus-maven-plugins/nexus-staging/nexus-staging-maven-plugin/
69-
[68]: http://maven.apache.org/plugins/maven-clean-plugin/
67+
[18]: http://www.eclipse.org/legal/epl-v20.html
68+
[47]: http://www.apache.org/licenses/LICENSE-2.0.txt
69+
[38]: https://maven.apache.org/surefire/maven-surefire-plugin/
70+
[64]: http://www.sonatype.com/public-parent/nexus-maven-plugins/nexus-staging/nexus-staging-maven-plugin/
71+
[70]: http://maven.apache.org/plugins/maven-clean-plugin/
7072
[4]: https://opensource.org/licenses/MIT
71-
[23]: https://github.com/mockito/mockito
72-
[38]: https://maven.apache.org/surefire/maven-failsafe-plugin/
73+
[25]: https://github.com/mockito/mockito
74+
[40]: https://maven.apache.org/surefire/maven-failsafe-plugin/
7375
[13]: https://github.com/exasol/test-db-builder-java
7476
[11]: https://commons.apache.org/proper/commons-compress/
75-
[44]: http://maven.apache.org/plugins/maven-dependency-plugin/
76-
[46]: http://www.mojohaus.org/versions-maven-plugin/
77-
[42]: https://maven.apache.org/plugins/maven-compiler-plugin/
78-
[32]: http://opensource.org/licenses/MIT
79-
[52]: http://maven.apache.org/plugins/maven-gpg-plugin/
77+
[46]: http://maven.apache.org/plugins/maven-dependency-plugin/
78+
[48]: http://www.mojohaus.org/versions-maven-plugin/
79+
[44]: https://maven.apache.org/plugins/maven-compiler-plugin/
80+
[34]: http://opensource.org/licenses/MIT
81+
[54]: http://maven.apache.org/plugins/maven-gpg-plugin/
8082
[6]: https://www.eclipse.org/legal/epl-2.0/
81-
[63]: http://www.eclipse.org/legal/epl-v10.html
82-
[29]: https://github.com/exasol/exasol-testcontainers
83-
[40]: https://www.jacoco.org/jacoco/trunk/doc/maven.html
84-
[24]: https://github.com/mockito/mockito/blob/main/LICENSE
85-
[66]: http://zlika.github.io/reproducible-build-maven-plugin
86-
[72]: http://maven.apache.org/plugins/maven-jar-plugin/
83+
[65]: http://www.eclipse.org/legal/epl-v10.html
84+
[31]: https://github.com/exasol/exasol-testcontainers
85+
[42]: https://www.jacoco.org/jacoco/trunk/doc/maven.html
86+
[26]: https://github.com/mockito/mockito/blob/main/LICENSE
87+
[68]: http://zlika.github.io/reproducible-build-maven-plugin
88+
[74]: http://maven.apache.org/plugins/maven-jar-plugin/
8789
[1]: https://projects.eclipse.org/license/epl-2.0
8890
[16]: http://www.opensource.org/licenses/mit-license.php
8991
[12]: https://www.apache.org/licenses/LICENSE-2.0.txt
90-
[56]: https://maven.apache.org/enforcer/maven-enforcer-plugin/
91-
[20]: https://www.eclipse.org/legal/epl-v20.html
92-
[28]: http://www.opensource.org/licenses/bsd-license.php
93-
[74]: http://maven.apache.org/plugins/maven-install-plugin/
94-
[19]: https://junit.org/junit5/
95-
[54]: https://sonatype.github.io/ossindex-maven/maven-plugin/
96-
[27]: https://github.com/hamcrest/JavaHamcrest/
97-
[31]: https://testcontainers.org
92+
[58]: https://maven.apache.org/enforcer/maven-enforcer-plugin/
93+
[22]: https://www.eclipse.org/legal/epl-v20.html
94+
[30]: http://www.opensource.org/licenses/bsd-license.php
95+
[76]: http://maven.apache.org/plugins/maven-install-plugin/
96+
[21]: https://junit.org/junit5/
97+
[56]: https://sonatype.github.io/ossindex-maven/maven-plugin/
98+
[29]: https://github.com/hamcrest/JavaHamcrest/
99+
[33]: https://testcontainers.org
98100
[0]: https://github.com/eclipse-ee4j/jsonp
99-
[48]: https://maven.apache.org/plugins/maven-source-plugin/
101+
[17]: https://github.com/itsallcode/junit5-system-extensions
102+
[50]: https://maven.apache.org/plugins/maven-source-plugin/
100103
[2]: https://projects.eclipse.org/license/secondary-gpl-2.0-cp
101104
[15]: http://www.slf4j.org
102-
[60]: http://maven.apache.org/plugins/maven-deploy-plugin/
103-
[76]: http://maven.apache.org/plugins/maven-site-plugin/
104-
[70]: http://maven.apache.org/plugins/maven-resources-plugin/
105-
[50]: https://maven.apache.org/plugins/maven-javadoc-plugin/
106-
[64]: https://github.com/exasol/error-code-crawler-maven-plugin
105+
[62]: http://maven.apache.org/plugins/maven-deploy-plugin/
106+
[78]: http://maven.apache.org/plugins/maven-site-plugin/
107+
[72]: http://maven.apache.org/plugins/maven-resources-plugin/
108+
[52]: https://maven.apache.org/plugins/maven-javadoc-plugin/
109+
[66]: https://github.com/exasol/error-code-crawler-maven-plugin
107110
[9]: https://github.com/exasol/exasol-test-setup-abstraction-java

doc/changes/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changes
22

3+
* [0.6.0](changes_0.6.0.md)
34
* [0.5.0](changes_0.5.0.md)
45
* [0.4.1](changes_0.4.1.md)
56
* [0.4.0](changes_0.4.0.md)

doc/changes/changes_0.6.0.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# udf-debugging-java 0.6.0, released 2022-02-21
2+
3+
Code name: Single line info message
4+
5+
## Features
6+
7+
* #13: Made info message single line
8+
9+
## Dependency Updates
10+
11+
### Compile Dependency Updates
12+
13+
* Updated `com.exasol:bucketfs-java:2.2.0` to `2.3.0`
14+
* Updated `com.exasol:exasol-test-setup-abstraction-java:0.2.1` to `0.2.2`
15+
* Updated `com.exasol:test-db-builder-java:3.2.1` to `3.2.2`
16+
* Added `org.itsallcode:junit5-system-extensions:1.2.0`
17+
* Updated `org.slf4j:slf4j-api:1.7.32` to `1.7.36`
18+
19+
### Test Dependency Updates
20+
21+
* Updated `com.exasol:exasol-testcontainers:5.1.1` to `6.0.0`
22+
* Updated `org.mockito:mockito-core:4.2.0` to `4.3.1`
23+
* Updated `org.mockito:mockito-junit-jupiter:4.2.0` to `4.3.1`
24+
* Updated `org.testcontainers:junit-jupiter:1.16.2` to `1.16.3`

pom.xml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.exasol</groupId>
66
<artifactId>udf-debugging-java</artifactId>
7-
<version>0.5.0</version>
7+
<version>0.6.0</version>
88
<name>udf-debugging-java</name>
99
<description>Utilities for debugging, profiling and code coverage measure for UDFs.</description>
1010
<url>https://github.com/exasol/udf-debugging-java</url>
@@ -17,7 +17,7 @@
1717
<vscommon.version>11.0.0</vscommon.version>
1818
<gpg.skip>true</gpg.skip>
1919
<jacoco.version>0.8.7</jacoco.version>
20-
<org.testcontainers.version>1.16.2</org.testcontainers.version>
20+
<org.testcontainers.version>1.16.3</org.testcontainers.version>
2121
<surefire.and.failsafe.plugin.version>3.0.0-M4</surefire.and.failsafe.plugin.version>
2222
</properties>
2323
<licenses>
@@ -82,12 +82,12 @@
8282
<dependency>
8383
<groupId>com.exasol</groupId>
8484
<artifactId>bucketfs-java</artifactId>
85-
<version>2.2.0</version>
85+
<version>2.3.0</version>
8686
</dependency>
8787
<dependency>
8888
<groupId>com.exasol</groupId>
8989
<artifactId>exasol-test-setup-abstraction-java</artifactId>
90-
<version>0.2.1</version>
90+
<version>0.2.2</version>
9191
</dependency>
9292
<dependency>
9393
<groupId>org.apache.commons</groupId>
@@ -110,13 +110,13 @@
110110
<dependency>
111111
<groupId>org.mockito</groupId>
112112
<artifactId>mockito-core</artifactId>
113-
<version>4.2.0</version>
113+
<version>4.3.1</version>
114114
<scope>test</scope>
115115
</dependency>
116116
<dependency>
117117
<groupId>org.mockito</groupId>
118118
<artifactId>mockito-junit-jupiter</artifactId>
119-
<version>4.2.0</version>
119+
<version>4.3.1</version>
120120
<scope>test</scope>
121121
</dependency>
122122
<dependency>
@@ -129,7 +129,7 @@
129129
<dependency>
130130
<groupId>com.exasol</groupId>
131131
<artifactId>exasol-testcontainers</artifactId>
132-
<version>5.1.1</version>
132+
<version>6.0.0</version>
133133
<scope>test</scope>
134134
</dependency>
135135
<dependency>
@@ -141,14 +141,19 @@
141141
<dependency>
142142
<groupId>com.exasol</groupId>
143143
<artifactId>test-db-builder-java</artifactId>
144-
<version>3.2.1</version>
144+
<version>3.2.2</version>
145145
</dependency>
146146
<dependency>
147147
<groupId>org.slf4j</groupId>
148148
<artifactId>slf4j-api</artifactId>
149-
<version>1.7.32</version>
149+
<version>1.7.36</version>
150150
<scope>compile</scope>
151151
</dependency>
152+
<dependency>
153+
<groupId>org.itsallcode</groupId>
154+
<artifactId>junit5-system-extensions</artifactId>
155+
<version>1.2.0</version>
156+
</dependency>
152157
</dependencies>
153158
<build>
154159
<plugins>

src/main/java/com/exasol/udfdebugging/UdfTestSetup.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,9 @@ private void printInfoMessage() {
7676
}
7777

7878
private String getInfoMessage() {
79-
final StringBuilder messageBuilder = new StringBuilder("Udf Test Setup Configuration:\n");
80-
AVAILABLE_MODULES.forEach(module -> {
81-
messageBuilder.append(module.getModulePropertyName());
82-
messageBuilder.append(":\t");
83-
messageBuilder.append(module.isEnabled() ? "enabled" : "disabled");
84-
messageBuilder.append("\n");
85-
});
86-
return messageBuilder.toString();
79+
return AVAILABLE_MODULES.stream()
80+
.map(module -> module.getModulePropertyName() + ": " + (module.isEnabled() ? "✓" : "✗"))
81+
.collect(Collectors.joining("; ")) + "\n";
8782
}
8883

8984
@Override

src/test/java/com/exasol/udfdebugging/UdfTestSetupTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.Arrays;
99
import java.util.List;
1010

11+
import org.itsallcode.junit.sysextensions.SystemOutGuard;
1112
import org.junit.jupiter.api.BeforeEach;
1213
import org.junit.jupiter.api.Test;
1314
import org.junit.jupiter.api.extension.ExtendWith;
@@ -18,6 +19,7 @@
1819
import com.exasol.bucketfs.Bucket;
1920

2021
@ExtendWith(MockitoExtension.class)
22+
@ExtendWith(SystemOutGuard.class)
2123
class UdfTestSetupTest {
2224
public static final String COVERAGE_PROPERTY = "test.coverage";
2325
public static final String DEBUG_PROPERTY = "test.debug";
@@ -27,7 +29,7 @@ class UdfTestSetupTest {
2729
private Connection connection;
2830

2931
@BeforeEach
30-
void before() throws SQLException {
32+
void before() {
3133
System.clearProperty(DEBUG_PROPERTY);
3234
System.clearProperty(COVERAGE_PROPERTY);
3335
System.clearProperty(UDF_LOGS_PROPERTY);

0 commit comments

Comments
 (0)