testing DOI
This commit is contained in:
parent
af0cfb7ee8
commit
7104ccfbdc
1 changed files with 11 additions and 1 deletions
|
@ -10,11 +10,21 @@ public class DOITests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDOI() throws Exception {
|
public void testDOI() throws Exception {
|
||||||
StandardNumber doi = StandardNumber.getInstance("doi").set("10.1016/0032-3861(93)90481-o").normalize().verify();
|
StandardNumber doi = StandardNumber.getInstance("doi")
|
||||||
|
.set("10.1016/0032-3861(93)90481-o").normalize().verify();
|
||||||
assertEquals("10.1016/0032-3861(93)90481-o", doi.normalizedValue());
|
assertEquals("10.1016/0032-3861(93)90481-o", doi.normalizedValue());
|
||||||
assertEquals("http://doi.org/10.1016/0032-3861(93)90481-o", doi.format());
|
assertEquals("http://doi.org/10.1016/0032-3861(93)90481-o", doi.format());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testURL() throws Exception {
|
||||||
|
StandardNumber doi = StandardNumber.getInstance("doi")
|
||||||
|
.set("http://doi.org/10.1016/0032-3861(93)90481-o").normalize().verify();
|
||||||
|
assertEquals("10.1016/0032-3861(93)90481-o", doi.normalizedValue());
|
||||||
|
assertEquals("http://doi.org/10.1016/0032-3861(93)90481-o", doi.format());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testClone() throws Exception {
|
public void testClone() throws Exception {
|
||||||
StandardNumber doi = StandardNumber.getInstance("doi").set("10.1016/0032-3861(93)90481-o").normalize().verify();
|
StandardNumber doi = StandardNumber.getInstance("doi").set("10.1016/0032-3861(93)90481-o").normalize().verify();
|
||||||
|
|
Loading…
Reference in a new issue