generator.server.springboot.webflux.web.test.FieldErrorDTOTest.mustache Maven / Gradle / Ivy
package {{packageName}}.shared.error.infrastructure.primary;
import static org.assertj.core.api.Assertions.*;
import org.junit.jupiter.api.Test;
import {{packageName}}.UnitTest;
@UnitTest
class FieldErrorDTOTest {
@Test
void shouldBuild() {
FieldErrorDTO fieldErrorDTO = new FieldErrorDTO("dto", "field", "message");
assertThat(fieldErrorDTO.getObjectName()).isEqualTo("dto");
assertThat(fieldErrorDTO.getField()).isEqualTo("field");
assertThat(fieldErrorDTO.getMessage()).isEqualTo("message");
}
}