Complete the code to check if the expected value equals the actual value using JUnit.
assertEquals([1], actualValue);The assertEquals method compares the expected value to the actual value. The first argument should be the expected value.
Complete the code to assert that two strings are equal in a JUnit test.
assertEquals([1], "Hello World");
The expected string must exactly match the actual string for assertEquals to pass.
Fix the error in the assertion to correctly compare two integers.
assertEquals([1], 5);
The expected value must be an integer 5, not a string or float, to match the actual integer value.
Fill both blanks to assert that the method returns the expected boolean value.
assertEquals([1], [2]);
The expected value is true and the actual value is the result of isValid() method.
Fill all three blanks to assert that the method returns the expected string with a custom failure message.
assertEquals([1], [2], [3]);
The first blank is the failure message, the second is the expected string, and the third is the actual method call.