Skip to content

Commit 1d3bcdf

Browse files
author
Benjamin Muskalla
committed
Align tests with new query structure
1 parent 87ef540 commit 1d3bcdf

15 files changed

+43
-3
lines changed

java/ql/test/query-tests/Telemetry/ExternalAPIUsage/ExternalAPIUsage.expected

Lines changed: 0 additions & 1 deletion
This file was deleted.

java/ql/test/query-tests/Telemetry/ExternalAPIUsage/ExternalAPIUsage.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rt.jar | 3 |
1+
| rt.jar | 3 |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| java.io;?;FileWriter;FileWriter;(File) | 1 |
2+
| java.net;?;URL;openStream;() | 1 |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import java.io.File;
2+
import java.io.FileWriter;
3+
import java.io.IOException;
4+
import java.net.URL;
5+
6+
class SupportedExternalSinks {
7+
public static void main(String[] args) throws Exception {
8+
new FileWriter(new File("foo"));
9+
new URL("http://foo").openStream();
10+
}
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Telemetry/SupportedExternalSinks.ql
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| java.net;?;URLConnection;getInputStream;() | 1 |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import java.io.InputStream;
2+
import java.net.URL;
3+
4+
class SupportedExternalSources {
5+
public static void main(String[] args) throws Exception {
6+
URL github = new URL("https://www.github.com/");
7+
InputStream stream = github.openConnection().getInputStream();
8+
}
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Telemetry/SupportedExternalSources.ql
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| java.lang;?;StringBuilder;append;(String) | 1 |
2+
| java.lang;?;StringBuilder;toString;() | 1 |

0 commit comments

Comments
 (0)