package com.twu.biblioteca;

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

import static org.junit.Assert.assertEquals;

/**
 * Created by Dale on 6/10/15.
 */
public class UserTest {

    private User user;

    @Before
    public void setUp() throws Exception {
        user = new User("Dale", "0326", "customer");
    }

    @Test
    public void testBook() throws Exception {
        assertEquals("Dale", user.getName());
        assertEquals("0326", user.getPassword());
        assertEquals("customer", user.getType());
    }
}

@@ -121,47 +121,8 @@
 s;%0A%0A
-/**%0A * Created by Dale on 6/10/15.%0A */%0A
 publ
@@ -488,11 +488,209 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void testUserCollection() throws Exception %7B%0A        assertEquals(2, User.UserCollection().length);%0A        assertEquals(%22customer%22, User.UserCollection()%5B0%5D.getType());%0A    %7D
 %0A%7D%0A

add test for UserCollection