package net.sf.jabref.logic;

import net.sf.jabref.export.layout.format.CreateDocBookAuthors;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class AuthorListTest {

    @Test
    public void authorListTest() {
        String authorString = "Olaf von Nilsen, Jr.";
        AuthorList authorList = AuthorList.getAuthorList(authorString);
        for (int i = 0; i < authorList.size(); i++) {
            AuthorList.Author author = authorList.getAuthor(i);
            assertEquals("Jr.", author.getFirst());
            assertEquals("Olaf von Nilsen", author.getLast());
            assertEquals(null, author.getJr());
            assertEquals(null, author.getVon());
        }

        assertEquals("<author><firstname>Jr.</firstname><surname>Olaf von Nilsen</surname></author>", new CreateDocBookAuthors().format(authorString));
    }
}

@@ -34,63 +34,24 @@
 ort 
-net.sf.jabref.export.layout.format.CreateDocBookAuthors
+org.junit.Ignore
 ;%0Aim
@@ -149,16 +149,28 @@
 Test %7B%0A%0A
+    @Ignore%0A
     @Tes
@@ -476,19 +476,20 @@
 Equals(%22
-Jr.
+Olaf
 %22, autho
@@ -529,25 +529,16 @@
 Equals(%22
-Olaf von 
 Nilsen%22,
@@ -574,36 +574,37 @@
    assertEquals(
-null
+%22Jr.%22
 , author.getJr()
@@ -635,12 +635,13 @@
 als(
-null
+%22von%22
 , au
@@ -669,161 +669,8 @@
    %7D
-%0A%0A        assertEquals(%22%3Cauthor%3E%3Cfirstname%3EJr.%3C/firstname%3E%3Csurname%3EOlaf von Nilsen%3C/surname%3E%3C/author%3E%22, new CreateDocBookAuthors().format(authorString));
 %0A   

Fix and disable AuthorList test case