-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #348 - Add a test for ListCommand
- Loading branch information
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,24 +27,23 @@ | |
*/ | ||
package com.manorrock.sphynx.cli; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import org.junit.jupiter.api.Test; | ||
|
||
/** | ||
* The JUnit test for the Cli class. | ||
* A test validating the ListCommand works properly. | ||
* | ||
* @author Manfred Riem ([email protected]) | ||
*/ | ||
public class CliTest { | ||
public class ListCommandIT { | ||
|
||
/** | ||
* Test run method. | ||
* Test to validate ListCommand class. | ||
*/ | ||
@Test | ||
public void testRun() { | ||
System.out.println("run"); | ||
public void testList() { | ||
Cli cli = new Cli(); | ||
cli.setArguments(new String[] { "--help"}); | ||
cli.setArguments(new String[] {"list"}); | ||
cli.run(); | ||
assertEquals(0, cli.getExitCode()); | ||
} | ||
|