aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/plugins/server-plugin/src/main/java/StartupCrash.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/plugins/server-plugin/src/main/java/StartupCrash.java b/tests/plugins/server-plugin/src/main/java/StartupCrash.java
index cf57ccbc653..3e55bab80b9 100644
--- a/tests/plugins/server-plugin/src/main/java/StartupCrash.java
+++ b/tests/plugins/server-plugin/src/main/java/StartupCrash.java
@@ -17,12 +17,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import org.sonar.api.Startable;
import org.sonar.api.config.Settings;
import org.sonar.api.server.ServerSide;
-
@ServerSide
-public class StartupCrash {
+public class StartupCrash implements Startable {
private final Settings settings;
@@ -30,13 +30,15 @@ public class StartupCrash {
this.settings = settings;
}
+ @Override
public void start() {
if (settings.getBoolean("failAtStartup")) {
throw new IllegalStateException("Error in plugin [server]");
}
}
+ @Override
public void stop() {
-
+ // do nothing
}
}