Search in sources :

Example 1 with PropertyDeleteQuery

use of org.sonar.wsclient.services.PropertyDeleteQuery in project sonarlint-core by SonarSource.

the class ConnectedModeTest method stop.

@After
public void stop() {
    ORCHESTRATOR.getServer().getAdminWsClient().delete(new PropertyDeleteQuery("sonar.java.file.suffixes"));
    ORCHESTRATOR.getServer().getAdminWsClient().delete(new PropertyDeleteQuery("sonar.java.file.suffixes", PROJECT_KEY_JAVA));
    try {
        engine.stop(true);
    } catch (Exception e) {
    // Ignore
    }
}
Also used : PropertyDeleteQuery(org.sonar.wsclient.services.PropertyDeleteQuery) UnsupportedServerException(org.sonarsource.sonarlint.core.client.api.exceptions.UnsupportedServerException) ExpectedException(org.junit.rules.ExpectedException) IOException(java.io.IOException) After(org.junit.After)

Example 2 with PropertyDeleteQuery

use of org.sonar.wsclient.services.PropertyDeleteQuery in project sonarlint-core by SonarSource.

the class ConnectedDaemonTest method stop.

@After
public void stop() {
    ORCHESTRATOR.getServer().getAdminWsClient().delete(new PropertyDeleteQuery("sonar.java.file.suffixes"));
    ORCHESTRATOR.getServer().getAdminWsClient().delete(new PropertyDeleteQuery("sonar.java.file.suffixes", PROJECT_KEY_JAVA));
}
Also used : PropertyDeleteQuery(org.sonar.wsclient.services.PropertyDeleteQuery) After(org.junit.After)

Aggregations

After (org.junit.After)2 PropertyDeleteQuery (org.sonar.wsclient.services.PropertyDeleteQuery)2 IOException (java.io.IOException)1 ExpectedException (org.junit.rules.ExpectedException)1 UnsupportedServerException (org.sonarsource.sonarlint.core.client.api.exceptions.UnsupportedServerException)1