Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public class MainTest {
  2.  
  3. @Test
  4. public void testPrintAndReturnPeeter() throws Exception {
  5. String name = "Peeter";
  6. int length = name.length();
  7. assertEquals("Hello " + name + ", number of letters in your name: " + length + ".", Main.printAndReturnHello(name));
  8. }
  9. @Test
  10. public void testPrintAndReturnNumeral() throws Exception {
  11. String name = "12";
  12. int length = name.length();
  13. assertEquals("Hello " + name + ", number of letters in your name: " + length + ".", Main.printAndReturnHello(name));
  14. }
  15.  
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement