Print export Unit tests are written
This commit is contained in:
parent
91fbefb392
commit
7d32799f13
2 changed files with 70 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ public class PrintExportService {
|
|||
for(int i =0; i<recipe.getIngredients().size();i++){ // For loop adding ingredients one by one
|
||||
result += recipe.getIngredients().get(i) + ", ";
|
||||
}
|
||||
result += "Steps:\n";
|
||||
result += "\nSteps:\n";
|
||||
for(int i =0; i<recipe.getPreparationSteps().size();i++){ // Preparation Steps separated by new lines
|
||||
result += (i+1) + ": " + recipe.getPreparationSteps().get(i) + "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue