Skip to content

Commit f2530da

Browse files
Adding DOI to test entry - fixes #5013 (#5014)
* Adding DOI to test entry - fixes #5013 * add additional fields to TestEntry * use 3 as issue in order not to break CSL tests
1 parent ef2ebe1 commit f2530da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/jabref/logic/util/TestEntry.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.jabref.logic.util;
22

3+
import java.util.Arrays;
4+
35
import org.jabref.model.entry.BibEntry;
46
import org.jabref.model.entry.BibtexEntryTypes;
57
import org.jabref.model.entry.FieldName;
@@ -18,6 +20,7 @@ public static BibEntry getTestEntry() {
1820
entry.setField(FieldName.TITLE, "Title of the test entry");
1921
entry.setField(FieldName.NUMBER, "3");
2022
entry.setField(FieldName.VOLUME, "34");
23+
entry.setField(FieldName.ISSUE, "3");
2124
entry.setField(FieldName.YEAR, "2016");
2225
entry.setField(FieldName.PAGES, "45--67");
2326
entry.setField(FieldName.MONTH, "July");
@@ -26,8 +29,15 @@ public static BibEntry getTestEntry() {
2629
entry.setField(FieldName.PUBLISHER, "JabRef Publishing");
2730
entry.setField(FieldName.ADDRESS, "Trondheim");
2831
entry.setField(FieldName.URL, "https://github.com/JabRef");
32+
entry.setField(FieldName.DOI, "10.1001/bla.blubb");
2933
entry.setField(FieldName.ABSTRACT,
3034
"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.");
35+
entry.setField(FieldName.COMMENT, "Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et " +
36+
"dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. " +
37+
"Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non " +
38+
"proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
39+
entry.putKeywords(Arrays.asList("KeyWord1", "KeyWord2", "KeyWord3", "Keyword4"), ';');
40+
3141
return entry;
3242
}
3343

0 commit comments

Comments
 (0)