Line 1... |
Line 1... |
1 |
package org.tela_botanica.del.test.vues.rechercheimages;
|
1 |
package org.tela_botanica.del.test.vues.identiplante;
|
Line 2... |
Line 2... |
2 |
|
2 |
|
Line 3... |
Line 3... |
3 |
import static org.mockito.Mockito.mock;
|
3 |
import static org.mockito.Mockito.mock;
|
4 |
|
4 |
|
5 |
import org.junit.Before;
|
5 |
import org.junit.Before;
|
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;
|
Line 11... |
Line 11... |
11 |
import org.tela_botanica.del.client.services.rest.ProtocoleService;
|
11 |
import org.tela_botanica.del.client.services.rest.ObservationService;
|
Line 12... |
Line 12... |
12 |
import org.tela_botanica.del.client.vues.rechercheimages.resultats.ResultatRechercheImagePresenteur;
|
12 |
import org.tela_botanica.del.client.vues.identiplante.resultats.ResultatsIdentiplantePresenteur;
|
13 |
|
13 |
|
14 |
public class ResultatRechercheImagePresenteurTest {
|
14 |
public class ResultatIdentiplanteTest {
|
Line 15... |
Line 15... |
15 |
|
15 |
|
16 |
private ResultatPictofloraPresenteur resultatPresenteur;
|
16 |
private ResultatsIdentiplantePresenteur resultatPresenteur;
|
Line 17... |
Line 17... |
17 |
private org.tela_botanica.del.client.vues.rechercheimages.resultats.ResultatRechercheImagePresenteur.ResultatPictofloraPresenteur vueResultat;
|
17 |
private ResultatsIdentiplantePresenteur.Vue vueResultat;
|
18 |
private ImageService serviceImage;
|
18 |
private ImageService serviceImage;
|
19 |
|
19 |
|
20 |
@Before
|
20 |
@Before
|
21 |
public void setUp() throws Exception {
|
21 |
public void setUp() throws Exception {
|
Line 22... |
Line 22... |
22 |
|
22 |
|
23 |
vueResultat = mock(org.tela_botanica.del.client.vues.ResultatPictofloraPresenteur.resultats.ResultatRechercheImagePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
|
23 |
vueResultat = mock( ResultatsIdentiplantePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
|
24 |
serviceImage = mock(ImageService.class);
|
24 |
serviceImage = mock(ImageService.class);
|
25 |
ProtocoleService protocoleService = Mockito.mock(ProtocoleService.class);
|
25 |
ObservationService obsService = Mockito.mock(ObservationService.class);
|
26 |
resultatPresenteur = new ResultatPictofloraPresenteur(serviceImage, protocoleService, vueResultat);
|
26 |
resultatPresenteur = new ResultatsIdentiplantePresenteur(obsService, vueResultat, "tout");
|
Line 27... |
Line 27... |
27 |
}
|
27 |
}
|