loginserviceimpltest.java
来自「人力资源管理系统」· Java 代码 · 共 26 行
JAVA
26 行
package org.HumanResManSys.service;
import junit.framework.TestCase;
//import static org.junit.Assert.*;
import org.HumResManSys.service.LoginService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class LoginServiceImplTest extends TestCase{
@Test
public void testSubmitLoginResult() {
try{
ApplicationContext ac=
new ClassPathXmlApplicationContext("/applicationContext.xml");
LoginService logserv=(LoginService)ac.getBean("LoginService");
logserv.submitLoginResult("czq", "BB");
}catch(Exception e ){
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?