Skip to content

Commit

Permalink
:fix: moving reference to existing file. Fixes #3639
Browse files Browse the repository at this point in the history
Signed-off-by: dseurotech <davide.salvador@eurotech.com>
  • Loading branch information
dseurotech authored and Coduz committed Oct 25, 2022
1 parent 834ca9e commit 8e876e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void getAsUrlPositiveAndNegativeTest() throws KapuaSettingException, Malf
//this test is adjusted to method implementation getAsFile().
//therefore, the method was tested in this way without any assertion only with specific output.
public void getAsFilePositiveAndNegativeTest() throws IOException, KapuaSettingException {
String[] permittedFormats = new String[]{"https://www.w3.org/TR/PNG/iso_8859-1.txt", "http://txt2html.sourceforge.net/sample.txt",
String[] permittedFormats = new String[]{
"https://opensource.apple.com/source/cups/cups-218/cups/data/iso-8859-1.txt",
"http://txt2html.sourceforge.net/sample.txt",
"https://www.lipsum.com/"};
String[] invalidFormats = new String[]{"file:/hostname/path/the%20file.txt", "file://", "http://www.example.com:10800000000000/docs/resource1.html",
"/c:/WINDOWS/clock.example", "https://www.w3.org/TR/PNG/iso_88591.txt", "p://txt2html.sourceforge.net/invalidName.txt"};
Expand Down

0 comments on commit 8e876e4

Please sign in to comment.