package innovimax.mixthem;

import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.exceptions.ArgumentException;

import org.junit.Assert;
import org.junit.Test;

/*
    Created by innovimax-jim
    Basic tests for this application
*/
public class BasicTest {
        @Test
	public final void testPrintUsage() {
		Arguments.printUsage();
		Assert.assertTrue(true);
	}
	
	@Test(expected=ArgumentException.class)
  	public final void testEmptyArgs() throws ArgumentException {
  		final String args[] = {};
  		Arguments mixArgs = Arguments.checkArguments(args);
	}

	@Test(expected=ArgumentException.class)
  	public final void testWrongArgs() throws ArgumentException {
  		final String args[] = { "ghost1", "ghost2" };
  		Arguments mixArgs = Arguments.checkArguments(args);
  	}

	@Test
  	public final void testNoRule() throws ArgumentException {
  		final String args[] = { getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
  		Arguments mixArgs = Arguments.checkArguments(args);
 		Assert.assertTrue(true);
  	}
	@Test
  	public final void test1Rule() throws ArgumentException {
  		final String args[] = { "-1", getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
  		Arguments mixArgs = Arguments.checkArguments(args);
 		Assert.assertTrue(true);
  	}
	@Test(expected=ArgumentException.class)
  	public final void testUnknownRule() throws ArgumentException {
  		final String args[] = { "-x", getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
  		Arguments mixArgs = Arguments.checkArguments(args);
  	}

}

package innovimax.mixthem;

import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.exceptions.ArgumentException;

import org.junit.Assert;
import org.junit.Test;

/*
    Created by innovimax-jim
    Basic tests for this application
*/
public class BasicTest {
        @Test
    public final void testPrintUsage() {
        Arguments.printUsage();
        Assert.assertTrue(true);
    }
    
    @Test(expected=ArgumentException.class)
    public final void testEmptyArgs() throws ArgumentException {
        final String args[] = {};
        Arguments mixArgs = Arguments.checkArguments(args);
    }

    @Test(expected=ArgumentException.class)
    public final void testWrongArgs() throws ArgumentException {
        final String args[] = { "ghost1", "ghost2" };
        Arguments mixArgs = Arguments.checkArguments(args);
    }

    @Test
    public final void testNoRule() throws ArgumentException {
        final String args[] = { getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
        Arguments mixArgs = Arguments.checkArguments(args);
        Assert.assertTrue(true);
    }
    @Test
    public final void test1Rule() throws ArgumentException {
        final String args[] = { "-1", getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
        Arguments mixArgs = Arguments.checkArguments(args);
        Assert.assertTrue(true);
    }
    @Test(expected=ArgumentException.class)
    public final void testUnknownRule() throws ArgumentException {
        final String args[] = { "-x", getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
        Arguments mixArgs = Arguments.checkArguments(args);
    }

    @Test(expected=ArgumentException.class)
    public final void testUnexpectedParam() throws ArgumentException {
        final String args[] = { "-1", "#val", getClass().getResource("test001_file1.txt").getFile(), getClass().getResource("test001_file1.txt").getFile() };
        Arguments mixArgs = Arguments.checkArguments(args);
    }
}

Update BasicTest.java