Class ArrayDesignAnnotationServiceImplTest
java.lang.Object
ubic.gemma.core.analysis.service.ArrayDesignAnnotationServiceImplTest
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
public class ArrayDesignAnnotationServiceImplTest
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidA GO association whose URI is not in the loaded ontology makesGeneOntologyService.getTerm(String)return null.
-
Constructor Details
-
ArrayDesignAnnotationServiceImplTest
public ArrayDesignAnnotationServiceImplTest()
-
-
Method Details
-
generateAnnotationFile_whenATermIsNotInTheLoadedOntology_writesTheRemainingTerms
@Test public void generateAnnotationFile_whenATermIsNotInTheLoadedOntology_writesTheRemainingTerms() throws ExceptionA GO association whose URI is not in the loaded ontology makesGeneOntologyService.getTerm(String)return null. Collecting that null used to hand it straight toGeneOntologyUtils.asRegularGoId(OntologyTerm)(and, for the LONG output type, togetAllParents), which dereference every element — so a single unresolvable term aborted the whole annotation file with a bare NullPointerException.- Throws:
Exception
-