Class TestUtils

java.lang.Object
ubic.gemma.core.loader.util.TestUtils

public class TestUtils extends Object
  • Constructor Details

    • TestUtils

      public TestUtils()
  • Method Details

    • 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(ExpressionExperiment ee, 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:
      ee - the experiment to get the BAs from.
      targetArrayDesign - the AD that the BAs should be using.
      accession - the accession the BAs should have in their description.
      readCount - the sequence read count.