Fix Checkstyle warning introduced in forward merge (852ba546)
This commit is contained in:
parent
bee651fc17
commit
8f1f12be6a
|
|
@ -37,6 +37,7 @@ import org.junit.After;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
|
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
|
||||||
|
import org.springframework.boot.testutil.Matched;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.mock.env.MockEnvironment;
|
import org.springframework.mock.env.MockEnvironment;
|
||||||
|
|
@ -55,7 +56,6 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.hamcrest.CoreMatchers.isA;
|
import static org.hamcrest.CoreMatchers.isA;
|
||||||
import static org.springframework.boot.testutil.Matched.when;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for {@link CrshAutoConfiguration}.
|
* Tests for {@link CrshAutoConfiguration}.
|
||||||
|
|
@ -86,11 +86,11 @@ public class CrshAutoConfigurationTests {
|
||||||
PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
|
PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
|
||||||
assertThat(lifeCycle).isNotNull();
|
assertThat(lifeCycle).isNotNull();
|
||||||
assertThat(lifeCycle.getContext().getPlugins(TermIOHandler.class))
|
assertThat(lifeCycle.getContext().getPlugins(TermIOHandler.class))
|
||||||
.filteredOn(when(isA(ProcessorIOHandler.class))).isEmpty();
|
.filteredOn(Matched.when(isA(ProcessorIOHandler.class))).isEmpty();
|
||||||
assertThat(lifeCycle.getContext().getPlugins(AuthenticationPlugin.class))
|
assertThat(lifeCycle.getContext().getPlugins(AuthenticationPlugin.class))
|
||||||
.filteredOn(when(isA(JaasAuthenticationPlugin.class))).isEmpty();
|
.filteredOn(Matched.when(isA(JaasAuthenticationPlugin.class))).isEmpty();
|
||||||
assertThat(lifeCycle.getContext().getPlugins(Language.class))
|
assertThat(lifeCycle.getContext().getPlugins(Language.class))
|
||||||
.filteredOn(when(isA(JavaLanguage.class))).isEmpty();
|
.filteredOn(Matched.when(isA(JavaLanguage.class))).isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue