Package net.sf.jabref.export.layout

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


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


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

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

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

  public void testFormat() {
    LayoutFormatter a = new AuthorLastFirst();

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

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

    // Two names
View Full Code Here

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

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

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

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

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

    // Three names
    assertEquals("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

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

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

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

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

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

}
View Full Code Here

  public void testFormat() {
   
    LayoutFormatter f = new HTMLParagraphs();
   
    assertEquals("", f.format(""));
    assertEquals("<p>\nHello\n</p>", f.format("Hello"));
    assertEquals("<p>\nHello\nWorld\n</p>", f.format("Hello\nWorld"));
    assertEquals("<p>\nHello World\n</p>\n<p>\nWhat a lovely day\n</p>", f.format("Hello World\n   \nWhat a lovely day\n"));
    assertEquals("<p>\nHello World\n</p>\n<p>\nCould not be any better\n</p>\n<p>\nWhat a lovely day\n</p>", f.format("Hello World\n \n\nCould not be any better\n\nWhat a lovely day\n"));
   
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.