Package net.sf.jabref.export.layout

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


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

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

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


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

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

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

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

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

}
View Full Code Here

  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

   */
  public void testFormat() {
    LayoutFormatter a = new AuthorFirstLastOxfordCommas();

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

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

    // Two names
View Full Code Here

    // 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"));
View Full Code Here

    // 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"));
View Full Code Here

    // 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
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.