Skip to content

Commit 68b9a68

Browse files
committed
test
1 parent 61e7116 commit 68b9a68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/autoresultmap/AutoResultMapTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.baomidou.mybatisplus.test.autoresultmap;
22

3+
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
34
import com.baomidou.mybatisplus.test.BaseDbTest;
45
import org.junit.jupiter.api.Test;
56

@@ -24,6 +25,10 @@ void test() {
2425
assertThat(entity.getGg()).as("typeHandler正常").isNotNull();
2526
assertThat(entity.getGg().getName()).as("是老王").isEqualTo("老王");
2627
});
28+
doTest(m -> {
29+
Entity entity = new Entity().setName("老王");
30+
m.selectOne(Wrappers.lambdaQuery(entity).ne(Entity::getId, 1));
31+
});
2732
}
2833

2934
@Override

0 commit comments

Comments
 (0)