use of com.github.javaparser.ast.expr.ArrayCreationExpr in project javaparser by javaparser.
the class Java1_0ValidatorTest method nonEmptyList.
@Test
public void nonEmptyList() {
ArrayCreationExpr expr = new ArrayCreationExpr(PrimitiveType.booleanType());
List<Problem> problems = new ArrayList<>();
new Java1_0Validator().accept(expr, new ProblemReporter(problems::add));
assertEquals("ArrayCreationExpr.levels can not be empty.", problems.get(0).getMessage());
}
Aggregations