diff --git a/auth-center/auth-center-bootstrap/src/test/java/com/jmsoftware/maf/authcenter/mybatis/MyBatisPlusTests.java b/auth-center/auth-center-bootstrap/src/test/java/com/jmsoftware/maf/authcenter/mybatis/MyBatisPlusTests.java index f6ec742f..92a8d111 100644 --- a/auth-center/auth-center-bootstrap/src/test/java/com/jmsoftware/maf/authcenter/mybatis/MyBatisPlusTests.java +++ b/auth-center/auth-center-bootstrap/src/test/java/com/jmsoftware/maf/authcenter/mybatis/MyBatisPlusTests.java @@ -30,12 +30,13 @@ class MyBatisPlusTests { @Autowired private RoleMapper roleMapper; -// @Test + // @Test @Order(1) void insertAutoFillTest() { - val role = new Role(); - role.setName("role-for-mybatis-plus-tests"); - role.setDescription("Role for MyBatis Plus tests. Testing functions"); + val role = new Role( + "role-for-mybatis-plus-tests", + "Role for MyBatis Plus tests. Testing functions" + ); int inserted; try { inserted = this.roleDomainService.getBaseMapper().insert(role); @@ -47,12 +48,13 @@ void insertAutoFillTest() { Assertions.assertEquals(AFFECTED, inserted); } -// @Test + // @Test @Order(2) void logicDeleteTest() { val lambdaQuery = Wrappers.lambdaQuery(Role.class); lambdaQuery.eq(Role::getName, "role-for-mybatis-plus-tests"); - var optionalRolePersistence = Optional.ofNullable(this.roleDomainService.getBaseMapper().selectOne(lambdaQuery)); + var optionalRolePersistence = Optional.ofNullable( + this.roleDomainService.getBaseMapper().selectOne(lambdaQuery)); if (optionalRolePersistence.isEmpty()) { optionalRolePersistence = Optional.ofNullable(this.roleMapper.selectByName("role-for-mybatis-plus-tests")); } diff --git a/pom.xml b/pom.xml index 07a518e6..9bb376be 100644 --- a/pom.xml +++ b/pom.xml @@ -36,6 +36,8 @@ 8080 + true + 17 + + org.jetbrains.kotlin + kotlin-maven-plugin + + + spring + + + -Xjsr305=strict + + + + + org.jetbrains.kotlin + kotlin-maven-noarg + ${kotlin.version} + + + org.jetbrains.kotlin + kotlin-maven-allopen + ${kotlin.version} + + + + + compile + + compile + + + + ${project.basedir}/src/main/kotlin + ${project.basedir}/src/main/java + + + + + test-compile + + test-compile + + + + ${project.basedir}/src/test/kotlin + ${project.basedir}/src/test/java + + + + + + org.apache.maven.plugins maven-compiler-plugin @@ -279,6 +333,33 @@ + + + + + default-compile + none + + + + default-testCompile + none + + + java-compile + compile + + compile + + + + java-test-compile + test-compile + + testCompile + + + @@ -338,31 +419,6 @@ - - - org.jetbrains.kotlin - kotlin-maven-plugin - - - spring - - - -Xjsr305=strict - - - - - org.jetbrains.kotlin - kotlin-maven-noarg - ${kotlin.version} - - - org.jetbrains.kotlin - kotlin-maven-allopen - ${kotlin.version} - - -