Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-06-01 15:45:00 -0400
committerFlorian Waibel2015-06-01 15:45:00 -0400
commit121031ee95abef9c0f56289960fa695f4b3ba2a6 (patch)
tree8940c25c4ee184809bab9bae8131f0f3f3c101a3 /org.eclipse.virgo.shell.command
parentd6196cba9568085a6d74f3de327fdebd8c217360 (diff)
downloadorg.eclipse.virgo.kernel-121031ee95abef9c0f56289960fa695f4b3ba2a6.tar.gz
org.eclipse.virgo.kernel-121031ee95abef9c0f56289960fa695f4b3ba2a6.tar.xz
org.eclipse.virgo.kernel-121031ee95abef9c0f56289960fa695f4b3ba2a6.zip
Reworks inner test classes to static inner classes
Diffstat (limited to 'org.eclipse.virgo.shell.command')
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/formatting/ConfigInstallArtifactCommandFormatterTests.java2
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/help/SimpleFileHelpAccessorTests.java10
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/formatting/ConfigInstallArtifactCommandFormatterTests.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/formatting/ConfigInstallArtifactCommandFormatterTests.java
index 3a258ba0..04a3046d 100644
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/formatting/ConfigInstallArtifactCommandFormatterTests.java
+++ b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/formatting/ConfigInstallArtifactCommandFormatterTests.java
@@ -45,7 +45,7 @@ public class ConfigInstallArtifactCommandFormatterTests {
assertOutputEquals(new File("src/test/resources/org/eclipse/virgo/kernel/shell/internal/formatting/config-examine.txt"), lines);
}
- public class StubManageableArtifact implements ManageableArtifact {
+ private static class StubManageableArtifact implements ManageableArtifact {
public ObjectName[] getDependents() {
throw new UnsupportedOperationException();
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/help/SimpleFileHelpAccessorTests.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/help/SimpleFileHelpAccessorTests.java
index 2f107731..88d6936f 100644
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/help/SimpleFileHelpAccessorTests.java
+++ b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/help/SimpleFileHelpAccessorTests.java
@@ -35,10 +35,10 @@ import org.junit.Test;
*/
public class SimpleFileHelpAccessorTests {
- private final static String HELP_ACCESSOR_TEST_FILE_NAME = "org.eclipse.virgo.shell.internal.help.SimpleFileHelpAccessorTests.help";
+ private static final String HELP_ACCESSOR_TEST_FILE_NAME = "org.eclipse.virgo.shell.internal.help.SimpleFileHelpAccessorTests.help";
- private final URL HELP_ACCESSOR_TEST_HELP_FILE_URL;
- {
+ private static final URL HELP_ACCESSOR_TEST_HELP_FILE_URL;
+ static {
URL url = null;
try {
url = new File("src/test/resources/helpAccessorTests.help").toURI().toURL();
@@ -48,7 +48,7 @@ public class SimpleFileHelpAccessorTests {
HELP_ACCESSOR_TEST_HELP_FILE_URL = url;
}
- private class AccessorTestClass extends SimpleFileHelpAccessor {
+ private static class AccessorTestClass extends SimpleFileHelpAccessor {
protected URL helpResourceUrl(Class<?> clazz, String fileResourceName) {
assertEquals("File resource name not correctly formed from classname", HELP_ACCESSOR_TEST_FILE_NAME, fileResourceName);
@@ -56,7 +56,7 @@ public class SimpleFileHelpAccessorTests {
}
}
- private class NoHelpAccessorTestClass extends SimpleFileHelpAccessor {
+ private static class NoHelpAccessorTestClass extends SimpleFileHelpAccessor {
protected URL helpResourceUrl(Class<?> clazz, String fileResourceName) {
return null;

Back to the top