diff --git a/bin/.gitignore b/bin/.gitignore new file mode 100644 index 0000000..ea9ccae --- /dev/null +++ b/bin/.gitignore @@ -0,0 +1 @@ +/palindrom/ diff --git a/bin/palindrom/palindromTest.class b/bin/palindrom/palindromTest.class index 2172709..973232f 100644 Binary files a/bin/palindrom/palindromTest.class and b/bin/palindrom/palindromTest.class differ diff --git a/untest/palindrom/AllTests.java b/untest/palindrom/AllTests.java new file mode 100644 index 0000000..165602c --- /dev/null +++ b/untest/palindrom/AllTests.java @@ -0,0 +1,11 @@ +package palindrom; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ Palin_test_1.class, palindromTest.class }) +public class AllTests { + +} diff --git a/untest/palindrom/Palin_test_1.java b/untest/palindrom/Palin_test_1.java new file mode 100644 index 0000000..915e7b6 --- /dev/null +++ b/untest/palindrom/Palin_test_1.java @@ -0,0 +1,34 @@ +package palindrom; + +import static org.junit.Assert.*; + +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class Palin_test_1 { + + @Test + public void test() { + //fail("Not yet implemented"); + } + + @BeforeClass + public static void beforeClass(){ + System.out.println("Before PalindromTest.class1"); + } + @AfterClass + + public static void AfterClass(){ + System.out.println("After PalindromTest.class1"); + } + + public void testIsPal() { + + palindrom test = new palindrom(); + assertTrue(test.isPal(1221)); + for(int i=0;i<10;i++) + assertFalse(test.isPal(i)); + } + +} diff --git a/untest/palindrom/palindromTest.java b/untest/palindrom/palindromTest.java index ba15b51..d6cd745 100644 --- a/untest/palindrom/palindromTest.java +++ b/untest/palindrom/palindromTest.java @@ -1,31 +1,31 @@ -package palindrom; - -import static org.junit.Assert.*; - -import org.junit.*; - - -public class palindromTest { - - @BeforeClass - public static void beforeClass(){ - System.out.println("Before PalindromTest.class"); - } - @AfterClass - - public static void AfterClass(){ - System.out.println("After PalindromTest.class"); - } - @Before - public void initTest(){ - - } - @Test - public void testIsPal() { - - palindrom test = new palindrom(); - assertTrue(test.isPal(1221)); - for(int i=0;i<10;i++) - assertFalse(test.isPal(i)); - } -} +package palindrom; + +import static org.junit.Assert.*; + +import org.junit.*; + + +public class palindromTest { + + @BeforeClass + public static void beforeClass(){ + System.out.println("Before PalindromTest.class"); + } + @AfterClass + + public static void AfterClass(){ + System.out.println("After PalindromTest.class"); + } + @Before + public void initTest(){ + + } + @Test + public void testIsPal() { + + palindrom test = new palindrom(); + assertTrue(test.isPal(1221)); + for(int i=0;i<100;i++) + assertFalse(test.isPal(i)); + } +}