Fix micronaut issue with new version
This commit is contained in:
parent
669901e93b
commit
8ec7d8851f
1 changed files with 2 additions and 13 deletions
|
@ -7,7 +7,6 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
|
||||||
import org.junit.jupiter.api.DisplayName;
|
import org.junit.jupiter.api.DisplayName;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -46,24 +45,14 @@ import jakarta.inject.Inject;
|
||||||
@MicronautTest(rebuildContext = true)
|
@MicronautTest(rebuildContext = true)
|
||||||
public abstract class AbstractFilterTest extends AbstractTest {
|
public abstract class AbstractFilterTest extends AbstractTest {
|
||||||
|
|
||||||
private static boolean INIT = false;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
SignatureGeneratorConfiguration signature;
|
SignatureGeneratorConfiguration signature;
|
||||||
@Inject
|
@Inject
|
||||||
EmbeddedServer embeddedServer;
|
EmbeddedServer embeddedServer;
|
||||||
|
|
||||||
@DisplayName("0 init")
|
@DisplayName("0 - trigger rebuild of context")
|
||||||
@Test
|
@Test
|
||||||
@BeforeEach
|
void rebuild() {}
|
||||||
void refresh() {
|
|
||||||
// https://github.com/micronaut-projects/micronaut-core/issues/5453#issuecomment-864594741
|
|
||||||
if (INIT) {
|
|
||||||
embeddedServer.refresh();
|
|
||||||
} else {
|
|
||||||
INIT = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// security
|
// security
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue