|
|
@ -31,7 +31,6 @@ public class AppTest extends TestCase { |
|
|
|
assertTrue(true); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void testFullName() { |
|
|
|
// Arrange |
|
|
|
String expected = "Maxim Volkov"; |
|
|
@ -47,4 +46,19 @@ public class AppTest extends TestCase { |
|
|
|
// Assert |
|
|
|
assertEquals(expected, actual); |
|
|
|
} |
|
|
|
|
|
|
|
public void testIsTitle() { |
|
|
|
// Arrange |
|
|
|
String expectedTitleUppercase = "NICE"; |
|
|
|
String title = "nIcE"; |
|
|
|
|
|
|
|
// Act |
|
|
|
App m = new App(); |
|
|
|
m.setTitle(title); |
|
|
|
String actual = m.getTitle(); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
assertEquals(expectedTitleUppercase, actual); |
|
|
|
} |
|
|
|
} |