}
dependency 'org.junit.platform:junit-platform-suite-api:1.10.2'
dependency 'org.junit.platform:junit-platform-suite-engine:1.10.2'
+ dependency 'com.sonarsource.pdfreport:security-report-pdf-generation:1.0.0.98'
dependency 'org.sonarsource.update-center:sonar-update-center-common:1.32.0.2441'
dependency("org.springframework:spring-context:${springVersion}") {
exclude 'commons-logging:commons-logging'
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.elasticsearch.search.sort.SortOrder;
import org.elasticsearch.transport.Netty4Plugin;
+import org.junit.jupiter.api.extension.AfterEachCallback;
+import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.rules.ExternalResource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.sonar.server.es.IndexType.FIELD_INDEX_TYPE;
import static org.sonar.server.es.newindex.DefaultIndexSettings.REFRESH_IMMEDIATE;
-public class EsTester extends ExternalResource {
+public class EsTester extends ExternalResource implements AfterEachCallback {
private static final int MIN_PORT = 1;
private static final int MAX_PORT = 49151;
create();
}
+ @Override
+ public void afterEach(ExtensionContext extensionContext) throws Exception {
+ after();
+ }
+
@Override
protected void after() {
if (isCustom) {