File tree 2 files changed +5
-5
lines changed
main/java/org/jabref/logic/importer/util
test/java/org/jabref/logic/net
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import org .jabref .logic .util .URLUtil ;
10
10
import org .jabref .model .entry .LinkedFile ;
11
+
11
12
import org .slf4j .Logger ;
12
13
import org .slf4j .LoggerFactory ;
13
14
14
15
public class FileFieldParser {
15
16
private static final Logger LOGGER = LoggerFactory .getLogger (FileFieldParser .class );
17
+ private static final String HTTP_PREFIX = "http://" ;
18
+ private static final String HTTPS_PREFIX = "https://" ;
16
19
17
20
private final String value ;
18
21
19
22
private StringBuilder charactersOfCurrentElement ;
20
23
21
24
private boolean windowsPath ;
22
- private static final String HTTP_PREFIX = "http://" ;
23
- private static final String HTTPS_PREFIX = "https://" ;
24
25
25
26
public FileFieldParser (String value ) {
26
27
if (value == null ) {
Original file line number Diff line number Diff line change 4
4
import java .net .URL ;
5
5
6
6
import org .jabref .logic .util .URLUtil ;
7
-
8
- import org .junit .jupiter .api .Test ;
9
-
10
7
import static org .junit .jupiter .api .Assertions .assertEquals ;
11
8
import static org .junit .jupiter .api .Assertions .assertFalse ;
12
9
import static org .junit .jupiter .api .Assertions .assertTrue ;
10
+ import org .junit .jupiter .api .Test ;
13
11
14
12
class URLUtilTest {
15
13
@@ -88,6 +86,7 @@ void createUriShouldHandlePipeCharacter() {
88
86
URI uri = URLUtil .createUri (input );
89
87
assertEquals ("http://example.com/test%7Cfile" , uri .toString ());
90
88
}
89
+
91
90
@ Test
92
91
void createShouldHandleRelativeURLs () throws Exception {
93
92
URL relativeUrl = URLUtil .create ("www.example.com" );
You can’t perform that action at this time.
0 commit comments