Examples of addLiteratureReference()


Examples of eu.planets_project.tb.api.model.BasicProperties.addLiteratureReference()

        ArrayList<String> litRefAuthor = expBean.getLitRefAuthor();
        if (litRefDesc != null && !litRefDesc.equals("")) {
            for( int i = 0; i < litRefDesc.size(); i++ ) {
                if( ! "".equals(litRefDesc.get(i).trim()) &&
                        ! "".equals(litRefURI.get(i).trim()) )//author etc. can be empty
                    props.addLiteratureReference( litRefDesc.get(i).trim(),
                            litRefURI.get(i).trim(), litRefTitle.get(i).trim(), litRefAuthor.get(i).trim() );
            }
        }
        List<Long> refs = new ArrayList<Long>();
        if (expBean.getEref() != null && !expBean.getEref().equals("")) {
View Full Code Here

Examples of eu.planets_project.tb.api.model.BasicProperties.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

Examples of eu.planets_project.tb.api.model.BasicProperties.addLiteratureReference()

    }

    //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

Examples of eu.planets_project.tb.api.model.BasicProperties.addLiteratureReference()

    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

Examples of eu.planets_project.tb.api.model.BasicProperties.addLiteratureReference()

    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

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

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

    }

    //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

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

    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

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

    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.