Bug removal revision
This commit is contained in:
parent
2e3a856854
commit
f565f29a10
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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");
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user