mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Replace anonymous classes with lambda expressions
This commit is contained in:
@@ -13,12 +13,7 @@ public class TestNested extends BaseTestCase {
|
||||
public void test() {
|
||||
|
||||
try {
|
||||
Ebean.execute(new TxRunnable() {
|
||||
public void run() {
|
||||
|
||||
willFail();
|
||||
}
|
||||
});
|
||||
Ebean.execute(() -> willFail());
|
||||
} catch (RuntimeException e) {
|
||||
Assert.assertEquals(e.getMessage(), "test rollback");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user