org.sonar.api.test.TestCase Maven / Gradle / Ivy
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.api.test;
import java.util.Locale;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
/**
* @deprecated since 5.2 not used
*/
@Deprecated
public interface TestCase {
enum Status {
OK, FAILURE, ERROR, SKIPPED;
public static Status of(@Nullable String s) {
return s == null ? null : valueOf(s.toUpperCase(Locale.ENGLISH));
}
}
/**
* @deprecated since 5.2 not used
*/
@Deprecated
String TYPE_UNIT = "UNIT";
/**
* @deprecated since 5.2 not used
*/
@Deprecated
String TYPE_INTEGRATION = "INTEGRATION";
/**
* Duration in milliseconds
*/
@CheckForNull
Long durationInMs();
/**
* @deprecated since 5.2 not used
*/
@Deprecated
String type();
Status status();
String name();
@CheckForNull
String message();
@CheckForNull
String stackTrace();
TestPlan testPlan();
boolean doesCover();
int countCoveredLines();
Iterable coverageBlocks();
@CheckForNull
CoverageBlock coverageBlock(Testable testable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy