File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/test/java/j2serulesession Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,20 @@ public void testRuleAppArchiveFileNotFound() throws Exception {
6767 Sample .main (argLine .split (" " ));
6868 }
6969
70+ @ Test
71+ public void testRulesetNotBundled () throws Exception {
72+ try {
73+ exit .expectSystemExitWithStatus (2 );
74+ String argLine = "/foo/bar" ;
75+ Sample .main (argLine .split (" " ));
76+ } finally {
77+ String expectedErrorMessage = "It was not possible to retrieve the information about the ruleset /foo/bar." ;
78+ assertTrue ("SysErr does not contain the error message '" + expectedErrorMessage + "'" ,
79+ systemErrRule .getLog ().contains (expectedErrorMessage ));
80+ systemErrRule .clearLog ();
81+ }
82+ }
83+
7084 @ Test
7185 public void testNoRuleAppArchiveArgument () throws Exception {
7286 String argLine = "/test_deployment/loan_validation_with_score_and_grade" ;
You can’t perform that action at this time.
0 commit comments