AndroidStudio: code cleanup.

This commit is contained in:
Dennis Guse
2023-08-08 17:57:36 +02:00
parent 3910837d1a
commit 7530e1d120
12 changed files with 214 additions and 821 deletions
@@ -14,7 +14,7 @@ import de.dennisguse.opentracks.data.models.Track;
//TODO Merge with TrackFilenameGeneratorTest whenever Junit5 gets available.
//https://github.com/android/android-test/issues/224
@RunWith(Parameterized.class)
public class TrackFilenameGeneratorTest2 {
public class TrackFilenameGenerator2Test {
@Parameterized.Parameters
public static Collection<String> data() {
@@ -26,7 +26,7 @@ public class TrackFilenameGeneratorTest2 {
private final TrackFilenameGenerator subject;
public TrackFilenameGeneratorTest2(String template) {
public TrackFilenameGenerator2Test(String template) {
this.subject = new TrackFilenameGenerator(template);
}
@@ -112,7 +112,7 @@ public class ExportImportTest {
private TrackImporter trackImporter;
@Before
public void fileSetup() throws IOException, TimeoutException {
public void fileSetup() throws IOException {
TrackRecordingServiceTestUtils.resetService(mServiceRule, context);
tmpFile = File.createTempFile("test", "test", context.getFilesDir());
@@ -124,7 +124,7 @@ public class ExportImportTest {
}
@After
public void tearDown() throws TimeoutException {
public void tearDown() {
tmpFile.deleteOnExit();
tmpFileUri = null;