|
12 | 12 |
|
13 | 13 | import static java.lang.System.currentTimeMillis; |
14 | 14 | import static java.nio.file.Files.isDirectory; |
15 | | -import static org.junit.Assert.assertFalse; |
16 | | -import static org.junit.Assert.assertNotNull; |
17 | | -import static org.junit.Assert.assertTrue; |
18 | | -import static org.junit.Assert.fail; |
| 15 | +import static org.junit.Assert.*; |
19 | 16 |
|
20 | 17 | import java.io.File; |
21 | 18 | import java.io.IOException; |
|
29 | 26 | import java.util.ArrayList; |
30 | 27 | import java.util.Arrays; |
31 | 28 | import java.util.EnumSet; |
| 29 | +import java.util.HashMap; |
32 | 30 | import java.util.List; |
33 | 31 | import java.util.Set; |
34 | 32 | import java.util.concurrent.atomic.AtomicInteger; |
@@ -141,6 +139,8 @@ public void runtimeIsInjected() throws CoreException, IOException, InterruptedEx |
141 | 139 | public void surviveRestart() throws InterruptedException, CoreException, IOException { |
142 | 140 | Path installDir = expandAut(); |
143 | 141 | AutLaunch launch = startAut(installDir, List.of("-consoleLog")); |
| 142 | + ILaunchConfiguration originalConfiguration = launch.getAut().getConfig(); |
| 143 | + var originalAttributes = new HashMap<>(originalConfiguration.getAttributes()); |
144 | 144 | launch.ping(); |
145 | 145 | Command command = parse("restart-aut"); |
146 | 146 | int attemptCount = Integer.getInteger(Q7ExternalLaunchDelegateTest.class.getName() + ".restartAttempts", 3); |
@@ -171,6 +171,7 @@ public void surviveRestart() throws InterruptedException, CoreException, IOExcep |
171 | 171 | } |
172 | 172 | } |
173 | 173 | launch.ping(); |
| 174 | + assertEquals(originalAttributes, originalConfiguration.getAttributes()); |
174 | 175 | } |
175 | 176 | assertNoErrorsInOutput(); |
176 | 177 | } |
|
0 commit comments