package org.home.whatsfordinner.domain.dish;

import org.home.whatsfordinner.common.EqualsJUnitTest;
import org.home.whatsfordinner.common.HashCodeJUnitTest;
import org.junit.Test;

public final class DishJUnitTest {

    @Test
    public void testEqualsSameObject() {
        EqualsJUnitTest.testEqualsSameObject(new Dish());
    }

    @Test
    public void testEqualsNull() {
        EqualsJUnitTest.testEqualsNull(new Dish());
    }

    @Test
    public void testEqualsOtherClass() {
        EqualsJUnitTest.testEqualsSameObject(new Dish());
    }

    @Test
    public void testEqualsId() {
        EqualsJUnitTest.testEqualsId(new Dish(), new Dish());
    }

    @Test
    public void testHashCode() {
        final Dish dish = new Dish();
        HashCodeJUnitTest.testHashCode(dish, 37);
        dish.setId(3L);
        HashCodeJUnitTest.testHashCode(dish, 40);
    }
}
