Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Design_Pattern
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ROSIER Basile
Design_Pattern
Commits
46b5f8fc
Commit
46b5f8fc
authored
1 year ago
by
rosier8u
Browse files
Options
Downloads
Patches
Plain Diff
ajout de ConstructeurGuerisseurTest
parent
83b75edb
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
design_pattern/src/tests/ConstructeurGuerisseurTest.java
+26
-0
26 additions, 0 deletions
design_pattern/src/tests/ConstructeurGuerisseurTest.java
with
26 additions
and
0 deletions
design_pattern/src/tests/ConstructeurGuerisseurTest.java
0 → 100644
+
26
−
0
View file @
46b5f8fc
package
tests
;
import
modele.DPFabrique.ConstructeurGuerisseur
;
import
modele.Personnage
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.Test
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.*;
class
ConstructeurGuerisseurTest
{
private
ConstructeurGuerisseur
constructeur
;
private
Personnage
personnage
;
@BeforeEach
void
setUp
()
{
constructeur
=
new
ConstructeurGuerisseur
();
}
@Test
void
creerPersonnage
()
{
personnage
=
constructeur
.
creerPersonnage
();
personnage
.
getNom
();
assertNotEquals
(
personnage
,
null
);
assertEquals
(
personnage
.
getNom
(),
"guerisseur"
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment