File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/test/java/org/utplsql/api Expand file tree Collapse file tree 2 files changed +17
-1
lines changed 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 >
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