package uk.ac.ebi.quickgo.index.annotation.coterms;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.core.io.Resource;

import static org.mockito.Mockito.mock;

/**
 * @author Tony Wardell
 * Date: 07/02/2017
 * Time: 11:00
 * Created with IntelliJ IDEA.
 */
//@RunWith(MockitoJUnitRunner.class)
public class CoTermConfigTest {

    String manualPath = "foo";
    String allPath = "bar";

    @Test(expected = NullPointerException.class)
    public void manualAndAllOutputPathsWhenDifferentWillNotCauseAIllegalStateException(){
        CoTermsConfig coTermsConfig = new CoTermsConfig();
        coTermsConfig.manualCoTermsPath = manualPath;
        coTermsConfig.allCoTermsPath = allPath;
        coTermsConfig.coTermAllSummarizationStep();
        coTermsConfig.coTermManualSummarizationStep();
    }

    @Test(expected = IllegalStateException.class)
    public void cannotHaveBothManualAndAllOutputPathsTheSameForCoTermsWhenCallingCoTermAllSummarizationStep(){
        CoTermsConfig coTermsConfig = new CoTermsConfig();
        coTermsConfig.manualCoTermsPath = manualPath;
        coTermsConfig.allCoTermsPath = manualPath;
        coTermsConfig.coTermAllSummarizationStep();
    }

    @Test(expected = IllegalStateException.class)
    public void cannotHaveBothManualAndAllOutputPathsTheSameForCoTermsCoTermManualSummarizationStep(){
        CoTermsConfig coTermsConfig = new CoTermsConfig();
        coTermsConfig.manualCoTermsPath = manualPath;
        coTermsConfig.allCoTermsPath = manualPath;
        coTermsConfig.coTermManualSummarizationStep();
    }

}

@@ -67,423 +67,239 @@
 nit.
-Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.springframework.core.io.Resource;%0A%0Aimport static org.mockito.Mockito.mock;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 07/02/2017%0A * Time: 11:00%0A * Created with IntelliJ IDEA.%0A */%0A//@RunWith(MockitoJUnitRunner.class)%0Apublic class CoTermConfigTest %7B%0A%0A    String manualPath = %22foo%22;%0A    String allPath
+Test;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 07/02/2017%0A * Time: 11:00%0A * Created with IntelliJ IDEA.%0A */%0Apublic class CoTermConfigTest %7B%0A%0A    private static final String MANUAL_PATH = %22foo%22;%0A    private static final String ALL_PATH
  = %22
@@ -541,34 +541,35 @@
 TermsPath = 
-manualPath
+MANUAL_PATH
 ;%0A        co
@@ -601,15 +601,16 @@
 h = 
-allPath
+ALL_PATH
 ;%0A  
@@ -979,34 +979,35 @@
 TermsPath = 
-manualPath
+MANUAL_PATH
 ;%0A        co
@@ -1031,34 +1031,35 @@
 TermsPath = 
-manualPath
+MANUAL_PATH
 ;%0A        co
@@ -1357,34 +1357,35 @@
 TermsPath = 
-manualPath
+MANUAL_PATH
 ;%0A        co
@@ -1417,18 +1417,19 @@
 h = 
-manualPath
+MANUAL_PATH
 ;%0A  
@@ -1487,11 +1487,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

Make test values private static. Remove unused imports.