Relative Content

Tag Archive for javajunitmockito

@Mock and assertNotNull(mock)

Does it make sense to write assertNotNull(mockObject) in header of test method body? When is a null check necessary for a mocked object?

Mockito – static mocks

It seems that mockito does not work if a Enum is returned. As long a static method with a simple data type (e.g. boolean) is retured, it is working fine.