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

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


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

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

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

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

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

      assertEquals("von Neumann, J., Smith, J. and Black Brown, P.", 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.AuthorLastFirstAbbrCommas

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.