BAEL-1857
This commit is contained in:
parent
876ffa765c
commit
9379e84ac8
|
@ -0,0 +1,19 @@
|
|||
package com.baeldung;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class ComparisonFunctionTest {
|
||||
|
||||
@Test
|
||||
public void test_findMax() {
|
||||
assertEquals(20, Math.max(10, 20));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_findMin() {
|
||||
assertEquals(10, Math.min(10, 20));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue