private static final User otherUser = new User("other", "other", "other", "other@email.com", Role.DESIGNER.name(),
System.currentTimeMillis());
+ @Mock
+ private IdMapper idMapper;
@Mock
public WebAppContextWrapper webAppContextWrapper;
@Mock
@BeforeAll
public void setup() {
- MockitoAnnotations.initMocks(this);
//Needed for User Authorization
//========================================================================================================================
@BeforeEach
public void before() throws Exception {
super.setUp();
+ MockitoAnnotations.openMocks(this);
when(resourceComponentMock.getVersion()).thenReturn(VERSION);
when(resourceComponentMock.getUniqueId()).thenReturn(resourceVertexUuid);
private GraphVertex resourceVertex;
private ExternalReferencesOperation externalReferenceOperation;
private HealingJanusGraphDao janusGraphDao;
- @Mock
- private IdMapper idMapper;
@Bean
ExternalRefsServlet externalRefsServlet() {