Commit b8069c19 authored by Pronier Julien's avatar Pronier Julien

Test ingrédient

parent 3da1b743
Pipeline #2879 canceled with stages
package imt; package imt;
import imt.ingredients.Ingredient;
import imt.ingredients.Legume;
import imt.ingredients.ViandePoisson;
public class Application { public class Application {
public static void main(String[] args) { public static void main(String[] args) {
...@@ -7,5 +11,13 @@ public class Application { ...@@ -7,5 +11,13 @@ public class Application {
// var padawan = new Padawan(1, "Hazebrouck", "Antoine", "06 51 73 08 05", Genre.HOMME, chef); // var padawan = new Padawan(1, "Hazebrouck", "Antoine", "06 51 73 08 05", Genre.HOMME, chef);
// System.out.println(padawan); // 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);
} }
} }
...@@ -49,12 +49,4 @@ public class Plat { ...@@ -49,12 +49,4 @@ public class Plat {
return "Plat [idPlat=" + idPlat + ", nomPlat=" + nomPlat + ", ingredients=" + ingredientStr.toString() + "]"; 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);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment