Project

General

Profile

« Previous | Next » 

Revision 45126

migrated to dnet45, using updated mockito version in tests

View differences:

ValidatingServiceRegistrationManagerImplTest.java
12 12
import org.junit.Test;
13 13
import org.junit.runner.RunWith;
14 14
import org.mockito.Mock;
15
import org.mockito.runners.MockitoJUnit44Runner;
15
import org.mockito.junit.MockitoJUnitRunner;
16 16

  
17 17
import eu.dnetlib.enabling.is.lookup.ISLookUpServiceImpl;
18 18
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
......
25 25
 * @author marko
26 26
 *
27 27
 */
28
@RunWith(MockitoJUnit44Runner.class)
28
@RunWith(MockitoJUnitRunner.class)
29 29
public class ValidatingServiceRegistrationManagerImplTest {
30 30

  
31 31
	/**
......
85 85
		when(lookUpService.getResourceProfile(PROF_ID)).thenReturn(PROFILE);
86 86
		when(lookUpService.getResourceProfile(VPROF_ID)).thenReturn(VPROFILE);
87 87
		when(lookUpService.getResourceProfileByQuery(anyString())).thenReturn(PROFILE);
88
		when(registrator.validateProfile(eq(PROF_ID), (Endpoint) anyObject())).thenReturn(VPROF_ID);
88
		when(registrator.validateProfile(eq(PROF_ID), any(Endpoint.class))).thenReturn(VPROF_ID);
89 89
		when(serviceLocator.getService(ISLookUpService.class)).thenReturn(lookUpService);
90 90
		when(serviceLocator.getService(ISLookUpService.class, true)).thenReturn(lookUpService);
91 91
	}

Also available in: Unified diff