parent
360909eb38
commit
dcf92b4333
@ -0,0 +1,24 @@
|
|||||||
|
package controllers;/**
|
||||||
|
* Created by Gondr on 5/04/2017.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class MainControllerTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLogin(){
|
||||||
|
//Tests if login is behaving properly
|
||||||
|
MainController controller = new MainController();
|
||||||
|
String user1 = "fwy13";
|
||||||
|
String pass1 = "fwy13";
|
||||||
|
assertTrue(controller.validateLogin(user1, pass1));
|
||||||
|
|
||||||
|
String user2 = "fwy13";
|
||||||
|
String pass2 = "79984862";
|
||||||
|
assertTrue(!controller.validateLogin(user2, pass2));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue