package eu.dnetlib.data.search;

/**
 * Created by kiatrop on 2/12/2016.
 */
public class SSTest {

/*    SearchServiceImpl ss = new SearchServiceImpl();
    ServiceLocator<IndexService> mockIndexServiceServiceLocator = mock(ServiceLocator.class);
    SolrIndexClient mockIndexService = mock(SolrIndexClient.class);

    @Before
    public void setup() {
        BasicConfigurator.configure();

        System.out.println(ss.getIndexLocator());
        //when(ss.getIndexLocator()).thenReturn(mockIndexServiceServiceLocator);
        when(mockIndexServiceServiceLocator.getService()).thenReturn(mockIndexService);
        ss.setIndexLocator(mockIndexServiceServiceLocator);
        //doNothing().when(((SearchServiceImpl) ss).getIndexLocator().getService());

    }

    @Test
    public void test() throws SearchServiceException {
        ss.search("oaftype=result", null, "", 1,1);
    }
*/
}
