Skip to content

Commit

Permalink
Preferences need to be set for the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Oct 15, 2015
1 parent 1db1f94 commit 5ac1d9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/net/sf/jabref/bst/TestVM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.sf.jabref.bst;

import net.sf.jabref.Globals;
import net.sf.jabref.JabRefPreferences;
import net.sf.jabref.model.entry.BibtexEntry;
import net.sf.jabref.bst.VM.BstEntry;
import net.sf.jabref.bst.VM.StackFunction;
Expand All @@ -8,6 +10,7 @@

import org.antlr.runtime.RecognitionException;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.io.File;
Expand All @@ -18,6 +21,12 @@

public class TestVM {

@Before
public void setPreferences() {
Globals.prefs = JabRefPreferences.getInstance();
}


@Test
public void testAbbrv() throws RecognitionException, IOException {
VM vm = new VM(new File("src/test/resources/net/sf/jabref/bst/abbrv.bst"));
Expand Down

0 comments on commit 5ac1d9d

Please sign in to comment.