Package uk.ac.osswatch.simal.service

Examples of uk.ac.osswatch.simal.service.IReviewService.create()


  }
 
  @Test
  public void setSetProject() throws DuplicateURIException, SimalException {
    IReviewService service = SimalRepositoryFactory.getReviewService();
    IReview review = service.create("http://test.org/Review");
    review.setProject(project1);
   
    IProject project = review.getProject();
    assertEquals("Incorrectly setting the project", project1.getName(), project.getName());
    review.delete();
View Full Code Here


    IReviewService service = SimalRepositoryFactory.getReviewService();
    String id = service.getNewReviewID();
    String uri = RDFUtils.getDefaultReviewURI(id);
    IReview review;
    try {
      review = service.create(uri);
      review.setSimalID(id);
      populateReview(review, IReview.TYPE_OPENNESS);
    } catch (DuplicateURIException e) {
      throw new SimalRepositoryException("Unable to create a new review", e);
    }
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.