Package org.apache.mahout.cf.taste.common

Examples of org.apache.mahout.cf.taste.common.Refreshable


public final class RefreshHelperTest extends TasteTestCase {

  @Test
  public void testCallable() {
    MockRefreshable mock = new MockRefreshable();
    Refreshable helper = new RefreshHelper(mock);
    helper.refresh(null);
    assertEquals(1, mock.getCallCount());
  }
View Full Code Here


    assertEquals(1, mock.getCallCount());
  }

  @Test
  public void testNoCallable() {
    Refreshable helper = new RefreshHelper(null);
    helper.refresh(null);
  }
View Full Code Here

public final class RefreshHelperTest extends TasteTestCase {

  @Test
  public void testCallable() {
    MockRefreshable mock = new MockRefreshable();
    Refreshable helper = new RefreshHelper(mock);
    helper.refresh(null);
    assertEquals(1, mock.getCallCount());
  }
View Full Code Here

    assertEquals(1, mock.getCallCount());
  }

  @Test
  public void testNoCallable() {
    Refreshable helper = new RefreshHelper(null);
    helper.refresh(null);
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.cf.taste.common.Refreshable

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.