Java Basic
- Which of these is not a mocking framework?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
EasyMock, jMock, Mockito, Unitils Mock, PowerMock and JMockit are a various mocking framework.
- Which of the below is an incorrect annotation with respect to JUnits?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
@Test is used to annotate method under test, @BeforeEach and @AfterEach are called before and after each method respectively. @BeforeClass and @AfterClass are called only once for each class.
- Which of the below statement about JUnit is false?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
JUnits test can be run automatically and they check their own results and provide immediate feedback.
- Which method is used to verify the actual and expected results in Junits?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
assert method is used to compare actual and expected results in Junit. It has various implementation like assertEquals, assertArrayEquals, assertFalse, assertNotNull, etc.
- Which of these is a superclass of all Adapter classes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
All Adapter classes extend Applet class.