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
LI Qi
Bowling
Commits
23c29eac
Commit
23c29eac
authored
Feb 05, 2016
by
LI Qi
Browse files
add class Joueur
parent
3b1e3123
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/jeu/Joueur.java
0 → 100644
View file @
23c29eac
package
jeu
;
import
java.util.List
;
public
class
Joueur
{
private
String
name
;
public
Joueur
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
this
.
name
;
}
}
src/test/testJoueur.java
0 → 100644
View file @
23c29eac
package
test
;
import
jeu.Joueur
;
import
org.junit.Assert
;
import
org.junit.Test
;
public
class
testJoueur
{
private
Joueur
joueur
;
private
String
name
;
public
testJoueur
()
{
this
.
name
=
"Alice"
;
this
.
joueur
=
new
Joueur
(
name
);
}
@Test
public
void
testJoueurConstructor
()
{
Assert
.
assertNotNull
(
joueur
);
Assert
.
assertEquals
(
name
,
joueur
.
getName
());
}
}
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