@@ -0,0 +1,1621 @@
+package uk.ac.ebi.quickgo.annotation.validation.service;%0A%0Aimport uk.ac.ebi.quickgo.annotation.validation.loader.LoadingConfig;%0A%0Aimport org.hamcrest.core.Is;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.batch.core.BatchStatus;%0Aimport org.springframework.batch.core.JobExecution;%0Aimport org.springframework.batch.test.JobLauncherTestUtils;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.SpringApplicationContextLoader;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static uk.ac.ebi.quickgo.annotation.validation.loader.LoadingConfig.LOAD_ANNOTATION_DBXREF_ENTITIES_STEP_NAME;%0A%0A%0A/**%0A * @author Tony Wardell%0A * Date: 24/11/2016%0A * Time: 10:51%0A * Created with IntelliJ IDEA.%0A */%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(classes = %7BJobTestRunnerConfig.class, LoadingConfig.class%7D,%0A        loader = SpringApplicationContextLoader.class)%0Apublic class ValidationEntityCheckerIT %7B%0A%0A    @Autowired%0A    ValidationEntityChecker validator;%0A%0A    @Autowired%0A    private JobLauncherTestUtils jobLauncherTestUtils;%0A%0A    @Test%0A    public void validationSucceedsIfKnownDb()%7B%0A        JobExecution jobExecution = jobLauncherTestUtils.launchStep(LOAD_ANNOTATION_DBXREF_ENTITIES_STEP_NAME);%0A        assertThat(jobExecution.getStatus(), Is.is(BatchStatus.COMPLETED));%0A        assertThat(validator.isValid(%22PMID:123456%22), is(true));%0A    %7D%0A%7D%0A

Test ValidationEntityChecker.