Skip to content

Commit

Permalink
删除web模块,core和web全并为一个模块
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoutaoo committed Aug 3, 2019
1 parent 3dfbdf9 commit 1d35f3a
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 334 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.springboot.common.web.exception;
package com.springboot.cloud.common.web.exception;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.springboot.common.web.interceptor;
package com.springboot.cloud.common.web.interceptor;

import com.springboot.cloud.common.core.util.UserContextHolder;
import org.junit.Assert;
Expand All @@ -9,15 +9,15 @@
public class UserInterceptorTest {
@Test
public void preHandle_当未设置token_user_那么正常处理下一个handle() throws Exception {
UserInterceptor userInterceptor = new UserInterceptor();
web.interceptor.UserInterceptor userInterceptor = new web.interceptor.UserInterceptor();
MockHttpServletRequest request = new MockHttpServletRequest();
MockHttpServletResponse response = new MockHttpServletResponse();
userInterceptor.preHandle(request, response, new Object());
}

@Test
public void preHandle_当设置token的username_那么username可以在线程中拿出来用() throws Exception {
UserInterceptor userInterceptor = new UserInterceptor();
web.interceptor.UserInterceptor userInterceptor = new web.interceptor.UserInterceptor();
MockHttpServletRequest request = new MockHttpServletRequest();
request.addHeader("x-client-token-user", "{\"user_name\":\"zhangsan\"}");
MockHttpServletResponse response = new MockHttpServletResponse();
Expand Down
1 change: 0 additions & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<modules>
<module>core</module>
<module>test</module>
<module>web</module>
</modules>

<dependencies>
Expand Down
97 changes: 0 additions & 97 deletions common/web/pom.xml

This file was deleted.

28 changes: 0 additions & 28 deletions common/web/readme.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1d35f3a

Please sign in to comment.