Subversion Repositories eFlore/Applications.del

Rev

Rev 1197 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1197 Rev 1201
1
package org.tela_botanica.del.test.vues.rechercheimages;
1
package org.tela_botanica.del.test.vues.identiplante;
2
 
2
 
3
import org.junit.Before;
3
import org.junit.Before;
4
import org.junit.Test;
4
import org.junit.Test;
5
import org.mockito.Mockito;
5
import org.mockito.Mockito;
6
import org.tela_botanica.del.client.services.rest.ProtocoleService;
6
import org.tela_botanica.del.client.services.rest.ObservationService;
7
import org.tela_botanica.del.client.vues.rechercheimages.moteur.MoteurRechercheImagePresenteur;
7
import org.tela_botanica.del.client.vues.identiplante.moteur.MoteurIdentiplantePresenteur;
8
 
8
 
9
import com.google.gwt.user.client.ui.HasWidgets;
9
import com.google.gwt.user.client.ui.HasWidgets;
10
 
10
 
11
public class MoteurRechercheImagePresenteurTest {
11
public class MoteurIdentiplantePresenteurTest {
12
 
12
 
13
	MoteurPictofloraPresenteur moteurRecherchePresenteur;
13
	MoteurIdentiplantePresenteur moteurRecherchePresenteur;
14
	MoteurRechercheImagePresenteur.MoteurPictofloraPresenteur moteurRechercheVue;
14
	MoteurIdentiplantePresenteur.Vue moteurRechercheVue;
15
	HasWidgets container;
15
	HasWidgets container;
16
 
16
 
17
	@Before
17
	@Before
18
	public void setUp() {
18
	public void setUp() {
19
		moteurRechercheVue = Mockito.mock(MoteurPictofloraPresenteur.Vue.class, Mockito.RETURNS_MOCKS);
19
		moteurRechercheVue = Mockito.mock(MoteurIdentiplantePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
20
		ProtocoleService protocoleService = Mockito.mock(ProtocoleService.class);
20
		ObservationService obsService = Mockito.mock(ObservationService.class);
21
		moteurRecherchePresenteur = new MoteurPictofloraPresenteur(moteurRechercheVue, protocoleService);
21
		moteurRecherchePresenteur = new MoteurIdentiplantePresenteur(obsService, moteurRechercheVue);
22
 
22
 
23
		container = Mockito.mock(HasWidgets.class);
23
		container = Mockito.mock(HasWidgets.class);
24
	}
24
	}
25
 
25
 
26
	@Test
26
	@Test
27
	public void testerMoteurRechercheImage() {
27
	public void testerMoteurRechercheImage() {
28
		// TODO faire un test GWTTestCase
28
		// TODO faire un test GWTTestCase
29
	}
29
	}
30
 
30
 
31
}
31
}