/*
 * The Exomiser - A tool to annotate and prioritize genomic variants
 *
 * Copyright (c) 2016-2018 Queen Mary University of London.
 * Copyright (c) 2012-2016 Charité Universitätsmedizin Berlin and Genome Research Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.monarchinitiative.exomiser.rest.prioritiser;

import org.junit.jupiter.api.Test;
import org.monarchinitiative.exomiser.test.ExomiserStubDataConfig;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author Jules Jacobsen <jules.jacobsen@sanger.ac.uk>
 */
@SpringBootTest(classes = {ExomiserPrioritiserServer.class, ExomiserStubDataConfig.class})
public class ExomiserPrioritiserServerTest {

    @Test
    public void testContextLoads() {
    }
}
@@ -96,10 +96,10 @@
 6-20
-18
+20
  Que
@@ -998,123 +998,603 @@
 org.
-monarchinitiative.exomiser.test.ExomiserStubDataConfig;%0Aimport org.springframework.boot.test.context.SpringBootTest
+junit.jupiter.api.extension.ExtendWith;%0Aimport org.mockito.Mockito;%0Aimport org.monarchinitiative.exomiser.core.model.GeneIdentifier;%0Aimport org.monarchinitiative.exomiser.core.prioritisers.PriorityFactory;%0Aimport org.monarchinitiative.exomiser.test.ExomiserStubDataConfig;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit.jupiter.SpringExtension;%0A%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0Aimport java.util.Map
 ;%0A%0A/
@@ -1661,22 +1661,63 @@
 */%0A@
-SpringBootTest
+ExtendWith(SpringExtension.class)%0A@ContextConfiguration
 (cla
@@ -1785,16 +1785,74 @@
 ig.class
+, ExomiserPrioritiserServerTest.TestControllerConfig.class
 %7D)%0Apubli
@@ -1945,9 +1945,470 @@
 %7B%0A    %7D%0A
-%7D
+%0A    @Configuration%0A    public static class TestControllerConfig %7B%0A%0A        @Bean(%22exomiserDataDirectory%22)%0A        public Path exomiserDataDirectory() %7B%0A            return Paths.get(%22test%22);%0A        %7D%0A%0A        @Bean%0A        public Map%3CInteger, GeneIdentifier%3E getGeneIdentifiers() %7B%0A            return Map.of();%0A        %7D%0A%0A        @Bean%0A        public PriorityFactory priorityFactory() %7B%0A            return Mockito.mock(PriorityFactory.class);%0A        %7D%0A    %7D%0A%7D%0A

Fix broken ExomiserPrioritiserServerTest