use of io.crnk.core.engine.document.ErrorData in project crnk-framework by crnk-project.
the class ErrorDataBuilderTest method shouldSetDetail.
@Test
public void shouldSetDetail() throws Exception {
ErrorData error = ErrorData.builder().setDetail(ErrorDataMother.DETAIL).build();
assertThat(error.getDetail()).isEqualTo(ErrorDataMother.DETAIL);
}
use of io.crnk.core.engine.document.ErrorData in project crnk-framework by crnk-project.
the class ErrorDataBuilderTest method shouldSetId.
@Test
public void shouldSetId() throws Exception {
ErrorData error = ErrorData.builder().setId(ErrorDataMother.ID).build();
assertThat(error.getId()).isEqualTo(ErrorDataMother.ID);
}
use of io.crnk.core.engine.document.ErrorData in project crnk-framework by crnk-project.
the class ErrorDataBuilderTest method shouldSetPaths.
@Test
public void shouldSetPaths() throws Exception {
ErrorData error = ErrorData.builder().setSourceParameter(ErrorDataMother.PARAMETER).build();
assertThat(error.getSourceParameter()).isEqualTo(ErrorDataMother.PARAMETER);
}
use of io.crnk.core.engine.document.ErrorData in project crnk-framework by crnk-project.
the class ErrorDataBuilderTest method shouldSetCode.
@Test
public void shouldSetCode() throws Exception {
ErrorData error = ErrorData.builder().setCode(ErrorDataMother.CODE).build();
assertThat(error.getCode()).isEqualTo(ErrorDataMother.CODE);
}
use of io.crnk.core.engine.document.ErrorData in project crnk-framework by crnk-project.
the class ErrorDataBuilderTest method shouldSetTitle.
@Test
public void shouldSetTitle() throws Exception {
ErrorData error = ErrorData.builder().setTitle(ErrorDataMother.TITLE).build();
assertThat(error.getTitle()).isEqualTo(ErrorDataMother.TITLE);
}
Aggregations