Revision 59309
Added by Alessia Bardi over 3 years ago
modules/dnet-collector-plugins/trunk/src/test/java/eu/dnetlib/data/collector/plugins/doiresolver/CrossrefResolverTest.java | ||
---|---|---|
33 | 33 |
System.out.println(record); |
34 | 34 |
} |
35 | 35 |
|
36 |
@Test |
|
37 |
public void testIsValid(){ |
|
38 |
String doi = "10.5281/zenodo.3980491"; |
|
39 |
Assert.assertTrue(resolver.isValid(doi)); |
|
40 |
} |
|
41 |
|
|
42 |
@Test |
|
43 |
public void testIsNotValid(){ |
|
44 |
String doi = "https://foo/paper.pdf"; |
|
45 |
Assert.assertFalse(resolver.isValid(doi)); |
|
46 |
} |
|
47 |
|
|
48 |
|
|
49 |
|
|
36 | 50 |
} |
Also available in: Unified diff
Test for DOI pattern