Line 5... |
Line 5... |
5 |
import java.util.ArrayList;
|
5 |
import java.util.ArrayList;
|
6 |
import java.util.Date;
|
6 |
import java.util.Date;
|
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.MoyenneVote;
|
11 |
import org.tela_botanica.del.client.modeles.MoyenneVote;
|
11 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
12 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
12 |
import org.tela_botanica.del.client.modeles.VoteDetermination;
|
13 |
import org.tela_botanica.del.client.modeles.VoteDetermination;
|
Line 22... |
Line 23... |
22 |
voteDetermination.setDate(new Date());
|
23 |
voteDetermination.setDate(new Date());
|
23 |
voteDetermination.setContributeur("benjamin");
|
24 |
voteDetermination.setContributeur("benjamin");
|
Line 24... |
Line 25... |
24 |
|
25 |
|
25 |
PropositionDetermination propositionDetermination = new PropositionDetermination();
|
26 |
PropositionDetermination propositionDetermination = new PropositionDetermination();
|
26 |
propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
|
27 |
propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
|
27 |
propositionDetermination.setAuteur("contributeur test");
|
28 |
propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
|
28 |
propositionDetermination.setId("1");
|
29 |
propositionDetermination.setId("1");
|
Line 29... |
Line 30... |
29 |
propositionDetermination.ajouterVoteDetermination(voteDetermination);
|
30 |
propositionDetermination.ajouterVoteDetermination(voteDetermination);
|
30 |
|
31 |
|
Line 63... |
Line 64... |
63 |
voteDetermination4.setDate(new Date());
|
64 |
voteDetermination4.setDate(new Date());
|
64 |
voteDetermination4.setContributeur("benjamin");
|
65 |
voteDetermination4.setContributeur("benjamin");
|
Line 65... |
Line 66... |
65 |
|
66 |
|
66 |
PropositionDetermination propositionDetermination = new PropositionDetermination();
|
67 |
PropositionDetermination propositionDetermination = new PropositionDetermination();
|
67 |
propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
|
68 |
propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
|
68 |
propositionDetermination.setAuteur("contributeur test");
|
69 |
propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
|
69 |
propositionDetermination.setId("1");
|
70 |
propositionDetermination.setId("1");
|
70 |
propositionDetermination.ajouterVoteDetermination(voteDetermination1);
|
71 |
propositionDetermination.ajouterVoteDetermination(voteDetermination1);
|
71 |
propositionDetermination.ajouterVoteDetermination(voteDetermination2);
|
72 |
propositionDetermination.ajouterVoteDetermination(voteDetermination2);
|
72 |
propositionDetermination.ajouterVoteDetermination(voteDetermination3);
|
73 |
propositionDetermination.ajouterVoteDetermination(voteDetermination3);
|
Line 73... |
Line 74... |
73 |
propositionDetermination.ajouterVoteDetermination(voteDetermination4);
|
74 |
propositionDetermination.ajouterVoteDetermination(voteDetermination4);
|
74 |
|
75 |
|
75 |
PropositionDetermination propositionDetermination2 = new PropositionDetermination();
|
76 |
PropositionDetermination propositionDetermination2 = new PropositionDetermination();
|
76 |
propositionDetermination2.setEspece("Iris urticans");
|
77 |
propositionDetermination2.setEspece("Iris urticans");
|
77 |
propositionDetermination2.setAuteur("contributeur test2");
|
78 |
propositionDetermination2.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
|
78 |
propositionDetermination2.setId("2");
|
79 |
propositionDetermination2.setId("2");
|
79 |
propositionDetermination2.ajouterVoteDetermination(voteDetermination1);
|
80 |
propositionDetermination2.ajouterVoteDetermination(voteDetermination1);
|
80 |
propositionDetermination2.ajouterVoteDetermination(voteDetermination2);
|
81 |
propositionDetermination2.ajouterVoteDetermination(voteDetermination2);
|