Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tok-chef
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine HAZEBROUCK
tok-chef
Commits
b8069c19
Commit
b8069c19
authored
Sep 11, 2024
by
Pronier Julien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test ingrédient
parent
3da1b743
Pipeline
#2879
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
Application.java
src/main/java/imt/Application.java
+12
-0
Plat.java
src/main/java/imt/Plat.java
+0
-8
No files found.
src/main/java/imt/Application.java
View file @
b8069c19
package
imt
;
import
imt.ingredients.Ingredient
;
import
imt.ingredients.Legume
;
import
imt.ingredients.ViandePoisson
;
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
...
...
@@ -7,5 +11,13 @@ public class Application {
// var padawan = new Padawan(1, "Hazebrouck", "Antoine", "06 51 73 08 05", Genre.HOMME, chef);
// System.out.println(padawan);
// Ingredient ingredient1 = new Legume(1,"Oignons",120,false);
// Ingredient ingredient2 = new Legume(2,"Patate",120,false);
// Ingredient ingredient3 = new ViandePoisson(3,"Poulet",120,12);
// Ingredient[] ingredients = {ingredient1, ingredient2, ingredient3};
//
// Plat plat = new Plat(1,"Oignon Poulet patate", ingredients);
// System.out.println(plat);
}
}
src/main/java/imt/Plat.java
View file @
b8069c19
...
...
@@ -49,12 +49,4 @@ public class Plat {
return
"Plat [idPlat="
+
idPlat
+
", nomPlat="
+
nomPlat
+
", ingredients="
+
ingredientStr
.
toString
()
+
"]"
;
}
public
void
main
(
String
[]
args
)
{
Ingredient
ingredient1
=
new
Legume
(
12
,
"Oignon"
,
100
,
false
);
ingredient1
.
setConsigne
(
Consigne
.
CUIT
);
Ingredient
[]
ingredients
=
{
ingredient1
};
String
nomplat
=
"Oignons grillé"
;
new
Plat
(
1
,
nomPlat
,
ingredients
);
}
}
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