From 0bb3a16ecccac3ed601188dea64c59240069f03b Mon Sep 17 00:00:00 2001 From: Johannes Mey <johannes.mey@tu-dresden.de> Date: Sat, 4 Jan 2020 20:11:27 +0100 Subject: [PATCH] test ant. this fails because interfaces are not treated properly (they may contain declarations, namely constants!) --- .../src/test/java/org/extendj/AntTest.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scope4j/src/test/java/org/extendj/AntTest.java diff --git a/scope4j/src/test/java/org/extendj/AntTest.java b/scope4j/src/test/java/org/extendj/AntTest.java new file mode 100644 index 0000000..584b9d7 --- /dev/null +++ b/scope4j/src/test/java/org/extendj/AntTest.java @@ -0,0 +1,21 @@ +package org.extendj; + +import org.extendj.ast.AbstractFinding; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import java.util.Set; + +public class AntTest extends ScopeAnalysisTest { + + @Test + void test() { + + ScopeAnalysis scopeAnalysis = new ScopeAnalysis(); + Set<AbstractFinding> findings = scopeAnalysis.analyze("../testprograms/ant", false, false); + + System.out.println(findings); + + } + +} -- GitLab