Changeset 7865


Ignore:
Timestamp:
Oct 21, 2020, 8:26:50 AM (14 months ago)
Author:
Nicklas Nordborg
Message:

References #2224: Files should be annotatable

Need to ignore missing files when testing the "Item overview" since we never set files for protocols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.17-stable/src/test/net/sf/basedb/test/roles/AnalysisTest.java

    r7052 r7865  
    4848import net.sf.basedb.util.overview.Validator;
    4949import net.sf.basedb.util.overview.Failure;
    50 import net.sf.basedb.util.overview.extensions.ValidationRuleAction;
    5150
    5251/**
     
    8281     
    8382      ValidationOptions options = new ValidationOptions();
    84       // Expected, since we never specified a biosource for the reference sample and never kit for any item
    85       options.setSeverity((ValidationRuleAction)Validator.MISSING_BIOSOURCE, Severity.IGNORE);
    86       options.setSeverity((ValidationRuleAction)Validator.MISSING_KIT, Severity.IGNORE);
     83      // Expected, since we never specified a biosource for the reference sample and never kit for any item or files for protocols
     84      options.setSeverity(Validator.MISSING_BIOSOURCE, Severity.IGNORE);
     85      options.setSeverity(Validator.MISSING_KIT, Severity.IGNORE);
     86      options.setSeverity(Validator.MISSING_FILE, Severity.IGNORE);
    8787      GenericOverview overview = getExperimentOverview(dc, experiment,
    8888        activeProject, options, 0);
    8989     
    9090      // Expected, since the Affymetrix experiment is using a different raw data type
    91       options.setSeverity((ValidationRuleAction)Validator.NONDEFAULT_RAWDATATYPE, Severity.IGNORE);
    92       options.setSeverity((ValidationRuleAction)Validator.MISSING_HARDWARE, Severity.IGNORE);
    93       options.setSeverity((ValidationRuleAction)Validator.MISSING_PROTOCOL, Severity.IGNORE);
    94       options.setSeverity((ValidationRuleAction)Validator.NONMATCHING_SPOTCOUNT, Severity.IGNORE);
     91      options.setSeverity(Validator.NONDEFAULT_RAWDATATYPE, Severity.IGNORE);
     92      options.setSeverity(Validator.MISSING_HARDWARE, Severity.IGNORE);
     93      options.setSeverity(Validator.MISSING_PROTOCOL, Severity.IGNORE);
     94      options.setSeverity(Validator.NONMATCHING_SPOTCOUNT, Severity.IGNORE);
    9595      GenericOverview affyOverview = getExperimentOverview(dc, affyExperiment,
    9696        activeProject, options, 2);
    9797     
    98       options.setSeverity((ValidationRuleAction)Validator.MISSING_ARRAYSLIDE, Severity.IGNORE);
    99       options.setSeverity((ValidationRuleAction)Validator.MISSING_TAG, Severity.IGNORE);
     98      options.setSeverity(Validator.MISSING_ARRAYSLIDE, Severity.IGNORE);
     99      options.setSeverity(Validator.MISSING_TAG, Severity.IGNORE);
    100100      // Sequence experiment overview
    101101      GenericOverview seqOverview = getExperimentOverview(dc, seqExperiment,
Note: See TracChangeset for help on using the changeset viewer.