Skip to content

Commit

Permalink
Fix methodname ... agian ...
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 23, 2024
1 parent 7c404ce commit 86de2c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/org/jabref/model/entry/identifier/SSRNTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ private static Stream<Arguments> provideTestData() {
@ParameterizedTest
@MethodSource("provideTestData")
public void acceptCorrectSSRNAbstracts(boolean findInText, String input) {
assertEquals("4904445", new SSRN(input).getNormalized());
assertEquals("4904445", new SSRN(input).asString());
Optional<SSRN> parsed = SSRN.parse(input);

if (findInText) {
assertTrue(parsed.isPresent());
assertEquals("4904445", parsed.get().getNormalized());
assertEquals("4904445", parsed.get().asString());
} else {
assertTrue(parsed.isEmpty());
}
Expand All @@ -50,12 +50,12 @@ public void acceptCorrectSSRNAbstracts(boolean findInText, String input) {
public void findInText() {
Optional<SSRN> parsed = SSRN.parse("The example paper (https://ssrn.com/abstract=4904445) should be found within this text");
assertTrue(parsed.isPresent());
assertEquals("4904445", parsed.get().getNormalized());
assertEquals("4904445", parsed.get().asString());
}

@Test
public void identifierNormalisation() {
assertEquals("123456", new SSRN(123456).getNormalized());
assertEquals("123456", new SSRN(123456).asString());
}

@Test
Expand Down

0 comments on commit 86de2c0

Please sign in to comment.