Skip to content

Commit

Permalink
Unit test update...
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverDav committed Jul 26, 2023
1 parent ef33dc0 commit 81b7221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public abstract class AbstractFormsOnlineIT {
static final String DYNAMIC_DATA_INSTANCE_ID = "formsOnline26";
static final String DEFAULT_INSTANCE_ID = "formsOnline100";

static final String ORDERBY_DEFAULT = "name";

static final String VALIDATOR_ID_29 = "29";
static final String VALIDATOR_ID_30 = "30";
static final String VALIDATOR_ID_31 = "31";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ private FormDetail getFormDetailExpectedResult() {
*/
@Test
public void testFindAllForms() throws Exception {
List<FormDetail> result = dao.findAllForms(DEFAULT_INSTANCE_ID);
List<FormDetail> result = dao.findAllForms(DEFAULT_INSTANCE_ID,ORDERBY_DEFAULT);
assertThat(result.size(), is(2));
}

@Test
public void testDeleteForm() throws Exception {
List<FormDetail> result = dao.findAllForms(DEFAULT_INSTANCE_ID);
List<FormDetail> result = dao.findAllForms(DEFAULT_INSTANCE_ID,ORDERBY_DEFAULT);
assertThat(result.size(), is(2));
final FormPK formPk = result.iterator().next().getPK();
Transaction.performInOne(() -> {
Expand All @@ -200,7 +200,7 @@ public void testDeleteForm() throws Exception {
}
return dao.deleteForm(formPk);
});
result = dao.findAllForms(DEFAULT_INSTANCE_ID);
result = dao.findAllForms(DEFAULT_INSTANCE_ID,ORDERBY_DEFAULT);
assertThat(result.size(), is(1));
}

Expand Down

0 comments on commit 81b7221

Please sign in to comment.