File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
src/test/java/org/utplsql/maven/plugin Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,40 @@ public void db_config_using_system_properties() throws Exception {
305305 System .setProperty ("dbPass" , "" );
306306 }
307307
308+ /**
309+ * Exclude object from coverage report
310+ * <p>
311+ * Given : a pom.xml with excludeObject set
312+ * When : pom is read
313+ * Then : excludeObject is present
314+ */
315+ @ Test
316+ public void exclude_object () throws Exception {
317+ UtPlsqlMojo utPlsqlMojo = createUtPlsqlMojo ("exclude_object" );
318+ assertNotNull (utPlsqlMojo );
319+
320+ utPlsqlMojo .execute ();
321+
322+ assertEquals ("app.pkg_test_me,app.test_pkg_test_me" , utPlsqlMojo .excludeObject );
323+ }
324+
325+ /**
326+ * Include object from coverage report
327+ * <p>
328+ * Given : a pom.xml with includeObject set
329+ * When : pom is read
330+ * Then : includeObject is present
331+ */
332+ @ Test
333+ public void include_object () throws Exception {
334+ UtPlsqlMojo utPlsqlMojo = createUtPlsqlMojo ("include_object" );
335+ assertNotNull (utPlsqlMojo );
336+
337+ utPlsqlMojo .execute ();
338+
339+ assertEquals ("app.pkg_test_me,app.test_pkg_test_me" , utPlsqlMojo .includeObject );
340+ }
341+
308342 private UtPlsqlMojo createUtPlsqlMojo (String directory ) throws Exception {
309343 return (UtPlsqlMojo ) rule .lookupConfiguredMojo (new File ("src/test/resources/unit-tests/" + directory ), "test" );
310344 }
You can’t perform that action at this time.
0 commit comments