Subversion Repositories eFlore/Applications.del

Rev

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

Rev 273 Rev 838
Line 6... Line 6...
6
import java.util.Date;
6
import java.util.Date;
7
import java.util.HashMap;
7
import java.util.HashMap;
Line 8... Line 8...
8
 
8
 
9
import org.junit.Test;
9
import org.junit.Test;
-
 
10
import org.tela_botanica.del.client.modeles.MoyenneVote;
10
import org.tela_botanica.del.client.modeles.MoyenneVote;
11
import org.tela_botanica.del.client.modeles.Observation;
Line 11... Line 12...
11
import org.tela_botanica.del.client.modeles.PropositionDetermination;
12
import org.tela_botanica.del.client.modeles.PropositionDetermination;
Line 12... Line 13...
12
 
13
 
13
public class MoyenneVoteTest {
14
public class MoyenneVoteTest {
Line 14... Line 15...
14
 
15
 
15
	@Test
16
	@Test
Line 16... Line 17...
16
	public void testCompareTo() {
17
	public void testCompareTo() {
17
		
18
		
Line 18... Line 19...
18
		PropositionDetermination propositionDetermination = new PropositionDetermination();
19
		PropositionDetermination propositionDetermination = new PropositionDetermination(new Observation());
19
		MoyenneVote mv1 = new MoyenneVote(100, propositionDetermination);
20
		MoyenneVote mv1 = new MoyenneVote(100, propositionDetermination);
Line 20... Line 21...
20
		
21
		
21
		PropositionDetermination propositionDetermination2 = new PropositionDetermination();
22
		PropositionDetermination propositionDetermination2 = new PropositionDetermination(new Observation());
Line 22... Line 23...
22
		MoyenneVote mv2 = new MoyenneVote(75, propositionDetermination2);
23
		MoyenneVote mv2 = new MoyenneVote(75, propositionDetermination2);
23
		
24