Skip to content

Commit

Permalink
improve tests, remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Oct 11, 2023
1 parent 38f0e19 commit d93fec4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ internal class JpaPolyflowViewServiceDataEntryITest {
assertThat(result.payload.elements.map { it.entryId }).containsExactly(id2, id, id4)
}

@Suppress("DEPRECATION")
@Test
fun `sort should be backwards compatible`() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,13 @@ internal class JpaPolyflowViewServiceTaskITest {
sort = listOf()
))

val sortWithSortNutSuppliedQuery = jpaPolyflowViewService.query(AllTasksWithDataEntriesQuery())
val sortWithSortNotSuppliedQuery = jpaPolyflowViewService.query(AllTasksWithDataEntriesQuery())

assertThat(sortWithEmptyStringQuery.elements).isEqualTo(sortWithSortNutSuppliedQuery.elements)
assertThat(sortWithSortNutSuppliedQuery.elements).isEqualTo(sortWithEmptyListQuery.elements)
assertThat(sortWithEmptyListQuery.elements).isEqualTo(sortWithEmptyStringQuery.elements)
assertThat(sortWithSortNutSuppliedQuery.elements).isEqualTo(sortWithEmptyStringQuery.elements)

assertThat(sortWithNullQuery.elements).isEqualTo(sortWithEmptyStringQuery.elements)
assertThat(sortWithEmptyStringQuery.elements).isEqualTo(sortWithEmptyListQuery.elements)
assertThat(sortWithEmptyListQuery.elements).isEqualTo(sortWithSortNotSuppliedQuery.elements)
assertThat(sortWithSortNotSuppliedQuery.elements).isEqualTo(sortWithNullQuery.elements)
}

@Test
Expand Down

0 comments on commit d93fec4

Please sign in to comment.