Bug removal revision

This commit is contained in:
David Westgate 2016-06-02 21:43:24 -07:00
parent 2e3a856854
commit f565f29a10
4 changed files with 28 additions and 12 deletions

View File

@ -1,14 +1,28 @@
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
public class Account_ModuleTest
import junit.framework.TestCase;
import static org.junit.Assert.assertEquals;
public class Account_ModuleTest
{
@Test
public void testAccount_Module()
public void testAccount_Module() throws IOException
{
fail("Not yet implemented");
Main main = new Main();
main.main(null);
Account_Module am = main.get_account_module();
boolean valid_register = am.add_user_to_list("a_new_name", "anything_goes");
assertEquals(valid_register, true);
boolean invalid_register = am.add_user_to_list("a_new_name", "anything_goes");
assertEquals(invalid_register, false);
}
}

View File

@ -1,20 +1,22 @@
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
public class Manager_ModuleTest extends Manager_Module
public class Manager_ModuleTest
{
public Manager_ModuleTest(String username)
{
super(username);
// TODO Auto-generated constructor stub
}
@Test
public void testManager_Module()
public void testManager_Module() throws IOException
{
fail("Not yet implemented");
Main main = new Main();
main.main(null);
Account_Module am = main.get_account_module();
am.add_user_to_list("david", "pass");
Manager_Module mm = main.get_account_module().get_new_manager_module("david");
}
}