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 failedPrintUsage() {
  		boolean check = false;
  		try {
  			final String args[] = {};
  			Arguments mixArgs = Arguments.checkArguments(args);
  			check = true;
  		} catch (ArgumentException e) {
  			System.out.println(e.getMessage());
  		}
		Assert.assertFalse(check);
		check = false;
  		try {
  			final String args[] = { "ghost1", "ghost2" };
  			Arguments mixArgs = Arguments.checkArguments(args);
  			check = true;
  		} catch (ArgumentException e) {
  			System.out.println(e.getMessage());
  		}
		Assert.assertFalse(check);
		Arguments.printUsage();
  	}

}

@@ -317,24 +317,21 @@
 oid 
-failedPrintUsage
+testEmptyArgs
 () %7B
@@ -597,16 +597,100 @@
 heck);%0D%0A
+%09%7D%0D%0A%09@Test%0D%0A  %09public final void testWrongArgs() %7B%0D%0A  %09%09boolean check = false;%0D%0A%09%09%0D%0A
 %09%09check 
@@ -991,11 +991,487 @@
   %09%7D%0D%0A%0D%0A
+%09%09@Test%0D%0A  %09public final void testNoRule() %7B%0D%0A  %09%09boolean check = false;%0D%0A%09%09%0D%0A%09%09check = false;%0D%0A  %09%09try %7B%0D%0A  %09%09%09final String args%5B%5D = %7B getClass().getResource(%22test001_file1.txt%22).getFile(), getClass().getResource(%22test001_file1.txt%22).getFile() %7D;%0D%0A  %09%09%09Arguments mixArgs = Arguments.checkArguments(args);%0D%0A  %09%09%09check = true;%0D%0A  %09%09%7D catch (ArgumentException e) %7B%0D%0A  %09%09%09System.out.println(e.getMessage());%0D%0A  %09%09%7D%0D%0A%09%09Assert.assertFalse(check);%0D%0A%09%09Arguments.printUsage();%0D%0A  %09%7D%0D%0A
 %7D%0D%0A

add more tests