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

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


public class DOICheckTest extends TestCase {

  public void testFormat() {
    LayoutFormatter lf = new DOICheck();

    assertEquals("", lf.format(""));
    assertEquals(null, lf.format(null));
   
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("10.1000/ISBN1-900512-44-0"));
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
View Full Code Here


  public void testFormat() {
    LayoutFormatter lf = new DOICheck();

    assertEquals("", lf.format(""));
    assertEquals(null, lf.format(null));
   
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("10.1000/ISBN1-900512-44-0"));
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://dx.doi.org/10.1000/ISBN1-900512-44-0"));
View Full Code Here

    LayoutFormatter lf = new DOICheck();

    assertEquals("", lf.format(""));
    assertEquals(null, lf.format(null));
   
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("10.1000/ISBN1-900512-44-0"));
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://dx.doi.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1000/ISBN1-900512-44-0", lf
View Full Code Here

    assertEquals("", lf.format(""));
    assertEquals(null, lf.format(null));
   
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("10.1000/ISBN1-900512-44-0"));
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://dx.doi.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://doi.acm.org/10.1000/ISBN1-900512-44-0"));
View Full Code Here

    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("10.1000/ISBN1-900512-44-0"));
    assertEquals("http://dx.doi.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://dx.doi.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://doi.acm.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1145/354401.354407", lf
      .format("http://doi.acm.org/10.1145/354401.354407"));
    assertEquals("http://dx.doi.org/10.1145/354401.354407", lf.format("10.1145/354401.354407"));
View Full Code Here

      .format("http://dx.doi.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://doi.acm.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1145/354401.354407", lf
      .format("http://doi.acm.org/10.1145/354401.354407"));
    assertEquals("http://dx.doi.org/10.1145/354401.354407", lf.format("10.1145/354401.354407"));

    // Does not work if the string does not start with a 10
    assertEquals("/10.1145/354401.354407", lf.format("/10.1145/354401.354407"));
View Full Code Here

    assertEquals("http://doi.acm.org/10.1000/ISBN1-900512-44-0", lf
      .format("http://doi.acm.org/10.1000/ISBN1-900512-44-0"));

    assertEquals("http://doi.acm.org/10.1145/354401.354407", lf
      .format("http://doi.acm.org/10.1145/354401.354407"));
    assertEquals("http://dx.doi.org/10.1145/354401.354407", lf.format("10.1145/354401.354407"));

    // Does not work if the string does not start with a 10
    assertEquals("/10.1145/354401.354407", lf.format("/10.1145/354401.354407"));

    // Obviously a wrong doi, but we still accept it.
View Full Code Here

    assertEquals("http://doi.acm.org/10.1145/354401.354407", lf
      .format("http://doi.acm.org/10.1145/354401.354407"));
    assertEquals("http://dx.doi.org/10.1145/354401.354407", lf.format("10.1145/354401.354407"));

    // Does not work if the string does not start with a 10
    assertEquals("/10.1145/354401.354407", lf.format("/10.1145/354401.354407"));

    // Obviously a wrong doi, but we still accept it.
    assertEquals("http://dx.doi.org/10", lf.format("10"));

    // Obviously a wrong doi, but we still accept it.
View Full Code Here

    // Does not work if the string does not start with a 10
    assertEquals("/10.1145/354401.354407", lf.format("/10.1145/354401.354407"));

    // Obviously a wrong doi, but we still accept it.
    assertEquals("http://dx.doi.org/10", lf.format("10"));

    // Obviously a wrong doi, but we still accept it.
    assertEquals("1", lf.format("1"));
  }
View Full Code Here

    // Obviously a wrong doi, but we still accept it.
    assertEquals("http://dx.doi.org/10", lf.format("10"));

    // Obviously a wrong doi, but we still accept it.
    assertEquals("1", lf.format("1"));
  }

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