Skip to content

Commit fb0e6bf

Browse files
author
Sauyon Lee
committed
Fix tests for Spring util
1 parent 739b142 commit fb0e6bf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

java/ql/test/library-tests/frameworks/spring/util/Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class Test {
5252
Object source() { return null; }
5353
void sink(Object o) { }
5454

55-
public void test() {
55+
public void test() throws Exception {
5656

5757
{
5858
// "org.springframework.util;AntPathMatcher;false;combine;;;Argument[0..1];ReturnValue;taint"
@@ -97,7 +97,7 @@ public void test() {
9797
// "org.springframework.util;AutoPopulatingList;false;AutoPopulatingList;(java.util.List,org.springframework.util.AutoPopulatingList.ElementFactory);;Element of Argument[0];Element of Argument[-1];value"
9898
AutoPopulatingList out = null;
9999
List in = (List)newWithElement(source());
100-
out = new AutoPopulatingList(in, (AutoPopulatingList<>.ElementFactory)null);
100+
out = new AutoPopulatingList(in, (AutoPopulatingList.ElementFactory)null);
101101
sink(getElement(out)); // $hasValueFlow
102102
}
103103
{
@@ -1480,4 +1480,4 @@ public void test() {
14801480

14811481
}
14821482

1483-
}
1483+
}

java/ql/test/library-tests/frameworks/spring/util/test.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import semmle.code.java.dataflow.DataFlow
33
import semmle.code.java.dataflow.ExternalFlow
44
import semmle.code.java.dataflow.TaintTracking
55
import TestUtilities.InlineExpectationsTest
6+
import semmle.code.java.frameworks.spring.SpringUtil
67

78
class SummaryModelTest extends SummaryModelCsv {
89
override predicate row(string row) {

0 commit comments

Comments
 (0)