Subversion Repositories eFlore/Applications.del

Rev

Rev 534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 959
Line 6... Line 6...
6
import org.junit.Test;
6
import org.junit.Test;
7
import static org.junit.Assert.*;
7
import static org.junit.Assert.*;
8
import org.mockito.Mockito;
8
import org.mockito.Mockito;
9
import org.tela_botanica.del.client.cache.CacheClient;
9
import org.tela_botanica.del.client.cache.CacheClient;
10
import org.tela_botanica.del.client.services.rest.ImageService;
10
import org.tela_botanica.del.client.services.rest.ImageService;
-
 
11
import org.tela_botanica.del.client.services.rest.ProtocoleService;
11
import org.tela_botanica.del.client.vues.rechercheimages.resultats.ResultatRechercheImagePresenteur;
12
import org.tela_botanica.del.client.vues.rechercheimages.resultats.ResultatRechercheImagePresenteur;
Line 12... Line 13...
12
 
13
 
Line 13... Line 14...
13
public class ResultatRechercheImagePresenteurTest {
14
public class ResultatRechercheImagePresenteurTest {
Line 19... Line 20...
19
	@Before
20
	@Before
20
	public void setUp() throws Exception {
21
	public void setUp() throws Exception {
Line 21... Line 22...
21
 
22
 
22
		vueResultat = mock(org.tela_botanica.del.client.vues.rechercheimages.resultats.ResultatRechercheImagePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
23
		vueResultat = mock(org.tela_botanica.del.client.vues.rechercheimages.resultats.ResultatRechercheImagePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
-
 
24
		serviceImage = mock(ImageService.class);
23
		serviceImage = mock(ImageService.class);
25
		ProtocoleService protocoleService = Mockito.mock(ProtocoleService.class);
24
		resultatPresenteur = new ResultatRechercheImagePresenteur(serviceImage, vueResultat);
26
		resultatPresenteur = new ResultatRechercheImagePresenteur(serviceImage, protocoleService, vueResultat);
Line 25... Line 27...
25
	}
27
	}
26
 
28
 
27
	@Test
29
	@Test