Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
JUnit - Interview Questions and Answers for 'White box testing' - 3 question(s) found - Order By Rating | ||||
| ||||
Ans. The assert keyword is used to make an assertion—a statement which the programmer believes is always true at that point in the program. This keyword is intended to aid in testing and debugging. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   junit.assert   testing   white box testing | ||||
Related Questions | ||||
Which of the following is not the advantage of Mocking frameworks ? | ||||
How should we ignore or avoid executing set of tests ? | ||||
How can we test methods individually which are not visible or declared private ? | ||||
What are the steps to be performed while coding Junit with Mocking framework ? | ||||
How to access a Web Element if there are many elements with the same XPath ? | ||||
Which load testing tools have you used ? | ||||
What are use cases? | ||||
Difference between Assert and Verify ? | ||||
Name few Java Mocking frameworks ? | ||||
| ||||
Ans. Mockito, PowerMock, EasyMock, JMock, JMockit | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  junit   mocking frameworks   mock   architecture   white box testing | ||||
Related Questions | ||||
What is a Lambda Expression ? What's its use ? | ||||
What is Lazy Initialization in Hibernate ? | ||||
If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ? | ||||
Explain Flow of Spring MVC ? | ||||
What are the ways to avoid LazyInitializationException ? | ||||
Difference between first level and second level cache in hibernate ? | ||||
What is session tracking and how do you track a user session in servlets? | ||||
How does volatile affect code optimization by compiler? | ||||
Can you provide some implementation of a Dictionary having large number of words ? | ||||
What are the benefits of using Spring Framework ? | ||||
| ||||
Ans. Initialize required objects for working with mocks and tested method Set the mock behaviour on dependent objects Execute the tested method Perform assertions Verify if a method is invoked or not | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  junit   mocking frameworks   mock   unit testing   java   white box testing  Mockito | ||||
Related Questions | ||||
What is assert keyword used for ? | ||||
Name few Java Mocking frameworks ? | ||||