use of org.apache.ignite.internal.dto.IgniteDataTransferObject in project gridgain by gridgain.
the class GridCommandHandlerIndexingCheckSizeTest method testNoNpeInToString.
/**
* Test checks that there will be no {@link NullPointerException}
* when calling {@link Object#toString} for {@link ValidateIndexesCheckSizeIssue}
* and {@link ValidateIndexesCheckSizeResult}.
*/
@Test
public void testNoNpeInToString() {
List<IgniteDataTransferObject> transferObjects = asList(new ValidateIndexesCheckSizeIssue(), new ValidateIndexesCheckSizeIssue(null, 0, null), new ValidateIndexesCheckSizeIssue("idx", 0, null), new ValidateIndexesCheckSizeIssue(null, 0, new Exception("error")), new ValidateIndexesCheckSizeIssue("idx", 0, new Exception("error")), //
new ValidateIndexesCheckSizeResult(), new ValidateIndexesCheckSizeResult(0, null), new ValidateIndexesCheckSizeResult(0, emptyList()), new ValidateIndexesCheckSizeResult(0, asList(new ValidateIndexesCheckSizeIssue())));
// there should be no npe
log.info("transferObjects=" + transferObjects);
}
Aggregations