Package wicket.contrib.phonebook

Examples of wicket.contrib.phonebook.QueryParam


  public Iterator<Contact> iterator(int first, int count)
  {
    SortParam sp = getSort();
    if (queryParam == null)
    {
      queryParam = new QueryParam(first, count, sp.getProperty(), sp.isAscending());
    }
    else
    {
      queryParam.setFirst(first);
      queryParam.setCount(count);
View Full Code Here


  protected void tearDown() throws Exception {
    EasyMock.verify(dao);
  }

  public void testFind() throws Exception {
    QueryParam qp = new QueryParam(0, 10, "foo", true);
    Contact contact = createMockContext();
    Iterator<Contact> expected = createContactResultList(contact);
    EasyMock.expect(dao.find(qp, contact)).andReturn(expected);
    EasyMock.replay(dao);
    ContactsDataProvider provider = new ContactsDataProvider(dao);
View Full Code Here

  }

  @Test
  public void testFind() throws Exception
  {
    QueryParam qp = new QueryParam(0, 10, "foo", true);
    Contact contact = createMockContext();
    Iterator<Contact> expected = createContactResultList(contact);
    EasyMock.expect(dao.find(qp, contact)).andReturn(expected);
    EasyMock.replay(dao);
    ContactsDataProvider provider = new ContactsDataProvider(dao);
View Full Code Here

  public Iterator<Contact> iterator(long first, long count)
  {
    SortParam<String> sp = getSort();
    if (queryParam == null)
    {
      queryParam = new QueryParam(first, count, sp.getProperty(), sp.isAscending());
    }
    else
    {
      queryParam.setFirst(first);
      queryParam.setCount(count);
View Full Code Here

TOP

Related Classes of wicket.contrib.phonebook.QueryParam

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.