Skip to content

Commit

Permalink
Adding DOI to test entry - fixes #5013 (#5014)
Browse files Browse the repository at this point in the history
* Adding DOI to test entry - fixes #5013

* add additional fields to TestEntry

* use 3 as issue in order not to break CSL tests
  • Loading branch information
matthiasgeiger authored May 31, 2019
1 parent ef2ebe1 commit f2530da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/jabref/logic/util/TestEntry.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.jabref.logic.util;

import java.util.Arrays;

import org.jabref.model.entry.BibEntry;
import org.jabref.model.entry.BibtexEntryTypes;
import org.jabref.model.entry.FieldName;
Expand All @@ -18,6 +20,7 @@ public static BibEntry getTestEntry() {
entry.setField(FieldName.TITLE, "Title of the test entry");
entry.setField(FieldName.NUMBER, "3");
entry.setField(FieldName.VOLUME, "34");
entry.setField(FieldName.ISSUE, "3");
entry.setField(FieldName.YEAR, "2016");
entry.setField(FieldName.PAGES, "45--67");
entry.setField(FieldName.MONTH, "July");
Expand All @@ -26,8 +29,15 @@ public static BibEntry getTestEntry() {
entry.setField(FieldName.PUBLISHER, "JabRef Publishing");
entry.setField(FieldName.ADDRESS, "Trondheim");
entry.setField(FieldName.URL, "https://github.com/JabRef");
entry.setField(FieldName.DOI, "10.1001/bla.blubb");
entry.setField(FieldName.ABSTRACT,
"This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger.");
entry.setField(FieldName.COMMENT, "Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et " +
"dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. " +
"Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non " +
"proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
entry.putKeywords(Arrays.asList("KeyWord1", "KeyWord2", "KeyWord3", "Keyword4"), ';');

return entry;
}

Expand Down

0 comments on commit f2530da

Please sign in to comment.