added proper super.tearDown call to CourseUpdateTest which should avoid orphan threads and receivers

This commit is contained in:
Axel Uhl committed 2011-12-19 13:37:20 +01:00
1 parent e9975f81a6
commit e3548080eb
3 files changed
+4 -3

No files matched your search

@@ -66,7 +66,7 @@ public abstract class AbstractTracTracLiveTest extends StoredTrackBasedTest impl
// Initialize data controller using live and stored data sources
controller = new DataController(liveUri, storedUri, this);
// Start live and stored data streams
ioThread = new Thread(controller, "io");
ioThread = new Thread(controller, "I/O for event "+event.getName()+", paramURL "+paramUrl);
// test cases need to start the thread calling startController
// after adding their listeners
}
@@ -269,7 +269,8 @@ public class CourseUpdateTest extends AbstractTracTracLiveTest {
}
@After
public void tearDown() {
public void tearDown() throws MalformedURLException, IOException {
super.tearDown();
routeData[0] = null;
}
}
@@ -112,7 +112,7 @@ public class TracTracRaceTrackerImpl extends AbstractRaceTrackerImpl implements
// Initialize data controller using live and stored data sources
controller = new DataController(liveURI, storedURI, this);
// Start live and stored data streams
ioThread = new Thread(controller, "io");
ioThread = new Thread(controller, "I/O for event "+tractracEvent.getName()+", race URL "+paramURL);
for (Race tractracRace : tractracEvent.getRaceList()) {
// removeRace may detach the domain event from the domain factory if that
// removed the last race; therefore, it's important to getOrCreate the