@@ -0,0 +1,1048 @@
+package mm.tests.db;%0A%0Aimport java.sql.SQLException;%0Aimport java.util.ArrayList;%0A%0Aimport mm.da.DataAccess;%0Aimport mm.model.Mentor;%0Aimport mm.model.User;%0Aimport mm.model.User.userType;%0A%0Apublic class AddMentorTest %7B%0A%0A%09static DataAccess da;%0A%0A%09public AddMentorTest() %7B%0A%09%09super();%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) throws SQLException %7B%0A%09%09da=new DataAccess();%0A%09%09Mentor m1 = new Mentor(10, %22yara%22, %22rohana%22, %22yara.rohana@gmail.com%22,%0A%09%09%09%09%22125%22, %22blabla%22, 1, %22Haifa%22, %22okay%22, %22pic%22, true,%0A%09%09%09%09userType.MENTOR, %22none%22, %22Student%22, 2, %22yes%22, %22none%22);%0A%0A%09%09Mentor m2 = new Mentor(22, %22ghada%22, %22awady%22, %22yara.rohana@gmail.com%22,%0A%09%09%09%09%22125%22, %22blabla%22, 1, %22Haifa%22, %22okay%22, %22pic%22, true,%0A%09%09%09%09userType.MENTOR, %22none%22, %22Student%22, 2, %22yes%22, %22none%22);%0A%09%09try %7B%0A%09%09%09da.addUser(m1);%0A%09%09%7D catch (SQLException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09try %7B%0A%09%09%09da.addUser(m2);%0A%09%09%7D catch (SQLException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09%0A%09%09ArrayList%3CUser%3E allMentors=da.getUsers(userType.MENTOR);%0A%09%09for (User user : allMentors) %7B%0A%09%09%09System.out.println(user.toString());%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

add unit test for addMentor