Skip to content

Instantly share code, notes, and snippets.

@batmi02
Created April 20, 2020 18:29
Show Gist options
  • Save batmi02/542479a401bb718cf7821325748afc3b to your computer and use it in GitHub Desktop.
Save batmi02/542479a401bb718cf7821325748afc3b to your computer and use it in GitHub Desktop.
List<Transaction> unsortedTransactions = transactionsTable.allData();
transactionsTable.headerUI().select("AMOUNT");
transactionsTable.assertThat()
.rows(hasItems(toArray(unsortedTransactions)))
.sortedBy((prev,next) -> prev.amount.value() < next.amount.value());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment