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
Corentin GUILLEVIC
Not Alone
Commits
4c252752
Commit
4c252752
authored
Dec 11, 2020
by
Thomas DENIS
Browse files
Version 3 de HandTraqueTest
parent
2f92ba78
Changes
1
Hide whitespace changes
Inline
Side-by-side
not-alone-server/src/test/java/fr/univnantes/alma/server/game/item/player/hand/HandTraqueTest.java
View file @
4c252752
...
...
@@ -126,10 +126,6 @@ class HandTraqueTest {
assertTrue
(
hand
.
getDefausse
().
containsAll
(
testCards
));
}
@Test
public
void
testTakeBackPlaceCard
(){
//TODO
}
@Test
public
void
testTakeBackPlaceCardGiven
(){
PlaceCard
card
=
new
PlaceCard
(
CardName
.
ANTRE
,
"antre"
,
"antre"
,
1
,
"url"
,
"bleu"
);
List
<
PlaceCard
>
testCards
=
new
ArrayList
<>();
...
...
@@ -152,11 +148,25 @@ class HandTraqueTest {
}
@Test
public
void
testTakeBackPlayedPlaceCards
(){
//TODO
PlaceCard
card
=
new
PlaceCard
(
CardName
.
ANTRE
,
"antre"
,
"antre"
,
1
,
"url"
,
"bleu"
);
List
<
PlaceCard
>
testCards
=
new
ArrayList
<>();
testCards
.
add
(
card
);
hand
.
setPlaceCards
(
testCards
);
hand
.
playPlaceCard
(
testCards
);
hand
.
takeBackPlayedPlaceCards
();
assertTrue
(
hand
.
getPlaceCards
().
containsAll
(
testCards
));
assertTrue
(
hand
.
getPlaceCardsPlayed
().
isEmpty
());
}
@Test
public
void
testTakeBackAllPlaceCardFromDefausse
(){
//TODO
PlaceCard
card
=
new
PlaceCard
(
CardName
.
ANTRE
,
"antre"
,
"antre"
,
1
,
"url"
,
"bleu"
);
List
<
PlaceCard
>
testCards
=
new
ArrayList
<>();
testCards
.
add
(
card
);
hand
.
setPlaceCards
(
testCards
);
hand
.
playPlaceCard
(
testCards
);
hand
.
takeBackAllPlaceCardFromDefausse
();
assertTrue
(
hand
.
getPlaceCards
().
containsAll
(
testCards
));
assertTrue
(
hand
.
getDefausse
().
isEmpty
());
}
@Test
public
void
testAddPlaceCard
(){
...
...
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