/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.app.rest.link.search;

import static org.junit.Assert.assertEquals;

import org.dspace.app.rest.DiscoveryRestController;
import org.dspace.app.rest.link.HalLinkFactory;
import org.dspace.app.rest.model.hateoas.FacetConfigurationResource;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilder;

/**
 * This class' purpose is to test the FacetConfigurationResourceHalLinkFactory
 */
public class FacetConfigurationResourceHalLinkFactoryTest {


    @Mock
    WebMvcLinkBuilder webMvcLinkBuilder;

    @Mock
    HalLinkFactory halLinkFactory;

    @InjectMocks
    private FacetConfigurationResourceHalLinkFactory facetConfigurationResourceHalLinkFactory;

    @Before
    public void setUp() throws Exception {
        facetConfigurationResourceHalLinkFactory = new FacetConfigurationResourceHalLinkFactory();
    }

    @Test
    public void testControllerClassIsSetCorrectlyAfterConstructor() throws Exception {
        assertEquals(DiscoveryRestController.class, facetConfigurationResourceHalLinkFactory.getControllerClass());
    }

    @Test
    public void testResourceClassIsSetCorrectlyAfterConstructor() throws Exception {
        assertEquals(FacetConfigurationResource.class, facetConfigurationResourceHalLinkFactory.getResourceClass());
    }

}
