use of org.jabref.model.entry.Author in project jabref by JabRef.
the class MsBibAuthorTest method testGetNoMiddleName.
@Test
public void testGetNoMiddleName() {
Author author = new Author("Gustav", null, null, "Bach", null);
MsBibAuthor msBibAuthor = new MsBibAuthor(author);
assertEquals(null, msBibAuthor.getMiddleName());
}
use of org.jabref.model.entry.Author in project jabref by JabRef.
the class MsBibAuthorTest method testGetNoFirstName.
@Test
public void testGetNoFirstName() {
Author author = new Author(null, null, null, "Bach", null);
MsBibAuthor msBibAuthor = new MsBibAuthor(author);
assertEquals(null, msBibAuthor.getMiddleName());
}
use of org.jabref.model.entry.Author in project jabref by JabRef.
the class MsBibAuthorTest method testGetMiddleName.
@Test
public void testGetMiddleName() {
Author author = new Author("Gustav Peter Johann", null, null, "Bach", null);
MsBibAuthor msBibAuthor = new MsBibAuthor(author);
assertEquals("Peter Johann", msBibAuthor.getMiddleName());
}
use of org.jabref.model.entry.Author in project jabref by JabRef.
the class MsBibAuthorTest method testGetLastName.
@Test
public void testGetLastName() {
Author author = new Author("Gustav Peter Johann", null, null, "Bach", null);
MsBibAuthor msBibAuthor = new MsBibAuthor(author);
assertEquals("Bach", msBibAuthor.getLastName());
}
use of org.jabref.model.entry.Author in project jabref by JabRef.
the class MsBibAuthorTest method testGetFirstName.
@Test
public void testGetFirstName() {
Author author = new Author("Gustav Peter Johann", null, null, "Bach", null);
MsBibAuthor msBibAuthor = new MsBibAuthor(author);
assertEquals("Gustav", msBibAuthor.getFirstName());
}
Aggregations