From 2eb4636befbf1026360194b82368afab46594dfb Mon Sep 17 00:00:00 2001 From: Stefan Kolb Date: Thu, 19 Nov 2015 12:19:48 +0100 Subject: [PATCH] Rename test methods --- .../sf/jabref/model/entry/BibtexEntryTests.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/test/java/net/sf/jabref/model/entry/BibtexEntryTests.java b/src/test/java/net/sf/jabref/model/entry/BibtexEntryTests.java index b1425ad7dc4..ae9b92d688b 100644 --- a/src/test/java/net/sf/jabref/model/entry/BibtexEntryTests.java +++ b/src/test/java/net/sf/jabref/model/entry/BibtexEntryTests.java @@ -13,10 +13,6 @@ import java.util.List; public class BibtexEntryTests { - - private BibtexEntry entry; - - @Before public void setup() { Globals.prefs = JabRefPreferences.getInstance(); @@ -24,12 +20,11 @@ public void setup() { @Test public void testDefaultConstructor() { - entry = new BibtexEntry(); + BibtexEntry entry = new BibtexEntry(); } @Test public void testGetPublicationDate() { - Assert.assertEquals("2003-02", (BibtexParser.singleFromString("@ARTICLE{HipKro03, year = {2003}, month = #FEB# }")) .getPublicationDate()); @@ -49,11 +44,10 @@ public void testGetPublicationDate() { Assert.assertEquals("2003-12", (BibtexParser.singleFromString("@ARTICLE{HipKro03, year = {03}, month = #DEC# }")) .getPublicationDate()); - } @Test - public void testAllFieldsPresentDefault() { + public void allFieldsPresentDefault() { BibtexEntry e = new BibtexEntry("id", BibtexEntryTypes.ARTICLE); e.setField("author", "abc"); e.setField("title", "abc"); @@ -69,7 +63,7 @@ public void testAllFieldsPresentDefault() { } @Test - public void testAllFieldsPresentOr() { + public void allFieldsPresentOr() { BibtexEntry e = new BibtexEntry("id", BibtexEntryTypes.ARTICLE); e.setField("author", "abc"); e.setField("title", "abc"); @@ -85,7 +79,7 @@ public void testAllFieldsPresentOr() { } @Test - public void testhasAllRequiredFields() { + public void hasAllRequiredFields() { BibtexEntry e = new BibtexEntry("id", BibtexEntryTypes.ARTICLE); e.setField("author", "abc"); e.setField("title", "abc");