package cn.itcast.notepad.app;
import javax.swing.JDialog;
import org.junit.Test;
import cn.itcast.notepad.dao.StudentDaoImpl;
import cn.itcast.notepad.domain.Student;
import cn.itcast.notepad.ui.LoginDialog;
public class MainApp {
public static void main(String[] args) {
JDialog loginDialog = new LoginDialog();
loginDialog.setVisible(true);
}
@Test
public void fun1() {
StudentDaoImpl dao = new StudentDaoImpl();
dao.add(new Student(1001, "王永", 23, "男"));
dao.add(new Student(1002, "张雷", 25, "男"));
dao.add(new Student(1003, "李强", 22, "男"));
dao.add(new Student(1004, "宋永合", 25, "男"));
dao.add(new Student(1005, "叙美丽", 23, "女"));
dao.add(new Student(1006, "陈宁", 22, "女"));
dao.add(new Student(1007, "王丽", 21, "女"));
dao.add(new Student(1008, "李永", 23, "男"));
dao.add(new Student(1009, "张玲", 23, "女"));
dao.add(new Student(1010, "啊历", 18, "男"));
dao.add(new Student(1011, "王刚", 23, "男"));
dao.add(new Student(1012, "陈永", 24, "男"));
dao.add(new Student(1013, "李雷", 24, "男"));
dao.add(new Student(1014, "李沿", 22, "男"));
dao.add(new Student(1015, "王小明", 25, "男"));
dao.add(new Student(1016, "王小丽", 23, "女"));
dao.add(new Student(1017, "唐宁", 22, "女"));
dao.add(new Student(1018, "唐丽", 21, "男"));
dao.add(new Student(1019, "啊永", 23, "男"));
dao.add(new Student(1020, "唐玲", 23, "女"));
dao.add(new Student(1021, "叙刚", 18, "男"));
dao.add(new Student(1022, "王累", 23, "男"));
dao.add(new Student(1023, "赵安", 23, "男"));
dao.add(new Student(1024, "关雷", 25, "男"));
dao.add(new Student(1025, "李字", 22, "男"));
dao.add(new Student(1026, "叙安国", 25, "男"));
dao.add(new Student(1027, "陈浩难", 23, "女"));
dao.add(new Student(1028, "陈明", 22, "女"));
dao.add(new Student(1029, "孙丽", 21, "女"));
dao.add(new Student(1030, "李治国", 23, "男"));
dao.add(new Student(1031, "张娜", 23, "女"));
dao.add(new Student(1032, "安强", 18, "男"));
dao.add(new Student(1033, "王欢", 23, "女"));
dao.add(new Student(1034, "周天乐", 23, "男"));
dao.add(new Student(1035, "关雷", 25, "男"));
dao.add(new Student(1036, "吴强", 22, "男"));
dao.add(new Student(1037, "吴合国", 25, "男"));
dao.add(new Student(1038, "正小和", 23, "女"));
dao.add(new Student(1039, "吴丽", 22, "男"));
dao.add(new Student(1040, "冯含", 21, "男"));
dao.add(new Student(1041, "陈冬", 23, "女"));
dao.add(new Student(1042, "关玲", 23, "女"));
dao.add(new Student(1043, "包利", 23, "男"));
dao.add(new Student(1044, "威刚", 23, "男"));
dao.add(new Student(1045, "李永", 23, "男"));
dao.add(new Student(1046, "张关雷", 25, "男"));
dao.add(new Student(1047, "送小强", 22, "男"));
dao.add(new Student(1048, "关动林", 25, "男"));
dao.add(new Student(1049, "苏小哑", 23, "女"));
dao.add(new Student(1050, "赵宁", 22, "女"));
dao.add(new Student(1051, "陈丽", 21, "女"));
dao.add(new Student(1052, "钱小刚", 23, "男"));
dao.add(new Student(1053, "艾林", 23, "女"));
dao.add(new Student(1054, "郭林", 23, "男"));
dao.add(new Student(1055, "周制强", 23, "男"));
}
} |
|