Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package testPackage;
- import static org.junit.Assert.*;
- import org.junit.Test;
- public class testClassTest {
- @Test
- public void testReplace() {
- testClass junit = new testClass();
- String result = testClass.replace("ala ma kota");
- assertEquals("@l@ m@ kot@", result);
- }
- @Test
- public void testCombine() {
- testClass junit = new testClass();
- String result = testClass.combine("ala", "ma", "kota");
- assertEquals("alamakota", result);
- }
- @Test
- public void testUpperCase() {
- testClass junit = new testClass();
- String result = testClass.upperCase("ala ma kota");
- assertEquals("ALA MA KOTA", result);
- }
- @Test
- public void testCountSymbols() {
- testClass junit = new testClass();
- int result = testClass.countSymbols("ala ma kota");
- assertEquals(11, result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement