pisclienttestcase.java
来自「《j2ee开发全程实录》随书源码」· Java 代码 · 共 24 行
JAVA
24 行
package com.cownew.PIS.framework.client;
import com.cownew.PIS.framework.common.services.ILoginService;
import junit.framework.TestCase;
public abstract class PISClientTestCase extends TestCase
{
protected void setUp() throws Exception
{
super.setUp();
ILoginService login = (ILoginService) RemoteServiceLocator
.getRemoteService(ILoginService.class);
String sessionId = login.login("admin1", "", "demo");
RemoteServiceLocator.initLocator(sessionId);
}
protected void tearDown() throws Exception
{
RemoteServiceLocator.logout();
super.tearDown();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?