use of org.linkki.core.binding.LinkkiBindingException in project linkki by linkki-framework.
the class UITableColumnIntegrationTest method testSortable_ModelBindingThrowsException.
@Test
void testSortable_ModelBindingThrowsException() {
LinkkiBindingException exception = assertThrows(LinkkiBindingException.class, () -> {
GridComponentCreator.createGrid(new ModelBindingTablePmo(), new BindingContext());
});
assertThat(exception.getMessage(), containsString("Could not read ModelBindingRowPmo#getString"));
}
use of org.linkki.core.binding.LinkkiBindingException in project linkki by linkki-framework.
the class UITableColumnIntegrationTest method testSortable_NonComparableThrowsException.
@Test
void testSortable_NonComparableThrowsException() {
LinkkiBindingException exception = assertThrows(LinkkiBindingException.class, () -> {
GridComponentCreator.createGrid(new NonComparableTablePmo(), new BindingContext());
});
assertThat(exception.getMessage(), containsString("Cannot sort by NonComparableRowPmo#object as java.lang.Object does not implement Comparable"));
}
Aggregations