vendredi 30 octobre 2015

Creating Unit test for DAO in spring mvc

Hi i want to create DAO unit test in SPRING mvc forexample for this type of code

package users;

public interface UserDAO {


    public void setDataSource(DataSource ds);

    public void create(int id, int personal, String password, String first_name, String last_name, String role,
            String email, Date date, int id_team);

    public User getUser(Integer user_id);

    public List<User> listUsers();

    void create1(int id, int personal, String password, String first_name, String last_name, String role, String email,
            Date start_date);
}

...what is the best way to do it

Aucun commentaire:

Enregistrer un commentaire