﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13018	[Patch] Use new test rules for AutosaveTaskTest, increase coverage.	michael2402	team	"Code coverage for AutosaveTask was 31%, is >80% now. Error checking is missing in tests but basic features should be covered.

This test requires some adjustments to AutosaveTask / Main:
- recoverUnsavedLayers returns a Future to wait for.
- recoverUnsavedLayers now waits until OpenFileTask is done before loading.
- Add a special call to mainPanel.reAddListeners to main at the right place to only add that listener if main is started (JOSMFixture does it's own add). Not nice but it is the best for now without throwing all of JOSM startup over.

And I added some code cleanup:
- addLayerChangeListener(..., true) fires the listener on every layer. This shortens the code.
- add documentation
- do not let tests clean the layers they added - JOSMTestRule does this."	enhancement	closed	normal	16.06	Unit tests		fixed	gsoc-core	Don-vip bastiK stoecker
