blob: 0d8a5b9a7df14baff3965e81537ee4aa14c22a00 [file] [log] [blame]
package com.github.javaparser.ast.expr;
import com.github.javaparser.JavaParser;
import org.junit.Test;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
public class InstanceOfExprTest {
@Test
public void annotationsOnTheType() {
InstanceOfExpr expr = JavaParser.parseExpression("s instanceof @A @DA String");
assertThat(expr.getType().getAnnotations()).containsExactly(new MarkerAnnotationExpr("A"), new MarkerAnnotationExpr("DA"));
}
}