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(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);
  	}

}

@@ -282,16 +282,130 @@
 Test %7B%0D%0A
+        @Test%0D%0A%09public final void testPrintUsage() %7B%0D%0A%09%09Arguments.printUsage();%0D%0A%09%09Assert.assertTrue(true);%0D%0A%09%7D%0D%0A%09
 %0D%0A%09@Test

add testPrintUsage