@@ -530,7 +530,7 @@ void test17DiscoverDomainWithRequiredArgument(TestInfo testInfo) throws Exceptio
530
530
+ " -domain_type RestrictedJRF" ;
531
531
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
532
532
// SecurityConfiguration warning
533
- assertEquals (1 , result .exitValue (), "Unexpected return code" );
533
+ assertEquals (0 , result .exitValue (), "Unexpected return code" );
534
534
535
535
// verify model file
536
536
verifyModelFile (discoveredModel .toString ());
@@ -569,7 +569,7 @@ void test18DiscoverDomainWithModelFile(TestInfo testInfo) throws Exception {
569
569
try (PrintWriter out = getTestMethodWriter (testInfo )) {
570
570
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
571
571
// SecurityConfiguration warning
572
- assertEquals (1 , result .exitValue (), "Unexpected return code" );
572
+ assertEquals (0 , result .exitValue (), "Unexpected return code" );
573
573
574
574
// verify model file
575
575
verifyModelFile (discoveredModelFile .toString ());
@@ -601,7 +601,7 @@ void test19DiscoverDomainWithVariableFile(TestInfo testInfo) throws Exception {
601
601
try (PrintWriter out = getTestMethodWriter (testInfo )) {
602
602
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
603
603
// SecurityConfiguration warning
604
- assertEquals (1 , result .exitValue (), "Unexpected return code" );
604
+ assertEquals (0 , result .exitValue (), "Unexpected return code" );
605
605
606
606
// verify model file and variable file
607
607
verifyModelFile (discoveredModelFile .toString ());
@@ -652,7 +652,7 @@ void test20DiscoverDomainJRFDomainType(TestInfo testInfo) throws Exception {
652
652
653
653
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
654
654
// SecurityConfiguration warning
655
- assertEquals (1 , result .exitValue (), "Unexpected return code" );
655
+ assertEquals (0 , result .exitValue (), "Unexpected return code" );
656
656
657
657
// verify model file
658
658
verifyModelFile (discoveredModelFile .toString ());
0 commit comments