Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainTest {
- @Test
- public void testPrintAndReturnPeeter() throws Exception {
- String name = "Peeter";
- int length = name.length();
- assertEquals("Hello " + name + ", number of letters in your name: " + length + ".", Main.printAndReturnHello(name));
- }
- @Test
- public void testPrintAndReturnNumeral() throws Exception {
- String name = "12";
- int length = name.length();
- assertEquals("Hello " + name + ", number of letters in your name: " + length + ".", Main.printAndReturnHello(name));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement