| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2013, 2016 École Polytechnique de Montréal |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Geneviève Bastien - Initial API and implementation |
| 11 | *******************************************************************************/ |
| 12 | package org.eclipse.tracecompass.tmf.analysis.xml.core.tests.stateprovider; |
| 13 | |
| 14 | import org.eclipse.jdt.annotation.NonNull; |
| 15 | import org.eclipse.tracecompass.internal.tmf.analysis.xml.core.stateprovider.TmfXmlStrings; |
| 16 | import org.eclipse.tracecompass.testtraces.ctf.CtfTestTrace; |
| 17 | import org.eclipse.tracecompass.tmf.analysis.xml.core.tests.common.TmfXmlTestFiles; |
| 18 | |
| 19 | /** |
| 20 | * Test suite for the xml state providers |
| 21 | * |
| 22 | * TODO: instead of using one of the test traces, we should make a custom trace |
| 23 | * to make sure it covers the different possibilities of the state provider |
| 24 | * |
| 25 | * @author Geneviève Bastien |
| 26 | */ |
| 27 | public class StateProviderTest extends XmlProviderTestBase { |
| 28 | |
| 29 | @Override |
| 30 | protected @NonNull String getAnalysisNodeName() { |
| 31 | return TmfXmlStrings.STATE_PROVIDER; |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | protected TmfXmlTestFiles getXmlFile() { |
| 36 | return TmfXmlTestFiles.VALID_FILE; |
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | protected @NonNull CtfTestTrace getTrace() { |
| 41 | return CtfTestTrace.KERNEL; |
| 42 | } |
| 43 | |
| 44 | } |