|
|
- package ksiazka.kucharska;
-
- import static org.junit.Assert.*;
-
- import ksiazka.kucharska.CB_View;
-
- import org.junit.Test;
-
- public class RecipeBuilderTest {
-
- @Test
- public void testBuildRecipe() {
- CB_View theView = new CB_View();
- RecipeManager rm = new RecipeManager();
- rm.setRecipeBuilder(new ExampleRecipeBuilder(theView));
- rm.constructRecipe();
-
- CB_Model obj = rm.getRecipe();
-
- assertEquals("Kanapka", obj.getName());
- }
-
- }
|