Subversion Repositories eFlore/Applications.del

Rev

Rev 814 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 814 Rev 959
Line 9... Line 9...
9
import org.mockito.Mockito;
9
import org.mockito.Mockito;
10
import org.tela_botanica.del.client.cache.CacheClient;
10
import org.tela_botanica.del.client.cache.CacheClient;
11
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVotePresenteur;
11
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVotePresenteur;
12
import org.tela_botanica.del.client.modeles.Image;
12
import org.tela_botanica.del.client.modeles.Image;
13
import org.tela_botanica.del.client.modeles.Protocole;
13
import org.tela_botanica.del.client.modeles.Protocole;
-
 
14
import org.tela_botanica.del.client.services.rest.VoteProtocoleService;
Line 14... Line 15...
14
 
15
 
Line 15... Line 16...
15
import com.google.gwt.user.client.ui.HasWidgets;
16
import com.google.gwt.user.client.ui.HasWidgets;
Line 39... Line 40...
39
		tousLesProtocoles.add(protocol2);
40
		tousLesProtocoles.add(protocol2);
Line 40... Line 41...
40
		
41
		
41
		imageCourante = new Image();
42
		imageCourante = new Image();
42
		Protocole protocole = tousLesProtocoles.get(0);
43
		Protocole protocole = tousLesProtocoles.get(0);
-
 
44
		vue = Mockito.mock(MoyenneVotePresenteur.Vue.class,Mockito.RETURNS_DEEP_STUBS);
43
		vue = Mockito.mock(MoyenneVotePresenteur.Vue.class,Mockito.RETURNS_DEEP_STUBS);
45
		VoteProtocoleService voteProtocoleService=Mockito.mock(VoteProtocoleService.class);
44
		mvp = new MoyenneVotePresenteur(imageCourante, protocole, vue);
46
		mvp = new MoyenneVotePresenteur(imageCourante, protocole, vue, voteProtocoleService);
45
		container = Mockito.mock(HasWidgets.class, Mockito.RETURNS_DEEP_STUBS);
47
		container = Mockito.mock(HasWidgets.class, Mockito.RETURNS_DEEP_STUBS);
46
		mvp.go(container);
48
		mvp.go(container);
Line 47... Line 49...
47
	}
49
	}