Subversion Repositories eFlore/Applications.del

Rev

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

Rev 484 Rev 959
Line 1... Line 1...
1
package org.tela_botanica.del.test.vues.rechercheimages;
1
package org.tela_botanica.del.test.vues.rechercheimages;
Line 2... Line 2...
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;
Line 6... Line 7...
6
import org.tela_botanica.del.client.vues.rechercheimages.moteur.MoteurRechercheImagePresenteur;
7
import org.tela_botanica.del.client.vues.rechercheimages.moteur.MoteurRechercheImagePresenteur;
Line 7... Line 8...
7
 
8
 
8
import com.google.gwt.user.client.ui.HasWidgets;
9
import com.google.gwt.user.client.ui.HasWidgets;
9
 
10
 
10
public class MoteurRechercheImagePresenteurTest {
11
public class MoteurRechercheImagePresenteurTest {
11
	
12
 
12
	MoteurRechercheImagePresenteur moteurRecherchePresenteur;
13
	MoteurRechercheImagePresenteur moteurRecherchePresenteur;
13
	MoteurRechercheImagePresenteur.Vue moteurRechercheVue;
14
	MoteurRechercheImagePresenteur.Vue moteurRechercheVue;
14
	HasWidgets container;
15
	HasWidgets container;
15
	
16
 
-
 
17
	@Before
16
	@Before
18
	public void setUp() {
17
	public void setUp() {
19
		moteurRechercheVue = Mockito.mock(MoteurRechercheImagePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
18
		moteurRechercheVue = Mockito.mock(MoteurRechercheImagePresenteur.Vue.class, Mockito.RETURNS_MOCKS);
20
		ProtocoleService protocoleService = Mockito.mock(ProtocoleService.class);
19
		moteurRecherchePresenteur = new MoteurRechercheImagePresenteur(moteurRechercheVue);
21
		moteurRecherchePresenteur = new MoteurRechercheImagePresenteur(moteurRechercheVue, protocoleService);
20
		
22
 
21
		container = Mockito.mock(HasWidgets.class);
23
		container = Mockito.mock(HasWidgets.class);
22
	}
24
	}
23
	
25
 
24
	@Test 
26
	@Test
25
	public void testerMoteurRechercheImage() {
27
	public void testerMoteurRechercheImage() {
26
		//TODO faire un test GWTTestCase
28
		// TODO faire un test GWTTestCase