package com.emonster.taroaichat.service.dto;

import static org.assertj.core.api.Assertions.assertThat;

import com.emonster.taroaichat.web.rest.TestUtil;
import org.junit.jupiter.api.Test;

class TarotCardDTOTest {

    @Test
    void dtoEqualsVerifier() throws Exception {
        TestUtil.equalsVerifier(TarotCardDTO.class);
        TarotCardDTO tarotCardDTO1 = new TarotCardDTO();
        tarotCardDTO1.setId(1L);
        TarotCardDTO tarotCardDTO2 = new TarotCardDTO();
        assertThat(tarotCardDTO1).isNotEqualTo(tarotCardDTO2);
        tarotCardDTO2.setId(tarotCardDTO1.getId());
        assertThat(tarotCardDTO1).isEqualTo(tarotCardDTO2);
        tarotCardDTO2.setId(2L);
        assertThat(tarotCardDTO1).isNotEqualTo(tarotCardDTO2);
        tarotCardDTO1.setId(null);
        assertThat(tarotCardDTO1).isNotEqualTo(tarotCardDTO2);
    }
}
