/*
 * National University of Singapore
 * The MIT License (MIT)
 *
 * Copyright (c) 2014. Kenneth Ham Gao Jie (A0111875E)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package test;

import com.CS2103.TextBuddy_v2.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

import java.io.IOException;
import java.util.List;

import org.junit.BeforeClass;
import org.junit.Test;

/**
 * Created by kennetham on 18/09/14.
 */
public class TextBuddyTest {
	private static final String APP_NAME = "TextBuddy";
	private static final String FILE_NAME = "in.txt";
	private static final String[] args = {APP_NAME, FILE_NAME};

	@Test
	public void testFailCase() {
		fail("Not Implemented");
	}
}

@@ -1321,17 +1321,16 @@
 hers.*;%0A
-%0A
 import j
@@ -1352,31 +1352,8 @@
 ion;
-%0Aimport java.util.List;
 %0A%0Aim
@@ -1377,13 +1377,8 @@
 fore
-Class
 ;%0Aim
@@ -1403,53 +1403,8 @@
 t;%0A%0A
-/**%0A * Created by kennetham on 18/09/14.%0A */%0A
 publ
@@ -1567,12 +1567,12 @@
 g%5B%5D 
-args
+ARGS
  = %7B
@@ -1597,70 +1597,493 @@
 E%7D;%0A
-%0A%09@Test%0A%09public void testFailCase() %7B%0A%09%09fail(%22Not Implemented%22
+%09private TextBuddyPlusPlus textbuddypp = new TextBuddyPlusPlus();%0A%0A%09@Before%0A%09public void initialize() throws IOException %7B%0A%09%09TextBuddyPlusPlus textbuddypp = new TextBuddyPlusPlus();%0A%09%09textbuddypp.TextBuddy(ARGS);%0A%09%09textbuddypp.processUserCommands();%0A%09%7D%0A%0A%09// Search Empty%0A%09@Test%0A%09public void testSearchEmpty() throws IOException %7B%0A%09%09String output = textbuddypp.executeCommand(%22search %22);%0A%09%09assertEquals(%22%22, textbuddypp.executeCommand(%22search %22));%0A%09%09assertThat(output.isEmpty(), is(true)
 );%0A%09

Version 0.1.2: Edited Unit Test for empty search. Issues: Not parsing in the variables correctly. Command doesn't get recognized, endless loop.