Skip to content

Commit

Permalink
Fixes #348 - Add a test for ListCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Sep 5, 2024
1 parent aea1317 commit f224e79
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit f224e79

Please sign in to comment.