package org.slc.sli.modeling.rest;

import static org.junit.Assert.*;

import java.util.ArrayList;

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

/**
 * JUnit test for Resources class.
 *
 * @author wscott
 *
 */
public class ResourcesTest {

    private Resources resources;

    private static final String BASE = "base";
    private static final ArrayList<Documentation> DOC = new ArrayList<Documentation>(0);
    private static final ArrayList<Resource> RESOURCE_LIST = new ArrayList<Resource>(0);

    @Before
    public void setup() throws Exception {
        resources = new Resources(BASE, DOC, RESOURCE_LIST);
    }

    @Test(expected = NullPointerException.class)
    public void testNullBase() {
        new Resources(null, DOC, RESOURCE_LIST);
    }

    @Test(expected = NullPointerException.class)
    public void testNullResourceList() {
        new Resources(BASE, DOC, null);
    }

    @Test
    public void testGetBase() {
        assertEquals(BASE, resources.getBase());
    }

    @Test
    public void testGetResources() {
        assertEquals(RESOURCE_LIST, resources.getResources());
    }

    @Test
    public void testToString() {
        assertTrue(!"".equals(resources.toString()));
    }

}

Add JUnit test for Resources class in rest modeling module.