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 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 >
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