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

Examples of net.sf.jabref.export.layout.format.AuthorAbbreviator.format()


  public void testFormat() {

    LayoutFormatter a = new AuthorLastFirstAbbreviator();
    LayoutFormatter b = new AuthorAbbreviator();

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


    LayoutFormatter a = new AuthorLastFirstAbbreviator();
    LayoutFormatter b = new AuthorAbbreviator();

    assertEquals(b.format(""), a.format(""));
    assertEquals(b.format("Someone, Van Something"), a.format("Someone, Van Something"));
    assertEquals(b.format("Smith, John"), a.format("Smith, John"));
    assertEquals(b.format("von Neumann, John and Smith, John and Black Brown, Peter"), a
      .format("von Neumann, John and Smith, John and Black Brown, Peter"));

  }
View Full Code Here

    LayoutFormatter a = new AuthorLastFirstAbbreviator();
    LayoutFormatter b = new AuthorAbbreviator();

    assertEquals(b.format(""), a.format(""));
    assertEquals(b.format("Someone, Van Something"), a.format("Someone, Van Something"));
    assertEquals(b.format("Smith, John"), a.format("Smith, John"));
    assertEquals(b.format("von Neumann, John and Smith, John and Black Brown, Peter"), a
      .format("von Neumann, John and Smith, John and Black Brown, Peter"));

  }
View Full Code Here

    LayoutFormatter b = new AuthorAbbreviator();

    assertEquals(b.format(""), a.format(""));
    assertEquals(b.format("Someone, Van Something"), a.format("Someone, Van Something"));
    assertEquals(b.format("Smith, John"), a.format("Smith, John"));
    assertEquals(b.format("von Neumann, John and Smith, John and Black Brown, Peter"), a
      .format("von Neumann, John and Smith, John and Black Brown, Peter"));

  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.