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 2727 - UTPLSQL_VERSION="v3.0.2"
2828 - UTPLSQL_VERSION="v3.0.3"
2929 - UTPLSQL_VERSION="v3.0.4"
30+ - UTPLSQL_VERSION="v3.1.0"
31+ - UTPLSQL_VERSION="v3.1.1"
3032 - UTPLSQL_VERSION="develop"
3133 UTPLSQL_FILE="utPLSQL"
3234
Original file line number Diff line number Diff line change 44
55 <groupId >org.utplsql</groupId >
66 <artifactId >java-api</artifactId >
7- <version >3.1.0 -SNAPSHOT</version >
7+ <version >3.1.1 -SNAPSHOT</version >
88 <packaging >jar</packaging >
99
1010 <name >utPLSQL-java-api</name >
1717 <junit .platform.version>1.0.3</junit .platform.version>
1818 <junit .jupiter.version>5.0.3</junit .jupiter.version>
1919 <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>
2121 <coverage .resources.zip.directory>utPLSQL-coverage-html-${coverage.resources.version} </coverage .resources.zip.directory>
2222 <coverage .resources.zip>${coverage.resources.zip.directory} .zip</coverage .resources.zip>
2323 </properties >
Original file line number Diff line number Diff line change 11package org .utplsql .api ;
22
33import org .junit .jupiter .api .Test ;
4+ import org .utplsql .api .reporter .CoreReporters ;
5+ import org .utplsql .api .reporter .DefaultReporter ;
46import org .utplsql .api .reporter .DocumentationReporter ;
57import org .utplsql .api .reporter .Reporter ;
68
@@ -103,4 +105,18 @@ public void fetchAllLines() throws SQLException {
103105 assertTrue (outputLines .size () > 0 );
104106 }
105107
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+
106122}
You can’t perform that action at this time.
0 commit comments