-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lookup entry types in enums (#5209)
* Fix lookup entry types in enums Make master work again!!! * fix checkstyle * fix checkstyle and fix type comparison to lower case * simplify remove generics
- Loading branch information
1 parent
4477a13
commit b00fc22
Showing
5 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ public interface EntryType { | |
String getName(); | ||
|
||
String getDisplayName(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/java/org/jabref/model/entry/EntryTypeFactoryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.jabref.model.entry; | ||
|
||
import org.jabref.model.entry.types.EntryType; | ||
import org.jabref.model.entry.types.EntryTypeFactory; | ||
import org.jabref.model.entry.types.IEEETranEntryType; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
public class EntryTypeFactoryTest { | ||
|
||
@Test | ||
public void testParseEntryTypePatent() { | ||
EntryType patent = IEEETranEntryType.Patent; | ||
assertEquals(patent, EntryTypeFactory.parse("patent")); | ||
} | ||
} |