package uk.ac.ebi.quickgo.index.ontology;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;

import static org.mockito.Mockito.mock;

/**
 * Created 12/01/16
 * @author Edd
 */
@Profile("QuickGOIndexOntologyMainIT")
@Configuration
public class OntologyIndexingConfig {
    @Bean
    @Primary
    @Profile("QuickGOIndexOntologyMainIT")
    public OntologyReader ontologyReader() {
        return mock(OntologyReader.class);
    }
}

@@ -153,63 +153,8 @@
 on;%0A
-import org.springframework.context.annotation.Primary;%0A
 impo
@@ -395,64 +395,8 @@
 ean%0A
-    @Primary%0A    @Profile(%22QuickGOIndexOntologyMainIT%22)%0A
     

Remove unnecessary annotations.