Prechádzať zdrojové kódy

fix: mybatis测试依赖

370774330@qq.com 5 rokov pred
rodič
commit
0758d70f9a

+ 5 - 0
web/pom.xml

@@ -75,6 +75,11 @@
             <artifactId>mybatis-spring-boot-starter</artifactId>
             <version>2.1.4</version>
         </dependency>
+        <dependency>
+            <groupId>org.mybatis.spring.boot</groupId>
+            <artifactId>mybatis-spring-boot-starter-test</artifactId>
+            <version>2.1.4</version>
+        </dependency>
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-security</artifactId>

+ 1 - 1
web/src/test/java/seecoder/devcloud/web/service/user/UserServiceTest.java

@@ -104,7 +104,7 @@ class UserServiceTest {
     void changeUserPassword() {
         try {
 
-            userService.changePassword(25, new ChangePasswordVO("1234qwer","1234qwer1","1234qwer1"));
+            userService.changePassword(new ChangePasswordVO(25,"1234qwer","1234qwer1","1234qwer1"));
         } catch (ServiceException e) {
             e.printStackTrace();
             Assert.fail(e.getMessage());