Exemplo n.º 1
0
  @Test
  public void testDynamicCount() {
    UserSearch search = new UserSearch();
    search.setFirstName("first_name_page");
    search.setLastName("last_name_page");
    search.setOrderBy("firstName");
    search.setSequance("desc");

    Long cnt = userMapper.count("dynamicFind", search);
    assertEquals(Long.valueOf(3), cnt);
  }
Exemplo n.º 2
0
  @Test
  public void testDynamicFind() {
    UserSearch search = new UserSearch();
    search.setFirstName("first_name_page");
    search.setLastName("last_name_page");
    search.setOrderBy("firstName");
    search.setSequance("desc");

    List<User> list = userMapper.find("dynamicFind", search);
    assertEquals(3, list.size());
  }