Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu GICQUEL
GTD Server
Commits
26a4a746
Commit
26a4a746
authored
Mar 30, 2021
by
Mathieu Gicquel
Browse files
Test project creator association - Fix
#17
parent
e45408d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtd-server-main/src/test/java/fr/alma/gtd/server/main/donnees/ProjectTest.java
View file @
26a4a746
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
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment