Package net.sf.jabref.util

Examples of net.sf.jabref.util.XMPSchemaBibtex.addBagValue()


  public void testSetGetBagListString() throws IOException {

    XMPMetadata xmp = new XMPMetadata();
    XMPSchemaBibtex bibtex = new XMPSchemaBibtex(xmp);

    bibtex.addBagValue("author", "Tom DeMarco");
    bibtex.addBagValue("author", "Kent Beck");
    {

      List<String> l = bibtex.getBagList("author");
View Full Code Here


    XMPMetadata xmp = new XMPMetadata();
    XMPSchemaBibtex bibtex = new XMPSchemaBibtex(xmp);

    bibtex.addBagValue("author", "Tom DeMarco");
    bibtex.addBagValue("author", "Kent Beck");
    {

      List<String> l = bibtex.getBagList("author");

      assertEquals(2, l.size());
View Full Code Here

      List<String> l = bibtex.getBagList("author");
      assertEquals(1, l.size());
      assertTrue(l.get(0).equals("Tom DeMarco"));
    }
    { // Duplicates allowed!
      bibtex.addBagValue("author", "Tom DeMarco");
      List<String> l = bibtex.getBagList("author");
      assertEquals(2, l.size());
      assertTrue(l.get(0).equals("Tom DeMarco"));
      assertTrue(l.get(1).equals("Tom DeMarco"));
    }
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.