Package teammates.jdo

Examples of teammates.jdo.Course


   * @throws CourseDoesNotExistException
   *             if the course with the specified ID cannot be found
   */
  public void deleteCoordinatorCourse(String courseID) throws CourseDoesNotExistException {
    // Check that the course exists
    Course course = getCourse(courseID);
   
    if(course == null) {
      throw new CourseDoesNotExistException();
    }

View Full Code Here


  /*---------------------------------------------------HELPER FUNCTION---------------------------------------------------*/
  private void setupTestData() {
    pm = Datastore.getPersistenceManager();
    //create course
    Course a = new Course(COURSE_ID, "Testing Course", "teammates.coord");
    pm.makePersistent(a);
    //create evaluation
    Evaluation eval = new Evaluation(COURSE_ID, "Testing Course", "instructions", true, new Date(), new Date(), 8, 5);
    pm.makePersistent(eval);
   
View Full Code Here

   
    Datastore.initialize();
    pm = Datastore.getPersistenceManager();
   
    //initial data
    Course a = new Course("MA1010", "test", "teammates.coord");
    Course b = new Course("CS1101", "Programming Methodology", "teammates.coord");
    Course c = new Course("CS1231", "Programming Methodology", "teammates.coord");
   
    inputList.add(a);
    inputList.add(b);
    inputList.add(c);
   
View Full Code Here

    List<Course> courseList = courses.getCoordinatorCourseList("teammates.coord");
    assertEquals(inputList.size(), courseList.size());
   
    for(int i = 0; i < courseList.size(); i++) {
     
      Course expected = inputList.get(inputList.indexOf(courseList.get(i)));
      Course actual = courseList.get(i);
      assertEquals(expected.getID(), actual.getID());
      assertEquals(expected.getName(), actual.getName());
      assertEquals(expected.getCoordinatorID(), actual.getCoordinatorID());
     
    }
  }
View Full Code Here

    helper.tearDown();
  }

  @Test
  public void simpleJdo() {
    Course a = new Course("cs1010", "test", "teammates.coord");
    Course b = new Course("CS1101", "Programming Methodology", "teammates.coord");

    Datastore.initialize();
    PersistenceManager pm = Datastore.getPersistenceManager();
    pm.makePersistent(a);
    pm.makePersistent(b);
View Full Code Here

TOP

Related Classes of teammates.jdo.Course

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.