Package recommender.impl.test.util

Examples of recommender.impl.test.util.DummyRecommenderImpl


    final DBLogic<DummyRecommendationEntity, DummyRecommendationResult> dbLogic = new DummyDBLogic<DummyRecommendationEntity, DummyRecommendationResult>();
   
    // create dummy recommenders
    final List<RecommenderConnector<DummyRecommendationEntity, DummyRecommendationResult>> recos = new ArrayList<RecommenderConnector<DummyRecommendationEntity, DummyRecommendationResult>>(NROFRECOS);
    for (int i = 0; i < NROFRECOS; i++) {
      final DummyRecommenderImpl reco = new DummyRecommenderImpl();
      reco.setWait(MSTOWAIT);
      reco.setId(Integer.valueOf(i));
      recos.add(reco);
    }
   
    /*
     * create recommender counter which counts the number of recommenders
View Full Code Here


  /**
   * tests if the query time out works
   */
  @Test
  public void testQueryTimeout() {
    final DummyRecommenderImpl reco = new DummyRecommenderImpl();
    multi.addRecommender(reco);
    reco.setWait(QUERY_TIMEOUT * 2);
    reco.setId(Integer.valueOf(1000));
   
    // query recommender
    multi.getRecommendationsForUser("", new DummyRecommendationEntity());
   
    // test
View Full Code Here

TOP

Related Classes of recommender.impl.test.util.DummyRecommenderImpl

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.