Package eu.planets_project.tb.impl.model

Examples of eu.planets_project.tb.impl.model.BasicPropertiesImpl.addLiteratureReference()


    assertEquals(0,props.getAllLiteratureReferences().size());

    //Test2:
    String sTitle = "Digital Long Term Preservation";
    String sURI = "ISBN: 20-323-3233";
    props.addLiteratureReference(sTitle, sURI);
    List<String[]> refs = props.getAllLiteratureReferences();

    Iterator<String[]> itElement = refs.iterator();
    while(itElement.hasNext()){
      String[] element = itElement.next();
View Full Code Here


    }

    //Test3:
    String sTitle2 = "Digital Long Term Preservation2";
    String sURI2 = "ISBN: 20-323-3233";
    props.addLiteratureReference(sTitle2, sURI2);
    //Element should have been added:
    assertEquals(2,props.getAllLiteratureReferences().size());
   
    props.addLiteratureReference(sTitle2, sURI2);
    //Duplicate element should not have been added:
View Full Code Here

    String sURI2 = "ISBN: 20-323-3233";
    props.addLiteratureReference(sTitle2, sURI2);
    //Element should have been added:
    assertEquals(2,props.getAllLiteratureReferences().size());
   
    props.addLiteratureReference(sTitle2, sURI2);
    //Duplicate element should not have been added:
    assertEquals(2,props.getAllLiteratureReferences().size());

    //Test4:
    String sTitle3 = "Comic Book";
View Full Code Here

    assertEquals(2,props.getAllLiteratureReferences().size());

    //Test4:
    String sTitle3 = "Comic Book";
    String sURI3 = "ISBN: 111111";
    props.addLiteratureReference(sTitle3, sURI3);
    //Element should not have been added:
    assertEquals(3,props.getAllLiteratureReferences().size());
   
    props.removeLiteratureReference(sTitle,sURI);
    assertEquals(2,props.getAllLiteratureReferences().size());
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.