mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Ensure that context is destroyed on restart
This commit is contained in:
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.verify;
|
||||
class ExitRestartStrategyTest {
|
||||
|
||||
@Mock
|
||||
private RestartStrategy.InjectionContext context;
|
||||
private RestartStrategy.InternalInjectionContext context;
|
||||
|
||||
private ExitRestartStrategy strategy;
|
||||
private CapturingExiter exiter;
|
||||
|
||||
@@ -117,14 +117,13 @@ class RestartStrategyTest {
|
||||
}
|
||||
}
|
||||
|
||||
public static class TestingRestartStrategy implements RestartStrategy {
|
||||
public static class TestingRestartStrategy extends RestartStrategy {
|
||||
@Override
|
||||
public void restart(InjectionContext context) {
|
||||
|
||||
protected void executeRestart(InjectionContext context) {
|
||||
}
|
||||
}
|
||||
|
||||
public static class ComplexRestartStrategy implements RestartStrategy {
|
||||
public static class ComplexRestartStrategy extends RestartStrategy {
|
||||
|
||||
private final ClassLoader classLoader;
|
||||
|
||||
@@ -133,8 +132,7 @@ class RestartStrategyTest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void restart(InjectionContext context) {
|
||||
|
||||
protected void executeRestart(InjectionContext context) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user