use of com.buschmais.jqassistant.plugin.java.api.model.ClassFileDescriptor in project jqa-java-plugin by buschmais.
the class ByteCodeVersionIT method javaVersion.
@Test
public void javaVersion() throws Exception {
scanClasses(Pojo.class);
assertThat(applyConcept("java:JavaVersion").getStatus(), CoreMatchers.equalTo(SUCCESS));
store.beginTransaction();
List<ClassFileDescriptor> types = query("MATCH (t:Type) WHERE t.name='Pojo' and t.javaVersion='Java 8' RETURN t").getColumn("t");
assertThat(types.size(), equalTo(1));
ClassFileDescriptor pojo = types.get(0);
assertThat(pojo, typeDescriptor(Pojo.class));
store.commitTransaction();
}
Aggregations