|
1 | 1 | /*********************************************************************************** |
2 | | - * Copyright (c) 2018 /// Project SWG /// www.projectswg.com * |
| 2 | + * Copyright (c) 2025 /// Project SWG /// www.projectswg.com * |
3 | 3 | * * |
4 | | - * ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on * |
| 4 | + * ProjectSWG is an emulation project for Star Wars Galaxies founded on * |
5 | 5 | * July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. * |
6 | | - * Our goal is to create an emulator which will provide a server for players to * |
7 | | - * continue playing a game similar to the one they used to play. We are basing * |
8 | | - * it on the final publish of the game prior to end-game events. * |
| 6 | + * Our goal is to create one or more emulators which will provide servers for * |
| 7 | + * players to continue playing a game similar to the one they used to play. * |
9 | 8 | * * |
10 | 9 | * This file is part of Holocore. * |
11 | 10 | * * |
|
27 | 26 |
|
28 | 27 | package com.projectswg.holocore.test.runners; |
29 | 28 |
|
| 29 | +import com.projectswg.holocore.utilities.HolocoreCoroutine; |
30 | 30 | import me.joshlarson.jlcommon.control.IntentManager; |
31 | 31 | import org.junit.jupiter.api.AfterEach; |
32 | 32 | import org.junit.jupiter.api.BeforeEach; |
33 | 33 |
|
34 | 34 | public abstract class TestRunnerNoIntents extends TestRunner { |
35 | 35 |
|
36 | 36 | private static final IntentManager INTENT_MANAGER = new IntentManager(0); |
| 37 | + private HolocoreCoroutine holocoreCoroutine = null; |
37 | 38 |
|
38 | 39 | @BeforeEach |
39 | 40 | public void initializeIntents() { |
40 | 41 | IntentManager.setInstance(INTENT_MANAGER); |
| 42 | + holocoreCoroutine = new HolocoreCoroutine(); |
| 43 | + HolocoreCoroutine.Companion.getINSTANCE().set(holocoreCoroutine); |
41 | 44 | } |
42 | 45 |
|
43 | 46 | @AfterEach |
44 | 47 | public void terminateIntents() { |
45 | 48 | IntentManager.setInstance(null); |
| 49 | + holocoreCoroutine.close(); |
46 | 50 | } |
47 | 51 |
|
48 | 52 | } |
0 commit comments