Class TestUtils


  • public class TestUtils
    extends Object
    • Constructor Detail

      • TestUtils

        public TestUtils()
    • Method Detail

      • LogNcbiError

        public static boolean LogNcbiError​(org.apache.commons.logging.Log log,
                                           Exception e)
        Checks whether the given Exception is a known NCBI error and if so, logs the error.
        Parameters:
        log - the log to use to log the error.
        e - the exception to check for known errors.
        Returns:
        true, if the exception was handled by this method and logged, false otherwise.
      • assertBAs

        public static void assertBAs​(ubic.gemma.model.expression.experiment.ExpressionExperiment ee,
                                     ubic.gemma.model.expression.arrayDesign.ArrayDesign targetArrayDesign,
                                     String accession,
                                     int readCount)
        Checks the BioAssays in the given EE match the given properties. Sequence read is always asserted to be 36.
        Parameters:
        targetArrayDesign - the AD that the BAs should be using.
        ee - the experiment to get the BAs from.
        accession - the accession the BAs should have in their description.
        readCount - the sequence read count.