Skip to content

Commit

Permalink
Add missing tests for MavenCommandLineBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 29, 2021
1 parent 0888529 commit 4d21af1
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,22 @@ public void testShouldSetQuietFlagFromRequest()
assertArgumentsPresent( cli, Collections.singleton( "-q" ));
}

@Test
public void testShouldSetNonRecursiveFlagsFromRequest()
{
mclb.setFlags( newRequest().setRecursive( false ), cli );

assertArgumentsPresent( cli, Collections.singleton( "-N" ));
}

@Test
public void testShouldSetShowVersionFlagsFromRequest()
{
mclb.setFlags( newRequest().setShowVersion( true ), cli );

assertArgumentsPresent( cli, Collections.singleton( "-V" ));
}

@Test
public void testDebugOptionShouldMaskShowErrorsOption()
{
Expand Down

0 comments on commit 4d21af1

Please sign in to comment.