1import static org.junit.jupiter.api.Assertions.assertEquals;
2
3import org.junit.jupiter.api.Test;
4
5public class MyTests {
6
7 @Test
8 public void multiplicationOfZeroIntegersShouldReturnZero() {
9 MyClass tester = new MyClass(); // MyClass is tested
10
11 // assert statements
12 assertEquals(0, tester.multiply(10, 0), "10 x 0 must be 0");
13 assertEquals(0, tester.multiply(0, 10), "0 x 10 must be 0");
14 assertEquals(0, tester.multiply(0, 0), "0 x 0 must be 0");
15 }
16}