tKw
01/08/2019, 1:28 AMfun getAllActiveWidgetsByPrice(db: DatabaseConnection): List<Widgets> = db.query {
Widgets.select {
Widgets.active eq true
}.orderBy(Widget.price).map { toWidget(it) }
}
Could we verify that Widgets.select
is called?
Could we verify that we pass a lambda with Widgets.active eq true
to Widgets.select
?
I feel like there is a way to do this, but I have not been able to get it to work.Hadi Tok
01/08/2019, 7:48 AM