Quiz

May Quiz

Consider the following JUnit 5 test case.Assuming the calculator returns the correct result when dividing 8 by 2.

 

import static org.hamcrest.Matchers.equalTo;

import static org.junit.jupiter.api.Assertions.*;

import org.junit.jupiter.api.Test;

public class CalculatorTest {

    @Test
    public void testDividingIntegers() {
        Calculator calc = new Calculator();
        assertThat(calc.divide(8, 2), equalTo(4));
    }
}


Which of the following statements is correct:






progress bar illustration

Q1

Q2

Q3

Q4