31. JUnits are used for which type of testing? A. Unit Testing B. Integration Testing C. System Testing D. Blackbox Testing Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
32. Which of the below statement about JUnit is false? A. It is an open source framework B. It provides an annotation to identify test methods C. It provides test runners for running test D. They cannot be run automatically Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
33. Which of the below is an incorrect annotation with respect to JUnits? A. @Test B. @BeforeClass C. @Junit D. @AfterEach Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
34. Which of these is not a mocking framework? A. EasyMock B. Mockito C. PowerMock D. MockJava Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
35. Which method is used to verify the actual and expected results in Junits? A. assert() B. equals() C. == D. isEqual() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
36. What does assertSame() method use for assertion? A. equals() method B. isEqual() method C. == D. compare() method Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
37. How to let junits know that they need to be run using PowerMock? A. @PowerMock B. @RunWith(PowerMock) C. @RunWith(Junits) D. @RunWith(PowerMockRunner.class) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
38. How can we simulate if then behavior in Junits? A. if{..} else{..} B. if(..){..} else{..} C. Mockito.when(...).thenReturn(...); D. Mockito.if(..).then(..); Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
39. What is used to inject mock fields into the tested object automatically? A. @InjectMocks B. @Inject C. @InjectMockObject D. @Mock Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
40. How can junits be implemented using maven? A. <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.1</version> </dependency> B. <dependency> <groupId>org.junit</groupId> <artifactId>junit</artifactId> <version>4.8.1</version> </dependency> C. <dependency> <groupId>mock.junit</groupId> <artifactId>junit</artifactId> <version>4.8.1</version> </dependency> D. <dependency> <groupId>junits</groupId> <artifactId>junit</artifactId> <version>4.8.1</version> </dependency> Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board