Package net.sf.jabref.export.layout

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


    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

  }
 
  public void testOrgSci(){
    LayoutFormatter f = new AuthorOrgSci();
   
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
    assertEquals("Garvin, D. A.", f.format("David A. Garvin"));
    assertEquals("Makridakis, S., S. C. Wheelwright, V. E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
   
  }
  public void testOrgSciPlusAbbreviation(){
View Full Code Here

 
  public void testOrgSci(){
    LayoutFormatter f = new AuthorOrgSci();
   
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
    assertEquals("Garvin, D. A.", f.format("David A. Garvin"));
    assertEquals("Makridakis, S., S. C. Wheelwright, V. E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
   
  }
  public void testOrgSciPlusAbbreviation(){
    LayoutFormatter f = new CompositeFormat(new AuthorOrgSci(), new NoSpaceBetweenAbbreviations());
View Full Code Here

  public void testOrgSci(){
    LayoutFormatter f = new AuthorOrgSci();
   
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
    assertEquals("Garvin, D. A.", f.format("David A. Garvin"));
    assertEquals("Makridakis, S., S. C. Wheelwright, V. E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
   
  }
  public void testOrgSciPlusAbbreviation(){
    LayoutFormatter f = new CompositeFormat(new AuthorOrgSci(), new NoSpaceBetweenAbbreviations());
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
View Full Code Here

    assertEquals("Makridakis, S., S. C. Wheelwright, V. E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
   
  }
  public void testOrgSciPlusAbbreviation(){
    LayoutFormatter f = new CompositeFormat(new AuthorOrgSci(), new NoSpaceBetweenAbbreviations());
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
    assertEquals("Garvin, D.A.", f.format("David A. Garvin"));
    assertEquals("Makridakis, S., S.C. Wheelwright, V.E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
  }
}
View Full Code Here

   
  }
  public void testOrgSciPlusAbbreviation(){
    LayoutFormatter f = new CompositeFormat(new AuthorOrgSci(), new NoSpaceBetweenAbbreviations());
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
    assertEquals("Garvin, D.A.", f.format("David A. Garvin"));
    assertEquals("Makridakis, S., S.C. Wheelwright, V.E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
  }
}
View Full Code Here

  }
  public void testOrgSciPlusAbbreviation(){
    LayoutFormatter f = new CompositeFormat(new AuthorOrgSci(), new NoSpaceBetweenAbbreviations());
    assertEquals("Flynn, J., S. Gartska", f.format("John Flynn and Sabine Gartska"));
    assertEquals("Garvin, D.A.", f.format("David A. Garvin"));
    assertEquals("Makridakis, S., S.C. Wheelwright, V.E. McGee", f.format("Sa Makridakis and Sa Ca Wheelwright and Va Ea McGee"));
  }
}
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.