Advertisement
wkolodzieejczak

Untitled

Dec 11th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package testPackage;
  2.  
  3. import static org.junit.Assert.*;
  4.  
  5. import org.junit.Test;
  6.  
  7. public class testClassTest {
  8.  
  9. @Test
  10. public void testReplace() {
  11. testClass junit = new testClass();
  12. String result = testClass.replace("ala ma kota");
  13. assertEquals("@l@ m@ kot@", result);
  14. }
  15.  
  16. @Test
  17. public void testCombine() {
  18. testClass junit = new testClass();
  19. String result = testClass.combine("ala", "ma", "kota");
  20. assertEquals("alamakota", result);
  21. }
  22.  
  23. @Test
  24. public void testUpperCase() {
  25. testClass junit = new testClass();
  26. String result = testClass.upperCase("ala ma kota");
  27. assertEquals("ALA MA KOTA", result);
  28. }
  29.  
  30. @Test
  31. public void testCountSymbols() {
  32. testClass junit = new testClass();
  33. int result = testClass.countSymbols("ala ma kota");
  34. assertEquals(11, result);
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement