Skip to content

Commit 2727717

Browse files
author
ltwell
committed
变更测试Assert类
1 parent 1a8d6c1 commit 2727717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

day02_exam/src/cn/itcast/test/StudentDom4JDaoTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import cn.itcast.dao.IStudentDao;
44
import cn.itcast.dao.StudentDom4JDao;
55
import cn.itcast.domain.Student;
6-
import junit.framework.Assert;
76
import org.junit.AfterClass;
7+
import org.junit.Assert;
88
import org.junit.BeforeClass;
99
import org.junit.Test;
1010

@@ -27,7 +27,7 @@ public void testCreateStudent() {
2727
s.setLocation("ÈÕ±¾");
2828
s.setGrade(100);
2929
boolean b = dao.createStudent(s);
30-
Assert.assertTrue(b);
30+
Assert.assertTrue(b);
3131
}
3232
@Test
3333
public void testFindStudent() {

0 commit comments

Comments
 (0)