What is @injectmock?



What is @injectmock?..

Answer / Ashish Kumar Kushwaha

@injectMock is not a standard annotation in EJB. However, it may be associated with Mockito, a popular library used for unit testing in Java. The @InjectMock annotation helps create mocks for dependencies automatically within Mockito-powered tests.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More EJB Interview Questions

How does ejb work in java?

1 Answers  


Where a bean can be used ?

1 Answers  


Is it legal to have static initializer blocks in ejb?

1 Answers  


What are transaction isolation levels in ejb?

1 Answers  


Which is more beneficial: CMP or BMP?

1 Answers  


Differentiate “find a method” from “select method” in EJB ?

1 Answers  


What is entity bean?

1 Answers  


Can Container managed Bean-Managed Persistence ?

0 Answers   Sony,


How many ejb objects are created for a bean?

1 Answers  


What are the callback annotations for the stateless bean?

1 Answers  


Does spring use ejb?

1 Answers  


what is mean by com/Dcom ? Please answer me. Advance thanks.

1 Answers   Excel,


Categories