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

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());
}
}