001/*
002 * Copyright 2018 Leibniz-Institut für Analytische Wissenschaften – ISAS – e.V..
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package de.isas.mztab2.test.utils;
017
018/**
019 * Test files enum to configure test files.
020 *
021 * @author nilshoffmann
022 */
023public enum ClassPathFile {
024
025//    "/metabolomics/MTBLS263.mztab",
026//        "/metabolomics/MouseLiver_negative.mzTab",
027//        "/metabolomics/MouseLiver_negative_mztab_null-colunit.txt",
028//        "/metabolomics/StandardMix_negative_exportPositionLevel.mzTab",
029//        "/metabolomics/StandardMix_negative_exportSpeciesLevel.mzTab",
030//        "/metabolomics/StandardMix_positive_exportPositionLevel.mzTab",
031//        "/metabolomics/StandardMix_positive_exportSpeciesLevel.mzTab",
032//        "/metabolomics/gcxgc-ms-example.mztab",
033//        "/metabolomics/lipidomics-example.mzTab",
034//        "/metabolomics/minimal-m-2.0.mztab"
035///testset/mtdFile.txt
036    MTDFILE("/testset/", "mtdFile.txt"),
037    MTBLS263("/metabolomics/", "MTBLS263.mztab"),
038    MOUSELIVER_NEGATIVE("/metabolomics/", "MouseLiver_negative.mzTab"),
039    MOUSELIVER_NEGATIVE_MZTAB_NULL_COLUNIT("/metabolomics/",
040        "MouseLiver_negative_mztab_null-colunit.txt"),
041    STANDARDMIX_NEGATIVE_EXPORTPOSITIONLEVEL("/metabolomics/",
042        "StandardMix_negative_exportPositionLevel.mzTab"),
043    STANDARDMIX_NEGATIVE_EXPORTSPECIESLEVEL("/metabolomics/",
044        "StandardMix_negative_exportSpeciesLevel.mzTab"),
045    STANDARDMIX_POSITIVE_EXPORTPOSITIONLEVEL("/metabolomics/",
046        "StandardMix_positive_exportPositionLevel.mzTab"),
047    STANDARDMIX_POSITIVE_EXPORTSPECIESLEVEL("/metabolomics/",
048        "StandardMix_positive_exportSpeciesLevel.mzTab"),
049    GCXGC_MS_EXAMPLE("/metabolomics/", "gcxgc-ms-example.mztab"),
050    LIPIDOMICS_EXAMPLE("/metabolomics/", "lipidomics-example.mzTab"),
051    LIPIDOMICS_EXAMPLE_WRONG_MSSCAN_REF("/metabolomics/", "lipidomics-example-wrong-msscan-ref.mzTab"),
052    MINIMAL_EXAMPLE("/metabolomics/", "minimal-m-2.0.mztab");
053
054    private final String resourcePathPrefix;
055    private final String fileName;
056
057    ClassPathFile(String resourcePathPrefix, String fileName) {
058        this.resourcePathPrefix = resourcePathPrefix;
059        this.fileName = fileName;
060    }
061
062    public String fileName() {
063        return fileName;
064    }
065
066    public String resourcePath() {
067        return resourcePathPrefix + fileName();
068    }
069
070}