Content: Unit Test Mock Spy Difference between Mock and Spy Difference Between doReturn()/when and When/thenReturn() Ways to Initialize the Mocks Why Mockito does not mock static methods Mocking a Static Method of an external class Mocking static void method call …
Write Binary Data : We can use Node API classes ValueFactory and Value to store binary data into JCR. ValueFactory can be used to create Binary object from InputStream and Value object from binary object. String html = “Welcome”; InputStream stream …