From b8414142a3e5720e3049b14f26a8359ec876012f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 13 Mar 2017 09:36:06 +0100 Subject: [PATCH] Cleanup (better names for updater test classes) --- ...rBinaryTest.java => BinaryPatchApplyingRevertingTest.java} | 4 ++-- ...chFileCreatorTest.java => PatchApplyingRevertingTest.java} | 2 +- .../updater/{PatchTest.java => PatchCreationTest.java} | 2 +- ...inaryTest.java => ZipAwarePatchApplyingRevertingTest.java} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename updater/testSrc/com/intellij/updater/{PatchFileCreatorBinaryTest.java => BinaryPatchApplyingRevertingTest.java} (90%) rename updater/testSrc/com/intellij/updater/{PatchFileCreatorTest.java => PatchApplyingRevertingTest.java} (99%) rename updater/testSrc/com/intellij/updater/{PatchTest.java => PatchCreationTest.java} (99%) rename updater/testSrc/com/intellij/updater/{PatchFileCreatorNotBinaryTest.java => ZipAwarePatchApplyingRevertingTest.java} (96%) diff --git a/updater/testSrc/com/intellij/updater/PatchFileCreatorBinaryTest.java b/updater/testSrc/com/intellij/updater/BinaryPatchApplyingRevertingTest.java similarity index 90% rename from updater/testSrc/com/intellij/updater/PatchFileCreatorBinaryTest.java rename to updater/testSrc/com/intellij/updater/BinaryPatchApplyingRevertingTest.java index 6cacfe93a6ef..7b9f9da38aee 100644 --- a/updater/testSrc/com/intellij/updater/PatchFileCreatorBinaryTest.java +++ b/updater/testSrc/com/intellij/updater/BinaryPatchApplyingRevertingTest.java @@ -15,10 +15,10 @@ */ package com.intellij.updater; -public class PatchFileCreatorBinaryTest extends PatchFileCreatorTest { +public class BinaryPatchApplyingRevertingTest extends PatchApplyingRevertingTest { @Override public void setUp() throws Exception { super.setUp(); myPatchSpec.setBinary(true); } -} +} \ No newline at end of file diff --git a/updater/testSrc/com/intellij/updater/PatchFileCreatorTest.java b/updater/testSrc/com/intellij/updater/PatchApplyingRevertingTest.java similarity index 99% rename from updater/testSrc/com/intellij/updater/PatchFileCreatorTest.java rename to updater/testSrc/com/intellij/updater/PatchApplyingRevertingTest.java index 96890bd97b99..7c8a476d70a4 100644 --- a/updater/testSrc/com/intellij/updater/PatchFileCreatorTest.java +++ b/updater/testSrc/com/intellij/updater/PatchApplyingRevertingTest.java @@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.*; import static org.junit.Assume.assumeTrue; -public abstract class PatchFileCreatorTest extends PatchTestCase { +public abstract class PatchApplyingRevertingTest extends PatchTestCase { private File myFile; protected PatchSpec myPatchSpec; diff --git a/updater/testSrc/com/intellij/updater/PatchTest.java b/updater/testSrc/com/intellij/updater/PatchCreationTest.java similarity index 99% rename from updater/testSrc/com/intellij/updater/PatchTest.java rename to updater/testSrc/com/intellij/updater/PatchCreationTest.java index 333a4e54f434..6aae7b9459e0 100644 --- a/updater/testSrc/com/intellij/updater/PatchTest.java +++ b/updater/testSrc/com/intellij/updater/PatchCreationTest.java @@ -31,7 +31,7 @@ import java.util.Map; import static org.assertj.core.api.Assertions.assertThat; -public class PatchTest extends PatchTestCase { +public class PatchCreationTest extends PatchTestCase { @Test public void testDigestFiles() throws Exception { Patch patch = createPatch(); diff --git a/updater/testSrc/com/intellij/updater/PatchFileCreatorNotBinaryTest.java b/updater/testSrc/com/intellij/updater/ZipAwarePatchApplyingRevertingTest.java similarity index 96% rename from updater/testSrc/com/intellij/updater/PatchFileCreatorNotBinaryTest.java rename to updater/testSrc/com/intellij/updater/ZipAwarePatchApplyingRevertingTest.java index 1a5ba4aab50d..32995c059a82 100644 --- a/updater/testSrc/com/intellij/updater/PatchFileCreatorNotBinaryTest.java +++ b/updater/testSrc/com/intellij/updater/ZipAwarePatchApplyingRevertingTest.java @@ -24,7 +24,7 @@ import java.io.IOException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; -public class PatchFileCreatorNotBinaryTest extends PatchFileCreatorTest { +public class ZipAwarePatchApplyingRevertingTest extends PatchApplyingRevertingTest { @Test public void failOnEmptyTargetJar() throws Exception { File sourceJar = new File(myOlderDir, "lib/empty.jar");