baseservicetestcase.java

来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 22 行

JAVA
22
字号
package net.java.workeffort.service;import net.java.workeffort.infrastructure.context.RequestContext;import net.java.workeffort.infrastructure.context.RequestContextHolder;import net.java.workeffort.params.DeliverableParams;import junit.framework.TestCase;/** * @author Antony Joseph */public class BaseServiceTestCase extends TestCase {    protected DeliverableParams params;    protected MockSecurityProfile mockSecurityProfile;    protected void setUp() throws Exception {        // need to set a mock security profile for the service layer to use.        mockSecurityProfile = new MockSecurityProfile();        RequestContext requestContext = new RequestContext(mockSecurityProfile);        RequestContextHolder.setRequestContext(requestContext);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?