Cook book written in Java
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
442 B

10 years ago
  1. package ksiazka.kucharska;
  2. import static org.junit.Assert.*;
  3. import ksiazka.kucharska.CB_View;
  4. import org.junit.Test;
  5. public class RecipeBuilderTest {
  6. @Test
  7. public void testBuildRecipe() {
  8. CB_View theView = new CB_View();
  9. RecipeManager rm = new RecipeManager();
  10. rm.setRecipeBuilder(new ExampleRecipeBuilder(theView));
  11. rm.constructRecipe();
  12. CB_Model obj = rm.getRecipe();
  13. assertEquals("Kanapka", obj.getName());
  14. }
  15. }