|
@@ -38,6 +38,15 @@ class ChainWrappersTest : BaseDbTest<UserMapper>() {
|
|
|
Assertions.assertEquals(4, Db.ktQuery(User::class.java).eq(User::id, 2).one().roleId)
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ fun testDefaultMethod() {
|
|
|
+ doTestAutoCommit(fun(m) {
|
|
|
+ Assertions.assertEquals("hello baomidou!", m.hello())
|
|
|
+ Assertions.assertNotNull(m.findById(1))
|
|
|
+ Assertions.assertNull(m.findById(-1))
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
@Test
|
|
|
fun testSetSql() {
|
|
|
Assertions.assertTrue(
|