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

Examples of org.apache.mahout.cf.taste.common.Refreshable.refresh()


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

  @Test
  public void testNoCallable() {
View Full Code Here


  }

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

  @Test
  public void testDependencies() {
    RefreshHelper helper = new RefreshHelper(null);
View Full Code Here

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

  @Test
  public void testNoCallable() {
View Full Code Here

  }

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

  @Test
  public void testDependencies() {
    RefreshHelper helper = new RefreshHelper(null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.