package org.slc.sli.ingestion.handler;


import static org.mockito.Mockito.*;

import java.io.File;
import java.io.IOException;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.slc.sli.ingestion.landingzone.IngestionFileEntry;
import org.slc.sli.ingestion.validation.ErrorReport;

/**
 *
 * @author ccheng
 *
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/spring/applicationContext-test.xml" })
public class MatchDiffHandlerTest {
    @Autowired
    private MatchDiffHandler matchDiffHandler;

    @Test
    public void testDoHandling() throws IOException {
        IngestionFileEntry mockedIngestionFileEntry = mock(IngestionFileEntry.class);
        ErrorReport mockedErrorReport = mock(ErrorReport.class);

        File newRecordFile = File.createTempFile("newRecord_", ".tmp");
        newRecordFile.deleteOnExit();

        when(mockedIngestionFileEntry.getNeutralRecordFile()).thenReturn(newRecordFile);

        matchDiffHandler.doHandling(mockedIngestionFileEntry, mockedErrorReport);

        verify(mockedIngestionFileEntry).setDeltaNeutralRecordFile(newRecordFile);
    }

}

@@ -134,34 +134,8 @@
 %0D%0A%0D%0A
-import org.junit.Ignore;%0D%0A
 impo

remove unused import