@@ -0,0 +1,1277 @@
+package dev.blunch.blunch.domain;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNull;%0A%0A/**%0A * To work on unit tests, switch the Test Artifact in the Build Variants view.%0A */%0Apublic class DishTest %7B%0A%0A    final String ID = %22id%22;%0A    final String NAME = %22Pescado%22;%0A    final Double PRICE = 10.0;%0A%0A    Dish dish;%0A%0A    @Before%0A    public void before() %7B%0A        dish = new Dish(NAME, PRICE);%0A        dish.setId(ID);%0A    %7D%0A%0A    @Test%0A    public void create_correctly_a_dish() throws Exception %7B%0A        assertEquals(dish.getId(), ID);%0A        assertEquals(dish.getName(), NAME);%0A        assertEquals(dish.getPrice(), PRICE);%0A    %7D%0A%0A    @Test%0A    public void update_dish() throws Exception %7B%0A        final String newID = %22id2%22;%0A        final String newNAME = %22Carne%22;%0A        final Double newPRICE = 50.0;%0A%0A        dish.setId(newID);%0A        assertEquals(dish.getId(), newID);%0A        dish.setName(newNAME);%0A        assertEquals(dish.getName(), newNAME);%0A        dish.setPrice(newPRICE);%0A        assertEquals(dish.getPrice(), newPRICE);%0A    %7D%0A%0A    @Test%0A    public void create_correctly_an_empty_dish() throws Exception %7B%0A        Dish emptyDish = new Dish();%0A        assertNull(emptyDish);%0A    %7D%0A%0A%7D

add dish tests