Skip to content

Commit

Permalink
Fix field sorting in BibEntryWriterTest to match the desired order of…
Browse files Browse the repository at this point in the history
… the new serialization
  • Loading branch information
lenhard committed Dec 22, 2015
1 parent b63d6ac commit 622d06a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/net/sf/jabref/bibtex/BibEntryWriterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public void testSerialization() throws IOException {
String expected = Globals.NEWLINE + Globals.NEWLINE + "@Article{," + Globals.NEWLINE +
" author = {Foo Bar}," + Globals.NEWLINE +
" journal = {International Journal of Something}," + Globals.NEWLINE +
" note = {some note}," + Globals.NEWLINE +
" number = {1}" + Globals.NEWLINE +
" number = {1}," + Globals.NEWLINE +
" note = {some note}" + Globals.NEWLINE +
"}";
// @formatter:on

Expand Down Expand Up @@ -171,8 +171,8 @@ public void roundTripWithModification() throws IOException {
String expected = Globals.NEWLINE + Globals.NEWLINE + "@Article{test," + Globals.NEWLINE +
" author = {BlaBla}," + Globals.NEWLINE +
" journal = {International Journal of Something}," + Globals.NEWLINE +
" note = {some note}," + Globals.NEWLINE +
" number = {1}" + Globals.NEWLINE +
" number = {1}," + Globals.NEWLINE +
" note = {some note}" + Globals.NEWLINE +
"}";
// @formatter:on
assertEquals(expected, actual);
Expand Down Expand Up @@ -217,8 +217,8 @@ public void roundTripWithCamelCasingInTheOriginalEntryAndResultInLowerCase() thr
String expected = Globals.NEWLINE + Globals.NEWLINE + "@Article{test," + Globals.NEWLINE +
" author = {BlaBla}," + Globals.NEWLINE +
" journal = {International Journal of Something}," + Globals.NEWLINE +
" note = {some note}," + Globals.NEWLINE +
" number = {1}," + Globals.NEWLINE +
" note = {some note}," + Globals.NEWLINE +
" howpublished = {asdf}" + Globals.NEWLINE +
"}";
// @formatter:on
Expand Down

0 comments on commit 622d06a

Please sign in to comment.