File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
src/test/java/org/utplsql/api Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 27
27
- UTPLSQL_VERSION="v3.0.2"
28
28
- UTPLSQL_VERSION="v3.0.3"
29
29
- UTPLSQL_VERSION="v3.0.4"
30
+ - UTPLSQL_VERSION="v3.1.0"
31
+ - UTPLSQL_VERSION="v3.1.1"
30
32
- UTPLSQL_VERSION="develop"
31
33
UTPLSQL_FILE="utPLSQL"
32
34
Original file line number Diff line number Diff line change 4
4
5
5
<groupId >org.utplsql</groupId >
6
6
<artifactId >java-api</artifactId >
7
- <version >3.1.0 -SNAPSHOT</version >
7
+ <version >3.1.1 -SNAPSHOT</version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >utPLSQL-java-api</name >
17
17
<junit .platform.version>1.0.3</junit .platform.version>
18
18
<junit .jupiter.version>5.0.3</junit .jupiter.version>
19
19
<coverage .resources.directory>${basedir} /src/main/resources/CoverageHTMLReporter</coverage .resources.directory>
20
- <coverage .resources.version>1.0.0 </coverage .resources.version>
20
+ <coverage .resources.version>1.0.1 </coverage .resources.version>
21
21
<coverage .resources.zip.directory>utPLSQL-coverage-html-${coverage.resources.version} </coverage .resources.zip.directory>
22
22
<coverage .resources.zip>${coverage.resources.zip.directory} .zip</coverage .resources.zip>
23
23
</properties >
Original file line number Diff line number Diff line change 1
1
package org .utplsql .api ;
2
2
3
3
import org .junit .jupiter .api .Test ;
4
+ import org .utplsql .api .reporter .CoreReporters ;
5
+ import org .utplsql .api .reporter .DefaultReporter ;
4
6
import org .utplsql .api .reporter .DocumentationReporter ;
5
7
import org .utplsql .api .reporter .Reporter ;
6
8
@@ -103,4 +105,18 @@ public void fetchAllLines() throws SQLException {
103
105
assertTrue (outputLines .size () > 0 );
104
106
}
105
107
108
+ @ Test
109
+ public void getOutputFromSonarReporter () throws SQLException {
110
+ Reporter reporter = new DefaultReporter (CoreReporters .UT_SONAR_TEST_REPORTER .name (), null ).init (newConnection ());
111
+
112
+ new TestRunner ()
113
+ .addPath (getUser ())
114
+ .addReporter (reporter )
115
+ .run (getConnection ());
116
+
117
+ List <String > outputLines = reporter .getOutputBuffer ().fetchAll (getConnection ());
118
+
119
+ assertTrue (outputLines .size () > 0 );
120
+ }
121
+
106
122
}
You can’t perform that action at this time.
0 commit comments