examOnline/src/test/service/StudentServiceImplTest.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * 
 */
package test.service;

import static org.junit.Assert.*;

import java.util.List;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import com.entity.Student;
import com.service.StudentServiceImpl;

/**
 * 2015年11月23日 13:33:53 测试通过
 * @author Junchuan.Wu
 * 
 */
public class StudentServiceImplTest {
	private static StudentServiceImpl studentServiceImpl;
	private static Student student;

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		studentServiceImpl = new StudentServiceImpl();
		student = new Student();
		student.setStudentID("1321152232");
		student.setPassword("wjc#940916");
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * Test method for
	 * {@link com.service.StudentServiceImpl#allowLogin(java.lang.String, java.lang.String)}
	 * .
	 */
	@Test
	public void testAllowLogin() {
		boolean b =  studentServiceImpl.allowLogin(student.getStudentID(), student.getPassword());
		System.out.println(b);
	}

	/**
	 * Test method for
	 * {@link com.service.StudentServiceImpl#getStudentByClass(java.lang.String)}
	 * .
	 */
	@Test
后面还有 37 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。