package es.unizar.smartcampuz.model.user;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by sergio on 3/03/17.
 */
public class UserTest {

    @Test
    public void checkPassword() throws Exception {
        User u = new User("777@unizar.es", "Seven", "pass");
        assertFalse(u.checkPassword("wrong"));
        assertTrue(u.checkPassword("pass"));
    }

}

Add User.class tests