My Report (&Account)

Java Interface Test – 3


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Which of the below is an incorrect annotation with respect to JUnits?

2. What does assertSame() method use for assertion?

3. How can we simulate if then behavior in Junits?

4. How can junits be implemented using maven?

5. Which of these is not a mocking framework?

6. What is used to inject mock fields into the tested object automatically?

7. Which method is used to verify the actual and expected results in Junits?

8. How to let junits know that they need to be run using PowerMock?

9. Which of the below statement about JUnit is false?

10. JUnits are used for which type of testing?


 

Start practicing “1000 MCQs on Java”, and once you are ready, you can take tests on all topics by attempting our “Java Test Series”.

advertisement
advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.