Package net.sf.jabref.export.layout.format

Examples of net.sf.jabref.export.layout.format.AuthorFirstLastCommas


  /**
   * Test method for {@link net.sf.jabref.export.layout.format.AuthorFirstLastCommas#format(java.lang.String)}.
   */
  public void testFormat() {
    LayoutFormatter a = new AuthorFirstLastCommas();

    // Empty case
    assertEquals("", a.format(""));

    // Single Names
    assertEquals("Van Something Someone", a.format("Someone, Van Something"));

    // Two names
    assertEquals("John von Neumann and Peter Black Brown", a
      .format("John von Neumann and Peter Black Brown"));

    // Three names
    assertEquals("John von Neumann, John Smith and Peter Black Brown", a
      .format("von Neumann, John and Smith, John and Black Brown, Peter"));

    assertEquals("John von Neumann, John Smith and Peter Black Brown", a
      .format("John von Neumann and John Smith and Black Brown, Peter"));
  }
View Full Code Here

TOP

Related Classes of net.sf.jabref.export.layout.format.AuthorFirstLastCommas

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.