Skip to content

Commit

Permalink
Rename test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Nov 19, 2015
1 parent 1d0ff1f commit 2eb4636
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/test/java/net/sf/jabref/model/entry/BibtexEntryTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,18 @@
import java.util.List;

public class BibtexEntryTests {

private BibtexEntry entry;


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

@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());
Expand All @@ -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");
Expand All @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 2eb4636

Please sign in to comment.