package com.test.testclasses;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
Add.class,
Minus.class
})
public class MyTestSuit {
}
package com.test.testclasses;
import static org.junit.Assert.*;
import org.junit.Test;
public class Add {
@Test
public void testAdd(){
assertTrue(3 == (1+2));
}
}
package com.test.testclasses;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class Minus {
@Test
public void testMinus() {
assertTrue( 1 == (2 - 1));
}
}