Subversion Repositories eFlore/Applications.del

Rev

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

Rev 690 Rev 838
Line 7... Line 7...
7
import java.util.List;
7
import java.util.List;
Line 8... Line 8...
8
 
8
 
9
import org.junit.Test;
9
import org.junit.Test;
10
import org.tela_botanica.del.client.modeles.Contributeur;
10
import org.tela_botanica.del.client.modeles.Contributeur;
-
 
11
import org.tela_botanica.del.client.modeles.MoyenneVote;
11
import org.tela_botanica.del.client.modeles.MoyenneVote;
12
import org.tela_botanica.del.client.modeles.Observation;
12
import org.tela_botanica.del.client.modeles.PropositionDetermination;
13
import org.tela_botanica.del.client.modeles.PropositionDetermination;
13
import org.tela_botanica.del.client.modeles.VoteDetermination;
14
import org.tela_botanica.del.client.modeles.VoteDetermination;
Line 14... Line 15...
14
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
15
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
Line 21... Line 22...
21
		VoteDetermination voteDetermination = new VoteDetermination();
22
		VoteDetermination voteDetermination = new VoteDetermination();
22
		voteDetermination.setVote(1);
23
		voteDetermination.setVote(1);
23
		voteDetermination.setDate(new Date());
24
		voteDetermination.setDate(new Date());
24
		voteDetermination.setContributeur("benjamin");
25
		voteDetermination.setContributeur("benjamin");
Line 25... Line 26...
25
 
26
 
26
		PropositionDetermination propositionDetermination = new PropositionDetermination();
27
		PropositionDetermination propositionDetermination = new PropositionDetermination(new Observation());
27
		propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
28
		propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
28
		propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
29
		propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
29
		propositionDetermination.setId("1");
30
		propositionDetermination.setId("1");
Line 62... Line 63...
62
		VoteDetermination voteDetermination5 = new VoteDetermination();
63
		VoteDetermination voteDetermination5 = new VoteDetermination();
63
		voteDetermination4.setVote(1);
64
		voteDetermination4.setVote(1);
64
		voteDetermination4.setDate(new Date());
65
		voteDetermination4.setDate(new Date());
65
		voteDetermination4.setContributeur("benjamin");
66
		voteDetermination4.setContributeur("benjamin");
Line 66... Line 67...
66
 
67
 
67
		PropositionDetermination propositionDetermination = new PropositionDetermination();
68
		PropositionDetermination propositionDetermination = new PropositionDetermination(new Observation());
68
		propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
69
		propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
69
		propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
70
		propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
70
		propositionDetermination.setId("1");
71
		propositionDetermination.setId("1");
71
		propositionDetermination.ajouterVoteDetermination(voteDetermination1);
72
		propositionDetermination.ajouterVoteDetermination(voteDetermination1);
72
		propositionDetermination.ajouterVoteDetermination(voteDetermination2);
73
		propositionDetermination.ajouterVoteDetermination(voteDetermination2);
73
		propositionDetermination.ajouterVoteDetermination(voteDetermination3);
74
		propositionDetermination.ajouterVoteDetermination(voteDetermination3);
Line 74... Line 75...
74
		propositionDetermination.ajouterVoteDetermination(voteDetermination4);
75
		propositionDetermination.ajouterVoteDetermination(voteDetermination4);
75
		
76
		
76
		PropositionDetermination propositionDetermination2 = new PropositionDetermination();
77
		PropositionDetermination propositionDetermination2 = new PropositionDetermination(new Observation());
77
		propositionDetermination2.setEspece("Iris urticans");
78
		propositionDetermination2.setEspece("Iris urticans");
78
		propositionDetermination2.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
79
		propositionDetermination2.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
79
		propositionDetermination2.setId("2");
80
		propositionDetermination2.setId("2");