Ejemplo n.º 1
0
  @Test
  public void api_can_search_with_default_search_order() throws Exception {
    // given
    createActivityWithVariables();

    // when
    final ItemSearchResult<TaskItem> searchResultWithNoOrder =
        apiTask.runSearch(0, 1, null, null, null, null, null);

    // then
    assertThat(searchResultWithNoOrder)
        .as("should be able to search with default search order")
        .isNotNull();
  }
Ejemplo n.º 2
0
 @Override
 public void consoleTestSetUp() throws Exception {
   apiTask = new APITask();
   apiTask.setCaller(
       getAPICaller(TestUserFactory.getJohnCarpenter().getSession(), "API/bpm/task"));
 }