package com.twu.biblioteca.entity;

import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class UserTest {
    private User user;

    @Before
    public void initUser() {
        user = new User();
    }

    @Test
    public void canSetUserNameTest() {
        user.setName("zhzhang");
        assertEquals("zhzhang", user.getName());
    }

    @Test
    public void canSetUserPasswordTest() {
        user.setPassword("1111");
        assertEquals("1111", user.getPassword());
    }
}

@@ -527,11 +527,152 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void canSetUserTypeTest() %7B%0A        user.setType(%22customer%22);%0A        assertEquals(%22customer%22, user.getType());%0A%0A    %7D
 %0A%7D%0A

add canSetUserTypeTest methos