Package net.sf.jabref.export.layout

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


    assertEquals("", layout.format("\\dag"));
    assertEquals("", layout.format("\\ddag"));
    assertEquals("", layout.format("\\S")); // �
    assertEquals("", layout.format("\\P")); // �
    assertEquals("", layout.format("\\copyright")); // �
    assertEquals("", layout.format("\\pounds")); // �
  }
}
View Full Code Here


  }

  public void testFormat() throws URISyntaxException {
    LayoutFormatter pdf = new ResolvePDF();

    assertEquals("", pdf.format(""));
   
    /*
     * Check one that will be found
     */
    String result = pdf.format("Organization Science\\HipKro03 - Hello.pdf");
View Full Code Here

    assertEquals("", pdf.format(""));
   
    /*
     * Check one that will be found
     */
    String result = pdf.format("Organization Science\\HipKro03 - Hello.pdf");
    assertTrue(result.startsWith("file:/"));
   
    assertTrue(result.endsWith("/Organization%20Science/HipKro03%20-%20Hello.pdf"));
   
    // Should not contain a backslash:
View Full Code Here

    assertTrue(new File(new URI(result)).exists());
   
    /*
     * And one that is not to be found
     */
    result = pdf.format("Organization Science/Does not exist.pdf");
    assertEquals("Organization Science/Does not exist.pdf", result);
  }
}
View Full Code Here

   */
  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
View Full Code Here

      // 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 AuthorLastFirstOxfordCommas();

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

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

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