Commit 26a4a746 authored by Mathieu Gicquel's avatar Mathieu Gicquel
Browse files

Test project creator association - Fix #17

parent e45408d3
package fr.alma.gtd.server.main.donnees;
import fr.alma.gtd.server.core.IParticipant;
import fr.alma.gtd.server.core.IProject;
import fr.alma.gtd.server.core.ITask;
import fr.alma.gtd.server.persistence.data.Utilisateur;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
......@@ -110,5 +112,20 @@ public class ProjectTest {
assertEquals(this.project,t4.getProjectContainer());
}
@Test
public void testCreatorAssociation() {
IParticipant u1 = new Utilisateur();
IParticipant u2 = new Utilisateur();
this.project.setCreator(u1);
assertEquals(u1,this.project.getCreator());
this.project.setCreator(u2);
assertEquals(u2,this.project.getCreator());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment