Skip to content

Commit

Permalink
Fixed some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
taojing2002 committed Feb 11, 2022
1 parent 0316e89 commit 0dee14b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void testSetAndGetMetadata() throws Exception {
//System.out.println("the doi identifier is " + identifier);
String metadata = client.getMetadata(identifier);
assertTrue(metadata.contains(identifier));
assertTrue(metadata.contains("<title>unkown</title>"));
assertTrue(metadata.contains("<title>unknown</title>"));

try (InputStream is = getClass().getClassLoader().getResourceAsStream("test-files/input-two-osti-id.xml")) {
String newMetadata = OSTIElinkServiceTest.toString(is);
Expand All @@ -99,7 +99,7 @@ public void testSetAndGetMetadata() throws Exception {
Thread.sleep(1000);
metadata = client.getMetadata(identifier);
assertTrue(metadata.contains(identifier));
assertTrue(metadata.contains("<title>unkown</title>"));
assertTrue(metadata.contains("<title>unknown</title>"));
}

try (InputStream is = getClass().getClassLoader().getResourceAsStream("test-files/input-no-osti-id.xml")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void testNotify() throws Exception {
//System.out.println("the doi identifier is " + identifier);
String metadata = client.getMetadata(identifier);
assertTrue(metadata.contains(identifier));
assertTrue(metadata.contains("<title>unkown</title>"));
assertTrue(metadata.contains("<title>unknown</title>"));
//things should work and the error should be blank
assertTrue(agent.getError().equals(""));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public void testSetMetadata() throws Exception {
//System.out.println("the doi identifier is " + identifier);
String metadata = ostiService.getMetadata(identifier);
assertTrue(metadata.contains(identifier));
assertTrue(metadata.contains("<title>unkown</title>"));
assertTrue(metadata.contains("<title>unknown</title>"));

try (InputStream is = getClass().getClassLoader().getResourceAsStream("test-files/input-two-osti-id.xml")) {
String newMetadata = toString(is);
Expand All @@ -335,7 +335,7 @@ public void testSetMetadata() throws Exception {
}
metadata = ostiService.getMetadata(identifier);
assertTrue(metadata.contains(identifier));
assertTrue(metadata.contains("<title>unkown</title>"));
assertTrue(metadata.contains("<title>unknown</title>"));
}

try (InputStream is = getClass().getClassLoader().getResourceAsStream("test-files/input-no-osti-id.xml")) {
Expand Down

0 comments on commit 0dee14b

Please sign in to comment.