CFEngine API

org.recommender.test
Class GetRecommendationsTest

java.lang.Object
  |
  +--org.recommender.test.GetRecommendationsTest

public class GetRecommendationsTest
extends java.lang.Object

Test for getRecommendations()

Author:
Yun Wang

Constructor Summary
GetRecommendationsTest(CFEngine s)
           
 
Method Summary
 int fiftyItemTest(int user)
          fiftyItemTest() Get 50 item, compare with predicted value and the one in DB
 int illegalParamTest()
          illegalParamTest() 1.
 int multiUserTest1()
          multiUserTest1() Test 5 users for 10 recommendations: 1.
 int multiUserTest2()
          multiUserTest2() Test 5 users for 20 recommendations: 1.
 int multiUserTest3()
          multiUserTest3() Test 5 users for 50 recommendations: 1.
 int tenItemTest(int user)
          tenItemTest() Get 10 item, compare with predicted value and the one in DB
 void testSeq()
          testSeq()
 int twentyItemTest(int user)
          twentyItemTest() Get 20 item, compare with predicted value and the one in DB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRecommendationsTest

public GetRecommendationsTest(CFEngine s)
Method Detail

tenItemTest

public int tenItemTest(int user)
tenItemTest() Get 10 item, compare with predicted value and the one in DB

Returns:
int

twentyItemTest

public int twentyItemTest(int user)
twentyItemTest() Get 20 item, compare with predicted value and the one in DB

Returns:
int

fiftyItemTest

public int fiftyItemTest(int user)
fiftyItemTest() Get 50 item, compare with predicted value and the one in DB

Returns:
int

multiUserTest1

public int multiUserTest1()
multiUserTest1() Test 5 users for 10 recommendations: 1. from offset 0 2. from offset 50

Returns:
int

multiUserTest2

public int multiUserTest2()
multiUserTest2() Test 5 users for 20 recommendations: 1. from offset 10 2. from offset 100

Returns:
int

multiUserTest3

public int multiUserTest3()
multiUserTest3() Test 5 users for 50 recommendations: 1. from offset 50 2. from offset 290

Returns:
int

illegalParamTest

public int illegalParamTest()
illegalParamTest() 1. item < 1 and item > maxItem 2. user < 1 and user > maxUser 3. offset < 0


testSeq

public void testSeq()
testSeq()


CFEngine API

Copyright © 2003 - Oregon State University www.orst.edu