package fi.helsinki.cs.tmc.cli.command;

import fi.helsinki.cs.tmc.cli.Application;
import fi.helsinki.cs.tmc.cli.CliContext;
import fi.helsinki.cs.tmc.cli.io.TestIo;

import org.junit.Before;
import org.junit.Test;

public class ShellHelperCommandTest {

    private Application app;
    private TestIo io;

    @Before
    public void setUp() {
        io = new TestIo();
        CliContext ctx = new CliContext(io);
        app = new Application(ctx);
    }

    @Test
    public void failWhenNoOptionsGiven() {
        String[] args = {"shell-helper"};
        app.run(args);
        io.assertContains("internal usage");
    }

    @Test
    public void getCommandList() {
        String[] args = {"shell-helper", "-c"};
        app.run(args);
        io.assertContains("help\n");
    }
}

Add unit tests for shell helper.
Add unit tests for shell helper.
