Line 9... |
Line 9... |
9 |
import org.junit.Test;
|
9 |
import org.junit.Test;
|
10 |
import org.mockito.Mock;
|
10 |
import org.mockito.Mock;
|
11 |
import org.mockito.Mockito;
|
11 |
import org.mockito.Mockito;
|
12 |
import org.tela_botanica.del.client.composants.votes.barrerepartition.BarreRepartitionVotePresenteur;
|
12 |
import org.tela_botanica.del.client.composants.votes.barrerepartition.BarreRepartitionVotePresenteur;
|
13 |
import org.tela_botanica.del.client.composants.votes.barrerepartition.BarreRepartitionVotePresenteur.Vue;
|
13 |
import org.tela_botanica.del.client.composants.votes.barrerepartition.BarreRepartitionVotePresenteur.Vue;
|
- |
|
14 |
import org.tela_botanica.del.client.modeles.Contributeur;
|
14 |
import org.tela_botanica.del.client.modeles.MoyenneVote;
|
15 |
import org.tela_botanica.del.client.modeles.MoyenneVote;
|
15 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
16 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
16 |
import org.tela_botanica.del.client.modeles.VoteDetermination;
|
17 |
import org.tela_botanica.del.client.modeles.VoteDetermination;
|
17 |
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
|
18 |
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
|
Line 39... |
Line 40... |
39 |
voteDetermination.setDate(new Date());
|
40 |
voteDetermination.setDate(new Date());
|
40 |
voteDetermination.setContributeur("benjamin");
|
41 |
voteDetermination.setContributeur("benjamin");
|
Line 41... |
Line 42... |
41 |
|
42 |
|
42 |
PropositionDetermination propositionDetermination = new PropositionDetermination();
|
43 |
PropositionDetermination propositionDetermination = new PropositionDetermination();
|
43 |
propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
|
44 |
propositionDetermination.setEspece("Iris lutescens subsp. lutescens");
|
44 |
propositionDetermination.setAuteur("contributeur test");
|
45 |
propositionDetermination.setContributeur(new Contributeur("contrib", "test", "contrib@test.com"));
|
45 |
propositionDetermination.setId("1");
|
46 |
propositionDetermination.setId("1");
|
Line 46... |
Line 47... |
46 |
propositionDetermination.ajouterVoteDetermination(voteDetermination);
|
47 |
propositionDetermination.ajouterVoteDetermination(voteDetermination);
|
47 |
|
48 |
|