Package eu.planets_project.tb.impl

Examples of eu.planets_project.tb.impl.CommentManagerImpl


  /**
   * @param args
   */
  public static void main(String[] args) {
    CommentManagerImpl manager = CommentManagerImpl.getInstance();
    CommentImpl com1 = (CommentImpl)manager.getNewRootComment(1, "setup");
    Long lExpID = com1.getExperimentID();
    String sPhaseID = com1.getExperimentPhaseID();
    System.out.println("ID: "+lExpID+" Phase: "+sPhaseID);
   
  }
View Full Code Here


        jndiContext.lookup("testbed/CommentBrowser/remote"), CommentBrowserRemote.class);

      //create two test Comments, note their ID and persist them
      //new root comment with Comment(long lExperimentID, String sExperimentPhaseID)
      //please note: phaseID are not correct
      CommentManagerImpl manager = CommentManagerImpl.getInstance();
      CommentImpl com1 = (CommentImpl)manager.getNewRootComment(1, "setup");
      //Comment com1 = new Comment(1, "setup");
      //System.out.println("Contains? "+manager.containsComment(1));
      commentID1 = dao_r.persistComment(com1);
      CommentImpl find_com1 = dao_r.findComment(commentID1);
      manager.registerComment(find_com1, find_com1.getExperimentID(),find_com1.getExperimentPhaseID());
      System.out.println("XXXContains? "+manager.containsComment(commentID1));
     
      //new root comment
      CommentImpl com2 = (CommentImpl)manager.getNewRootComment(2, "evaluation");
      commentID2 = dao_r.persistComment(com2);
      CommentImpl find_com2 = dao_r.findComment(commentID2);
      manager.registerComment(find_com2, find_com2.getExperimentID(),find_com2.getExperimentPhaseID());
      System.out.println("XXXContains? "+manager.containsComment(commentID2));
     
     
    } catch (NamingException e) {
      //TODO integrate message into logging mechanism
      System.out.println("Setup: Exception in while setUp: "+e.toString());
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.CommentManagerImpl

Copyright © 2018 www.massapicom. 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.