[BAEL-16669] moved testing-modules/testing modules into relevant folders
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
package com.baeldung;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class ArithmeticFunctionUnitTest {
|
||||
|
||||
@Test
|
||||
public void test_addingIntegers_returnsSum() {
|
||||
assertEquals(22, Math.addExact(10, 12));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_multiplyingIntegers_returnsProduct() {
|
||||
assertEquals(120, Math.multiplyExact(10, 12));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_subtractingIntegers_returnsDifference() {
|
||||
assertEquals(2, Math.subtractExact(12, 10));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_minimumInteger() {
|
||||
assertEquals(10, Math.min(10, 12));
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package com.baeldung;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class ComparisonFunctionUnitTest {
|
||||
|
||||
@Test
|
||||
public void test_findMax() {
|
||||
assertEquals(20, Math.max(10, 20));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_findMin() {
|
||||
assertEquals(10, Math.min(10, 20));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
|
||||
@RunWith(Suite.class)
|
||||
@SuiteClasses({ ComparisonFunctionUnitTest.class, ArithmeticFunctionUnitTest.class })
|
||||
public class FunctionTestSuite {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user