Examples of PagedDataRows


Examples of org.springframework.springfaces.page.model.PagedDataRows

  @Test
  @SuppressWarnings("rawtypes")
  public void shouldDefaultToNullSortAscending() throws Exception {
    this.uiPagedData.encodeEnd(this.context);
    PagedDataRows rows = (PagedDataRows) this.requestMap.get("pagedData");
    assertThat(this.uiPagedData.getSortAscending(), is(nullValue()));
    assertThat(rows.isSortAscending(), is(true));
  }
View Full Code Here

Examples of org.springframework.springfaces.page.model.PagedDataRows

  @Test
  @SuppressWarnings("rawtypes")
  public void shouldPassSortAscendingToDataRows() throws Exception {
    this.uiPagedData.setSortAscending(false);
    this.uiPagedData.encodeEnd(this.context);
    PagedDataRows rows = (PagedDataRows) this.requestMap.get("pagedData");
    assertThat(rows.isSortAscending(), is(false));
  }
View Full Code Here

Examples of org.springframework.springfaces.page.model.PagedDataRows

  @Test
  @SuppressWarnings("rawtypes")
  public void shouldFailIfNullReturnedFromValueExpression() throws Exception {
    this.uiPagedData.setValueExpression("value", mockExpression(null));
    this.uiPagedData.encodeEnd(this.context);
    PagedDataRows rows = (PagedDataRows) this.requestMap.get("pagedData");
    rows.setRowIndex(0);
    this.thrown.expect(IllegalStateException.class);
    this.thrown.expectMessage("UIPageData value returned null result");
    rows.getRowData();
  }
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.