Package com.apps.services

Examples of com.apps.services.UBCCourseSpiderService


public class UBCCourseSpiderServiceTest {

  @Test
  public void test() { 
    UBCCourseSpiderService ucs = UBCCourseSpiderServiceFactory.getUBCCourseSpiderService();
   
   
   
    assertTrue((ucs.getBooks(ucs.getSections(ucs.getCourses(ucs.getDepartments().get(0)).get(0)).get(0)).get(0)).getTitle().equals("Adhe 327 Ccm Eplt / Eplt"));
 
 
 
  }
View Full Code Here


import com.apps.services.UBCCourseSpiderService;

public class UBCCourseSpiderServiceFactory {
 
  public static UBCCourseSpiderService getUBCCourseSpiderService(){
    return new UBCCourseSpiderService();
  }
View Full Code Here

   
   
   
    UBCCourseSpiderDatastore usd = new UBCCourseSpiderDatastore();
    usd.initSchema();
    UBCCourseSpiderService ucs = new UBCCourseSpiderService();
   
    for(DepartmentInformationObject i : ucs.getDepartments()){
      usd.addDepartment(i);
    }
   
    for(CourseInformationObject i : ucs.getCourses(usd.getDepartmentList().get(5))){
      usd.addCourse(i);
    }
   
    for(SectionInformationObject i : ucs.getSections(usd.getCourseList().get(0))){
      usd.addSection(i);
    }
   
    for(BookInformationObject i : ucs.getBooks(usd.getSectionList().get(0))){
      usd.addBooks(i);
    }
   
   
    System.out.println(usd.getDepartmentList().get(0).getDepartmentId());
View Full Code Here

TOP

Related Classes of com.apps.services.UBCCourseSpiderService

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.