|
@ -31,7 +31,6 @@ public class AppTest extends TestCase { |
|
|
assertTrue(true); |
|
|
assertTrue(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void testFullName() { |
|
|
public void testFullName() { |
|
|
// Arrange |
|
|
// Arrange |
|
|
String expected = "Maxim Volkov"; |
|
|
String expected = "Maxim Volkov"; |
|
@ -47,4 +46,19 @@ public class AppTest extends TestCase { |
|
|
// Assert |
|
|
// Assert |
|
|
assertEquals(expected, actual); |
|
|
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); |
|
|
|
|
|
} |
|
|
} |
|
|
} |