|
@@ -1,22 +1,5 @@
|
|
|
package com.baomidou.mybatisplus.test.h2;
|
|
|
|
|
|
-import static java.util.stream.Collectors.toList;
|
|
|
-
|
|
|
-import java.io.IOException;
|
|
|
-import java.sql.SQLException;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-import javax.annotation.Resource;
|
|
|
-
|
|
|
-import org.junit.Assert;
|
|
|
-import org.junit.BeforeClass;
|
|
|
-import org.junit.Test;
|
|
|
-import org.junit.runner.RunWith;
|
|
|
-import org.springframework.test.context.ContextConfiguration;
|
|
|
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
@@ -27,6 +10,21 @@ import com.baomidou.mybatisplus.test.base.entity.TestData;
|
|
|
import com.baomidou.mybatisplus.test.h2.config.H2Db;
|
|
|
import com.baomidou.mybatisplus.test.h2.entity.mapper.H2UserMapper;
|
|
|
import com.baomidou.mybatisplus.test.h2.entity.persistent.H2User;
|
|
|
+import org.junit.Assert;
|
|
|
+import org.junit.BeforeClass;
|
|
|
+import org.junit.Test;
|
|
|
+import org.junit.runner.RunWith;
|
|
|
+import org.springframework.test.context.ContextConfiguration;
|
|
|
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.io.IOException;
|
|
|
+import java.sql.SQLException;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+import static java.util.stream.Collectors.toList;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -53,6 +51,7 @@ public class H2UserMapperTest extends BaseTest {
|
|
|
H2User h2User = new H2User();
|
|
|
h2User.setName(NQQ);
|
|
|
h2User.setAge(1);
|
|
|
+ h2User.setDeleted(0);
|
|
|
h2User.setDesc("这是一个不错的小伙子");
|
|
|
Assert.assertTrue(1 == userMapper.insert(h2User));
|
|
|
|