adplus-dvertising
frame-decoration

Question

Using which annotation non visible or private method can be tested?

a.

@VisibleForTesting

b.

@NonVisibleForTesting

c.

@Visible

d.

@NonVisible

Posted under Java Programming

Answer: (a).@VisibleForTesting

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Using which annotation non visible or private method can be tested?

Similar Questions

Discover Related MCQs

Q. Which of the following annotation is used to avoid execution of Junits?

Q. Which is the Parent class of annotation class?

Q. JUnits are used for which type of testing?

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

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

Q. Which of these is not a mocking framework?

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

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

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

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

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

Q. How can junits be implemented using maven?

Q. What does Liskov substitution principle specify?

Q. Which feature of java 8 enables us to create a work stealing thread pool using all available processors at its target?

Q. What does Files.lines(Path path) do?

Q. What is Optional object used for?

Q. What is the substitute of Rhino javascript engine in Java 8?

Q. What does SAM stand for in the context of Functional Interface?

Q. Which of these Exception handlers cannot be type parameterized?

Q. Which of the following cannot be Type parameterized?