Skip to content

Commit fe1cc40

Browse files
committed
org.kohsuke.stapler.framework.adjunct tests
1 parent 44f239f commit fe1cc40

File tree

148 files changed

+3456
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+3456
-7
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package generatedtest;
2+
3+
import org.kohsuke.stapler.framework.adjunct.AdjunctManager;
4+
5+
// Test case generated by GenerateFlowTestCase.ql
6+
public class Test {
7+
8+
Object source() {
9+
return null;
10+
}
11+
12+
void sink(Object o) {}
13+
14+
public void test() throws Exception {
15+
16+
{
17+
// "org.kohsuke.stapler.framework.adjunct;AdjunctManager;true;AdjunctManager;(ServletContext,ClassLoader,String,long);;Argument[2];Argument[-1].Field[org.kohsuke.stapler.framework.adjunct.AdjunctManager.rootURL];taint;ai-generated"
18+
AdjunctManager out = null;
19+
String in = (String) source();
20+
out = new AdjunctManager(null, null, in, 0L);
21+
sink(out.rootURL); // $ hasTaintFlow
22+
}
23+
24+
}
25+
26+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/stapler-1.263:${testdir}/../../../stubs/javax-servlet-2.5:${testdir}/../../../stubs/apache-commons-jelly-1.0.1:${testdir}/../../../stubs/apache-commons-fileupload-1.4:${testdir}/../../../stubs/saxon-xqj-9.x:${testdir}/../../../stubs/apache-commons-beanutils:${testdir}/../../../stubs/dom4j-2.1.1:${testdir}/../../../stubs/apache-commons-lang:${testdir}/../../../stubs/jaxen-1.2.0

java/ql/test/library-tests/frameworks/stapler/test.expected

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import java
2+
import TestUtilities.InlineFlowTest

java/ql/test/stubs/apache-commons-beanutils/org/apache/commons/beanutils/ConvertUtilsBean.java

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-commons-beanutils/org/apache/commons/beanutils/Converter.java

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-commons-fileupload-1.4/org/apache/commons/fileupload/FileItem.java

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-commons-fileupload-1.4/org/apache/commons/fileupload/FileItemHeaders.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-commons-fileupload-1.4/org/apache/commons/fileupload/FileItemHeadersSupport.java

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-commons-lang/org/apache/commons/lang/exception/Nestable.java

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)