From 73f40c17f4b9cdd03636d7198ac5ae1b563de7d1 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 10 May 2016 17:35:36 +0200 Subject: [PATCH] SONAR-7625 SONAR-7621 Deprecate coverage per test and test execution details Sensor APIs --- .../src/main/java/org/sonar/api/test/CoverageBlock.java | 4 ++++ .../src/main/java/org/sonar/api/test/MutableTestCase.java | 4 ++++ .../src/main/java/org/sonar/api/test/MutableTestPlan.java | 4 ++++ .../src/main/java/org/sonar/api/test/MutableTestable.java | 4 ++++ .../api/test/exception/CoverageAlreadyExistsException.java | 4 ++++ .../sonar/api/test/exception/IllegalDurationException.java | 4 ++++ .../main/java/org/sonar/api/test/exception/TestException.java | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/CoverageBlock.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/CoverageBlock.java index e3a6641e79d..dfb42a667dc 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/CoverageBlock.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/CoverageBlock.java @@ -21,6 +21,10 @@ package org.sonar.api.test; import java.util.List; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public interface CoverageBlock { TestCase testCase(); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java index 603c61624b6..bd90d2f0e53 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java @@ -23,6 +23,10 @@ import java.util.List; import javax.annotation.Nullable; import org.sonar.api.batch.fs.InputFile; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public interface MutableTestCase extends TestCase { MutableTestCase setStatus(@Nullable Status s); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java index a4732041df6..40829397558 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java @@ -19,6 +19,10 @@ */ package org.sonar.api.test; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public interface MutableTestPlan extends TestPlan { /** diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java index e17502ddc1b..525acfd568e 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java @@ -19,6 +19,10 @@ */ package org.sonar.api.test; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public interface MutableTestable extends Testable { } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/CoverageAlreadyExistsException.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/CoverageAlreadyExistsException.java index 83395d3448b..51975624f7f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/CoverageAlreadyExistsException.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/CoverageAlreadyExistsException.java @@ -19,6 +19,10 @@ */ package org.sonar.api.test.exception; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public class CoverageAlreadyExistsException extends TestException { public CoverageAlreadyExistsException(String message) { super(message); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/IllegalDurationException.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/IllegalDurationException.java index 2f21f54f388..8a1cdbc4202 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/IllegalDurationException.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/IllegalDurationException.java @@ -19,6 +19,10 @@ */ package org.sonar.api.test.exception; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public class IllegalDurationException extends TestException { public IllegalDurationException(String message) { super(message); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/TestException.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/TestException.java index 6e2f614133d..b31608029f9 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/TestException.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/exception/TestException.java @@ -19,6 +19,10 @@ */ package org.sonar.api.test.exception; +/** + * @deprecated since 5.6 feature will be removed soon + */ +@Deprecated public class TestException extends RuntimeException { public TestException(String message) { super(message); -- 2.39.5