From edc84f99483862bd0b095dad4bdd9dd9b82d8273 Mon Sep 17 00:00:00 2001 From: Petr Beran Date: Sun, 30 Jun 2024 00:06:44 +0200 Subject: [PATCH] [ARQ-2230] Integrate the checkstyle plugin (#540) * [ARQ-2230] Add the checkstyle plugin * [ARQ-2230] Resolve trailing spaces * [ARQ-2230] Remove unused imports * [ARQ-2230] Remove redundant modifiers * [ARQ-2230] Resolve incorrect modifiers order * [ARQ-2230] Resolve incorrectly placed left curly bracket * [ARQ-2230] Remove empty statements * [ARQ-2230] Resolving issues introduced by commit b094f44 --------- Co-authored-by: Scott M Stark --- .../config/descriptor/api/EngineDef.java | 2 +- .../config/descriptor/impl/EngineDefImpl.java | 2 +- .../extension/ClasspathPropertyResolver.java | 2 +- .../impl/extension/ConfigExtension.java | 2 +- .../extension/ConfigurationRegistrar.java | 1 - .../config/impl/extension/FileUtils.java | 4 +- .../impl/extension/PropertiesParser.java | 4 +- .../extension/StringPropertyReplacer.java | 3 +- .../extension/PropertiesParserTestCase.java | 6 +-- .../SyspropReplacementInArqXmlTestCase.java | 19 --------- .../container/impl/ContainerExtension.java | 2 +- .../impl/FilteredURLClassLoader.java | 3 +- .../container/impl/SecurityActions.java | 4 +- .../ContainerDeploymentContextHandler.java | 2 +- .../container/ContainerDeployController.java | 4 +- .../ContainerLifecycleController.java | 2 +- .../container/DeploymentExceptionHandler.java | 8 ++-- .../client/container/SecurityActions.java | 4 +- .../client/deployment/SecurityActions.java | 4 +- .../ContainerDeployControllerTestCase.java | 3 +- .../ContainerLifecycleControllerTestCase.java | 2 +- .../DeploymentExceptionHandlerTestCase.java | 4 +- .../test/AbstractContainerTestBase.java | 2 +- .../arquillian/container/spi/Container.java | 2 +- .../container/spi/ContainerRegistry.java | 4 +- .../DeploymentExceptionTransformer.java | 2 +- .../spi/client/deployment/Deployment.java | 2 +- .../client/protocol/metadata/JMXContext.java | 4 +- .../spi/event/ContainerControlEvent.java | 2 +- .../spi/event/ContainerMultiControlEvent.java | 2 +- .../container/spi/event/DeployDeployment.java | 2 +- .../spi/event/DeployManagedDeployments.java | 2 +- .../container/spi/event/DeploymentEvent.java | 4 +- .../container/spi/event/KillContainer.java | 2 +- .../container/spi/event/SetupContainer.java | 2 +- .../container/spi/event/SetupContainers.java | 2 +- .../container/spi/event/StartContainer.java | 2 +- .../spi/event/StartSuiteContainers.java | 2 +- .../container/spi/event/StopContainer.java | 2 +- .../spi/event/StopManualContainers.java | 2 +- .../spi/event/StopSuiteContainers.java | 2 +- .../spi/event/UnDeployDeployment.java | 2 +- .../spi/event/UnDeployManagedDeployments.java | 2 +- .../DeploymentScenarioTestCase.java | 4 +- .../container/test/api/Deployer.java | 6 +-- .../test/impl/ClientTestInstanceEnricher.java | 2 +- .../test/impl/ContainerTestExtension.java | 2 +- .../impl/ContainerTestRemoteExtension.java | 2 +- .../container/test/impl/RunModeUtils.java | 2 +- .../container/test/impl/SecurityActions.java | 4 +- .../impl/client/ContainerEventController.java | 8 ++-- .../test/impl/client/LocalCommandService.java | 2 +- .../container/ClientContainerController.java | 2 +- .../ClientContainerControllerCreator.java | 3 +- .../ContainerContainerController.java | 2 +- .../ContainerContainerControllerCreator.java | 3 +- .../command/ContainerCommandObserver.java | 2 +- .../command/ContainerStartedCommand.java | 2 +- .../command/KillContainerCommand.java | 2 +- .../command/StartContainerCommand.java | 2 +- .../command/StopContainerCommand.java | 2 +- .../client/deployment/ClientDeployer.java | 2 +- .../deployment/ClientDeployerCreator.java | 2 +- .../client/deployment/ContainerDeployer.java | 2 +- .../deployment/ContainerDeployerCreator.java | 2 +- .../deployment/DeploymentGenerator.java | 4 +- .../deployment/command/AbstractCommand.java | 2 +- .../command/DeployDeploymentCommand.java | 2 +- .../command/DeploymentCommandObserver.java | 2 +- .../command/GetDeploymentCommand.java | 2 +- .../command/UnDeployDeploymentCommand.java | 2 +- .../deployment/event/GenerateDeployment.java | 2 +- .../ArchiveDeploymentToolingExporter.java | 9 ++--- .../local/LocalContainerMethodExecutor.java | 4 +- .../resource/ContainerControllerProvider.java | 2 +- .../ContainerURIResourceProvider.java | 2 +- .../ContainerURLResourceProvider.java | 2 +- .../enricher/resource/DeployerProvider.java | 2 +- .../resource/InitialContextProvider.java | 4 +- .../resource/URIResourceProvider.java | 2 +- .../resource/URLResourceProvider.java | 2 +- .../impl/execution/LocalTestExecuter.java | 1 - .../ContainerEventControllerTestCase.java | 2 +- .../ClientContainerControllerTestCase.java | 2 +- ...onDeploymentScenarioGeneratorTestCase.java | 2 +- .../deployment/ClientDeployerTestCase.java | 2 +- .../DeploymentGeneratorTestCase.java | 1 - .../ToolingDeploymentFormatterTestCase.java | 2 +- .../execution/ClientTestExecuterTestCase.java | 2 +- .../test/AbstractContainerTestTestBase.java | 2 +- .../test/spi/RemoteLoadableExtension.java | 2 +- .../deployment/ProtocolArchiveProcessor.java | 2 +- .../container/test/spi/command/Command.java | 2 +- .../test/spi/command/CommandCallback.java | 2 +- .../test/spi/command/CommandService.java | 2 +- .../test/spi/util/SecurityActions.java | 4 +- .../test/spi/util/ServiceLoader.java | 2 +- .../core/api/event/ManagerStopping.java | 2 +- .../core/impl/EventContextImpl.java | 2 +- .../arquillian/core/impl/ManagerImpl.java | 3 +- .../arquillian/core/impl/SecurityActions.java | 6 +-- .../loadable/LoadableExtensionLoader.java | 2 +- .../core/impl/loadable/SecurityActions.java | 6 +-- .../core/impl/loadable/ServiceRegistry.java | 2 +- .../threading/ThreadedExecutorService.java | 2 +- .../core/impl/ExceptionHandlingTestCase.java | 2 +- .../core/impl/ManagerProcessingTestCase.java | 2 +- .../impl/ObserverInterceptorTestCase.java | 2 +- ...erverMethodAvailabilityFilterTestCase.java | 2 +- .../JavaSPIExtensionLoaderTestCase.java | 2 +- .../LoadableExtensionLoaderTestCase.java | 2 +- .../ServiceRegistryLoaderTestCase.java | 2 +- .../util/PackageProtectedService.java | 4 +- .../core/test/AbstractManagerTestBase.java | 2 +- .../test/context/ManagerTest2Context.java | 2 +- .../test/context/ManagerTest2ContextImpl.java | 2 +- .../core/test/context/ManagerTest2Scoped.java | 2 +- .../core/test/context/ManagerTestContext.java | 2 +- .../test/context/ManagerTestContextImpl.java | 2 +- .../core/test/context/ManagerTestScoped.java | 2 +- .../arquillian/core/spi/EventContext.java | 2 +- .../arquillian/core/spi/ExtensionLoader.java | 2 +- .../core/spi/LoadableExtension.java | 8 ++-- .../core/spi/NonManagedObserver.java | 2 +- .../arquillian/core/spi/SecurityActions.java | 6 +-- .../core/spi/context/AbstractContext.java | 2 +- .../core/spi/context/ObjectStore.java | 4 +- .../core/spi/event/ManagerProcessing.java | 2 +- .../container/ContainerClassRulesFilter.java | 2 +- .../container/JUnitContainerExtension.java | 2 +- .../junit/container/JUnitRemoteExtension.java | 2 +- .../junit/container/JUnitTestRunner.java | 1 - .../ClassWithArquillianRunnerWithRules.java | 1 - .../junit/container/JUnitTestBaseClass.java | 6 +-- .../jboss/arquillian/junit/Arquillian.java | 8 ++-- .../arquillian/junit/MethodRuleChain.java | 14 +++---- .../arquillian/junit/SecurityActions.java | 6 +-- .../org/jboss/arquillian/junit/State.java | 2 +- ...ClassWithArquillianClassAndMethodRule.java | 18 +++------ ...assAndMethodRuleWithExpectedException.java | 18 +++------ .../junit/ClassWithArquillianRunner.java | 3 +- ...ArquillianRunnerWithExpectedException.java | 18 +++------ .../InitializationExceptionTestCase.java | 16 ++++---- .../arquillian/junit/JUnitTestBaseClass.java | 6 +-- .../standalone/JUnitStandaloneExtension.java | 2 +- .../standalone/LocalTestMethodExecutor.java | 3 +- .../arquillian/junit/JUnitTestBaseClass.java | 5 +-- ...WithArquillianExtensionWithExtensions.java | 2 +- .../jboss/arquillian/junit5/ContextStore.java | 2 +- .../junit5/IdentifiedTestException.java | 2 +- pom.xml | 39 +++++++++++++++++++ .../protocol/jmx/JMXCommandService.java | 2 +- .../protocol/jmx/JMXMethodExecutor.java | 2 +- .../jmx/JMXProtocolConfiguration.java | 2 +- .../protocol/jmx/JMXTestRunnerMBean.java | 4 +- .../arquillian/protocol/jmx/Serializer.java | 2 +- .../protocol/jmx/test/JMXTestTestRunner.java | 2 +- .../jmx/test/TestCommandCallback.java | 2 +- .../protocol/jmx/test/TestIntegerCommand.java | 2 +- .../protocol/jmx/test/TestStringCommand.java | 2 +- .../protocol/servlet/BaseServletProtocol.java | 2 +- .../protocol/servlet/ServletExtension.java | 2 +- .../protocol/servlet/ServletUtil.java | 2 +- .../servlet/runner/SecurityActions.java | 4 +- .../servlet/runner/ServletCommandService.java | 2 +- .../runner/ServletRemoteExtension.java | 2 +- .../protocol/servlet/v_2_5/WebUtils.java | 2 +- .../protocol/servlet/AbstractServerBase.java | 2 +- .../servlet/BaseServletProtocolTestCase.java | 8 ++-- .../ServletCommandServiceTestCase.java | 12 +++--- .../servlet/test/TestCommandCallback.java | 2 +- .../servlet/test/TestIntegerCommand.java | 2 +- .../servlet/test/TestStringCommand.java | 2 +- ...letProtocolDeploymentPackagerTestCase.java | 4 +- ...letProtocolDeploymentPackagerTestCase.java | 2 +- .../test/impl/TestContextHandler.java | 2 +- .../impl/TestExecutionDeciderComparator.java | 4 +- .../arquillian/test/impl/TestExtension.java | 2 +- .../enricher/resource/SecurityActions.java | 6 +-- ...rquillianResourceTestEnricherTestCase.java | 3 -- .../test/test/AbstractTestTestBase.java | 2 +- .../test/spi/CombinedException.java | 2 +- .../arquillian/test/spi/ExceptionProxy.java | 3 +- .../arquillian/test/spi/SecurityActions.java | 6 +-- .../jboss/arquillian/test/spi/TestResult.java | 2 +- .../spi/event/enrichment/AfterEnrichment.java | 2 +- .../event/enrichment/BeforeEnrichment.java | 2 +- .../spi/event/enrichment/EnrichmentEvent.java | 2 +- .../test/spi/execution/ExecutionDecision.java | 4 +- .../SkippedTestExecutionException.java | 4 +- .../spi/execution/TestExecutionDecider.java | 2 +- .../ExceptionProxySerializationTestCase.java | 2 +- .../test/spi/ExceptionProxyTestCase.java | 4 +- .../test/spi/TestResultFlattenTest.java | 4 +- .../arquillian/test/spi/UnknownException.java | 2 +- .../cdi/CreationalContextDestroyer.java | 2 +- .../cdi/MethodParameterInjectionPoint.java | 4 +- .../testenricher/cdi/SecurityActions.java | 4 +- .../cdi/client/BeansXMLProtocolProcessor.java | 2 +- .../client/CDIEnricherArchiveAppender.java | 2 +- .../cdi/client/CDIEnricherExtension.java | 2 +- .../container/CDIEnricherRemoteExtension.java | 2 +- .../BeansXMLProtocolProcessorTestCase.java | 2 +- .../cdi/beans/AbstractService.java | 2 +- .../ejb/EJBInjectionEnricher.java | 4 +- .../testenricher/ejb/SecurityActions.java | 4 +- .../client/EJBEnricherArchiveAppender.java | 2 +- .../ejb/client/EJBEnricherExtension.java | 2 +- .../container/EJBEnricherRemoteExtension.java | 2 +- .../ejb/EJBInjectionEnricherBase.java | 4 +- .../InitialContextProducer.java | 2 +- .../client/InitialContextArchiveAppender.java | 2 +- .../client/InitialContextExtension.java | 2 +- .../InitialContextRemoteExtension.java | 2 +- .../resource/SecurityActions.java | 4 +- .../ResourceEnricherArchiveAppender.java | 2 +- .../client/ResourceEnricherExtension.java | 2 +- .../ResourceEnricherRemoteExtension.java | 2 +- .../container/RemoveDependsOnTransformer.java | 2 +- .../container/TestNGContainerExtension.java | 2 +- .../container/TestNGDeploymentAppender.java | 4 +- ...ovideConfigurationFailureToTestRunner.java | 2 +- ...ProvideVariousTestResultsToTestRunner.java | 2 +- .../jboss/arquillian/testng/Arquillian.java | 3 +- .../org/jboss/arquillian/testng/State.java | 2 +- .../testng/TestDataProviderTransformer.java | 2 +- .../testng/TestNGIntegrationTestCase.java | 1 - .../testng/TestNGTestBaseClass.java | 5 +-- .../standalone/LocalTestMethodExecutor.java | 1 - .../standalone/TestNGStandaloneExtension.java | 2 +- 230 files changed, 344 insertions(+), 407 deletions(-) diff --git a/config/api/src/main/java/org/jboss/arquillian/config/descriptor/api/EngineDef.java b/config/api/src/main/java/org/jboss/arquillian/config/descriptor/api/EngineDef.java index 1c3790f5a..7a172d145 100644 --- a/config/api/src/main/java/org/jboss/arquillian/config/descriptor/api/EngineDef.java +++ b/config/api/src/main/java/org/jboss/arquillian/config/descriptor/api/EngineDef.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/descriptor/impl/EngineDefImpl.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/descriptor/impl/EngineDefImpl.java index c147e159b..b9052bcc2 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/descriptor/impl/EngineDefImpl.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/descriptor/impl/EngineDefImpl.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ClasspathPropertyResolver.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ClasspathPropertyResolver.java index 6b06fa735..821ab474e 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ClasspathPropertyResolver.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ClasspathPropertyResolver.java @@ -5,7 +5,7 @@ class ClasspathPropertyResolver implements PropertyResolver { - private final static Logger logger = Logger.getLogger(ClasspathConfigurationPlaceholderResolver.class.getName()); + private static final Logger logger = Logger.getLogger(ClasspathConfigurationPlaceholderResolver.class.getName()); /** * Classpath base property diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigExtension.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigExtension.java index dd2b99485..3751209ae 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigExtension.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigurationRegistrar.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigurationRegistrar.java index 7f37b2243..68fc7c0eb 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigurationRegistrar.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/ConfigurationRegistrar.java @@ -17,7 +17,6 @@ package org.jboss.arquillian.config.impl.extension; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/FileUtils.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/FileUtils.java index 60724372b..17f952e79 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/FileUtils.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/FileUtils.java @@ -95,7 +95,7 @@ static class FileName { private String name; private boolean isDefault; - public FileName(String name, boolean isDefault) { + FileName(String name, boolean isDefault) { this.name = name; this.isDefault = isDefault; } @@ -108,4 +108,4 @@ public boolean isDefault() { return isDefault; } } -} \ No newline at end of file +} diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/PropertiesParser.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/PropertiesParser.java index 6a7895746..ff7e4fd10 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/PropertiesParser.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/PropertiesParser.java @@ -229,7 +229,7 @@ protected void handle(Matcher matcher, String value, ArquillianDescriptor descri } private class Extension extends Handler { - public Extension(String expression) { + Extension(String expression) { super(expression); } @@ -249,7 +249,7 @@ protected void handle(Matcher matcher, String value, ArquillianDescriptor descri } private class Container extends Handler { - public Container(String expression) { + Container(String expression) { super(expression); } diff --git a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/StringPropertyReplacer.java b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/StringPropertyReplacer.java index 862730b3d..abefb3e8f 100644 --- a/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/StringPropertyReplacer.java +++ b/config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/StringPropertyReplacer.java @@ -153,8 +153,7 @@ else if (c == '}' && state == IN_BRACKET) { // No content if (start + 2 == i) { buffer.append("${}"); // REVIEW: Correct? - } else // Collect the system property - { + } else { // Collect the system property String value; String key = string.substring(start + 2, i); diff --git a/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/PropertiesParserTestCase.java b/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/PropertiesParserTestCase.java index d9fab4230..e45ea0ff5 100644 --- a/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/PropertiesParserTestCase.java +++ b/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/PropertiesParserTestCase.java @@ -470,14 +470,14 @@ public String get() { @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfDescriptorIsNull() { - new PropertiesParser().addProperties(null, System.getProperties()); + new PropertiesParser().addProperties(null, System.getProperties()); } @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfPropertiesIsNull() { - new PropertiesParser().addProperties(desc, null); + new PropertiesParser().addProperties(desc, null); } - + private void validate(String property, String value, ValueCallback callback) { validate(property, value, value, callback); } diff --git a/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/SyspropReplacementInArqXmlTestCase.java b/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/SyspropReplacementInArqXmlTestCase.java index d34631a60..39273cce5 100644 --- a/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/SyspropReplacementInArqXmlTestCase.java +++ b/config/impl-base/src/test/java/org/jboss/arquillian/config/impl/extension/SyspropReplacementInArqXmlTestCase.java @@ -16,29 +16,10 @@ */ package org.jboss.arquillian.config.impl.extension; -import java.util.Arrays; -import java.util.List; -import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor; import org.jboss.arquillian.config.descriptor.impl.AssertXPath; -import org.jboss.arquillian.config.spi.ConfigurationPlaceholderResolver; -import org.jboss.arquillian.core.api.Instance; -import org.jboss.arquillian.core.api.annotation.Inject; -import org.jboss.arquillian.core.spi.Manager; -import org.jboss.arquillian.core.spi.ServiceLoader; -import org.jboss.arquillian.core.spi.context.Context; -import org.jboss.arquillian.core.test.AbstractManagerTestBase; -import org.jboss.arquillian.test.impl.context.SuiteContextImpl; -import org.jboss.arquillian.test.spi.annotation.SuiteScoped; -import org.jboss.arquillian.test.spi.context.ClassContext; -import org.jboss.arquillian.test.spi.context.SuiteContext; -import org.jboss.arquillian.test.spi.context.TestContext; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.junit.MockitoJUnitRunner; /** * Test Cases to ensure that the arquillian.xml loaded by diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/ContainerExtension.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/ContainerExtension.java index 3acb0ba25..93a452604 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/ContainerExtension.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/ContainerExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/FilteredURLClassLoader.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/FilteredURLClassLoader.java index 9a7aca04f..45f17c536 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/FilteredURLClassLoader.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/FilteredURLClassLoader.java @@ -43,8 +43,7 @@ public java.lang.Class loadClass(String name, boolean resolve) throws ClassNo c = super.findClass(name); } } - if (c != null) // class found locally - { + if (c != null) { // class found locally return c; } } diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/SecurityActions.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/SecurityActions.java index bb17f7208..0677a6041 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/SecurityActions.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/ContainerDeploymentContextHandler.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/ContainerDeploymentContextHandler.java index 34e3a6691..2a5e9c4f5 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/ContainerDeploymentContextHandler.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/ContainerDeploymentContextHandler.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployController.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployController.java index 50edf147e..c5b736a56 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployController.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployController.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -136,7 +136,7 @@ public Void call() throws Exception { DeployableContainer deployableContainer = event.getDeployableContainer(); Deployment deployment = event.getDeployment(); DeploymentDescription deploymentDescription = deployment.getDescription(); - + /* * TODO: should the DeploymentDescription producer some how be automatically registered ? * Or should we just 'know' who is the first one to create the context diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleController.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleController.java index 0a6afdbba..c1dab5d06 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleController.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleController.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandler.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandler.java index 5bbb46ea8..d7487dc33 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandler.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandler.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -69,16 +69,16 @@ public void verifyExpectedExceptionDuringDeploy(@Observes EventContext context) throws Exception { - DeploymentDescription deployment = context.getEvent().getDeployment(); + DeploymentDescription deployment = context.getEvent().getDeployment(); try { context.proceed(); } - catch (Exception e) + catch (Exception e) { if(deployment.getExpectedException() == null) { diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/SecurityActions.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/SecurityActions.java index 9c4b3ed6d..eaba1bc28 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/SecurityActions.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/deployment/SecurityActions.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/deployment/SecurityActions.java index 5fba53bb9..029f372d3 100644 --- a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/deployment/SecurityActions.java +++ b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/deployment/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployControllerTestCase.java b/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployControllerTestCase.java index 3c092cc36..3a9de3709 100644 --- a/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployControllerTestCase.java +++ b/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerDeployControllerTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -20,7 +20,6 @@ import org.jboss.arquillian.config.descriptor.api.ContainerDef; import org.jboss.arquillian.container.impl.LocalContainerRegistry; import org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler; -import org.jboss.arquillian.container.impl.client.container.ContainerLifecycleControllerTestCase.DummyContainerConfiguration; import org.jboss.arquillian.container.spi.Container.State; import org.jboss.arquillian.container.spi.ContainerRegistry; import org.jboss.arquillian.container.spi.client.container.DeployableContainer; diff --git a/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleControllerTestCase.java b/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleControllerTestCase.java index 53191ea94..883f56f64 100644 --- a/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleControllerTestCase.java +++ b/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/ContainerLifecycleControllerTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandlerTestCase.java b/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandlerTestCase.java index d4e118ce8..7ba5441d3 100644 --- a/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandlerTestCase.java +++ b/container/impl-base/src/test/java/org/jboss/arquillian/container/impl/client/container/DeploymentExceptionHandlerTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -193,7 +193,7 @@ private static class MyDeploymentException extends Exception { private DeploymentException deploymentException; - public MyDeploymentException(String message, Throwable cause) { + MyDeploymentException(String message, Throwable cause) { super(message); this.deploymentException = new DeploymentException("Could not deploy", cause); } diff --git a/container/impl-base/src/test/java/org/jboss/arquillian/container/test/AbstractContainerTestBase.java b/container/impl-base/src/test/java/org/jboss/arquillian/container/test/AbstractContainerTestBase.java index 1d6db51ba..6dcdc5fee 100644 --- a/container/impl-base/src/test/java/org/jboss/arquillian/container/test/AbstractContainerTestBase.java +++ b/container/impl-base/src/test/java/org/jboss/arquillian/container/test/AbstractContainerTestBase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/Container.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/Container.java index 8ef4c6d37..b057efb02 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/Container.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/Container.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/ContainerRegistry.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/ContainerRegistry.java index 38474da15..82143d1a6 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/ContainerRegistry.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/ContainerRegistry.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -40,4 +40,4 @@ public interface ContainerRegistry { List getContainers(); Container getContainer(TargetDescription target); -} \ No newline at end of file +} diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/container/DeploymentExceptionTransformer.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/container/DeploymentExceptionTransformer.java index ae197172f..e2a0c7889 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/container/DeploymentExceptionTransformer.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/container/DeploymentExceptionTransformer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/deployment/Deployment.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/deployment/Deployment.java index 0d549a3f8..c12e2b54c 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/deployment/Deployment.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/deployment/Deployment.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/protocol/metadata/JMXContext.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/protocol/metadata/JMXContext.java index a054c1b4f..9f69ef8e1 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/protocol/metadata/JMXContext.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/client/protocol/metadata/JMXContext.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -104,7 +104,7 @@ public String toString() { private static class JMXConnectorReference extends WeakReference { private JMXConnector connector; - public JMXConnectorReference(final MBeanServerConnection connection, JMXConnector connector) { + JMXConnectorReference(final MBeanServerConnection connection, JMXConnector connector) { super(connection); this.connector = connector; } diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerControlEvent.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerControlEvent.java index 27a75fe1c..599eef53c 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerControlEvent.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerControlEvent.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerMultiControlEvent.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerMultiControlEvent.java index d0ff6c583..c281c5ec6 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerMultiControlEvent.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/ContainerMultiControlEvent.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployDeployment.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployDeployment.java index aa84ec9a0..0f0745604 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployDeployment.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployDeployment.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployManagedDeployments.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployManagedDeployments.java index 1a4fb736e..73c906957 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployManagedDeployments.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeployManagedDeployments.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeploymentEvent.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeploymentEvent.java index c0b55e8ac..6dea52ad6 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeploymentEvent.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/DeploymentEvent.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -48,4 +48,4 @@ public DeployableContainer getDeployableContainer() { public Deployment getDeployment() { return deployment; } -} \ No newline at end of file +} diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/KillContainer.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/KillContainer.java index 8c8d70731..28ea3c0ef 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/KillContainer.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/KillContainer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainer.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainer.java index ea4891571..883793cce 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainer.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainers.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainers.java index e44820139..6312b94f9 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainers.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/SetupContainers.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartContainer.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartContainer.java index e3e1b35c9..9d3ce059e 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartContainer.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartContainer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartSuiteContainers.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartSuiteContainers.java index 1b484487c..ff6bf3ef4 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartSuiteContainers.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartSuiteContainers.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopContainer.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopContainer.java index b0f5fdb8d..a5d8e36e5 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopContainer.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopContainer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopManualContainers.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopManualContainers.java index 9e2b9200d..9669ad842 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopManualContainers.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopManualContainers.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopSuiteContainers.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopSuiteContainers.java index 5045551e4..2719d6abd 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopSuiteContainers.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopSuiteContainers.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployDeployment.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployDeployment.java index df0c1b2d9..8449fe926 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployDeployment.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployDeployment.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployManagedDeployments.java b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployManagedDeployments.java index c5e045488..5951a0ad2 100644 --- a/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployManagedDeployments.java +++ b/container/spi/src/main/java/org/jboss/arquillian/container/spi/event/UnDeployManagedDeployments.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/spi/src/test/java/org/jboss/arquillian/spi/client/deployment/DeploymentScenarioTestCase.java b/container/spi/src/test/java/org/jboss/arquillian/spi/client/deployment/DeploymentScenarioTestCase.java index 7c183728f..46e30e126 100644 --- a/container/spi/src/test/java/org/jboss/arquillian/spi/client/deployment/DeploymentScenarioTestCase.java +++ b/container/spi/src/test/java/org/jboss/arquillian/spi/client/deployment/DeploymentScenarioTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -36,7 +36,7 @@ * @version $Revision: $ */ public class DeploymentScenarioTestCase { - private final static String DEFAULT_NAME = DeploymentTargetDescription.DEFAULT.getName(); + private static final String DEFAULT_NAME = DeploymentTargetDescription.DEFAULT.getName(); /** * Defaulting rules for Deployment in a scenario diff --git a/container/test-api/src/main/java/org/jboss/arquillian/container/test/api/Deployer.java b/container/test-api/src/main/java/org/jboss/arquillian/container/test/api/Deployer.java index c1e1ec0a3..0b880b65c 100644 --- a/container/test-api/src/main/java/org/jboss/arquillian/container/test/api/Deployer.java +++ b/container/test-api/src/main/java/org/jboss/arquillian/container/test/api/Deployer.java @@ -84,7 +84,7 @@ public interface Deployer { * @param name * The name of the deployment */ - public void deploy(String name); + void deploy(String name); /** * Get the Deployment byte content. @@ -94,7 +94,7 @@ public interface Deployer { * * @return a Zipped Stream of the Archive */ - public InputStream getDeployment(String name); + InputStream getDeployment(String name); /** * UnDeploy a named deployment.
@@ -103,5 +103,5 @@ public interface Deployer { * @param name * The name of the deployment */ - public void undeploy(String name); + void undeploy(String name); } diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ClientTestInstanceEnricher.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ClientTestInstanceEnricher.java index 1953091dd..89c859522 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ClientTestInstanceEnricher.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ClientTestInstanceEnricher.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestExtension.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestExtension.java index fbaf166b5..b45dcb03f 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestExtension.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestRemoteExtension.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestRemoteExtension.java index af198fb36..41e797b5e 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestRemoteExtension.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/ContainerTestRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/RunModeUtils.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/RunModeUtils.java index 505831314..019453878 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/RunModeUtils.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/RunModeUtils.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/SecurityActions.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/SecurityActions.java index 70e8b7189..f60b8bc55 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/SecurityActions.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/ContainerEventController.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/ContainerEventController.java index 0dfc53908..2e2fcab0c 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/ContainerEventController.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/ContainerEventController.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -130,11 +130,11 @@ private void createContext(EventContext context) { lookup(context.getEvent().getTestMethod(), new DeActivate()); } } - + /* * Internal Helpers needed to extract @OperatesOnDeployment from TestMethod. - * - * TODO: This should not rely on direct Reflection, but rather access the metadata through some + * + * TODO: This should not rely on direct Reflection, but rather access the metadata through some * common metadata layer. */ diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/LocalCommandService.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/LocalCommandService.java index cf2a202e0..9618bcf63 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/LocalCommandService.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/LocalCommandService.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerController.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerController.java index f7f57a197..615afafa9 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerController.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerController.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerCreator.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerCreator.java index 970b3227c..d53ff0c62 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerCreator.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerCreator.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -45,4 +45,3 @@ public void createClientSideContainerController(@Observes SetupContainers event) } } - \ No newline at end of file diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerController.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerController.java index 73367af15..64a2e14f6 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerController.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerController.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerControllerCreator.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerControllerCreator.java index 5bf5455fd..17c26b948 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerControllerCreator.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/ContainerContainerControllerCreator.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -45,4 +45,3 @@ public void createContainerSideContainerController(@Observes BeforeSuite event) } } - \ No newline at end of file diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerCommandObserver.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerCommandObserver.java index 2ff002909..a9f3a0899 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerCommandObserver.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerCommandObserver.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerStartedCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerStartedCommand.java index 10ddbb09b..f0f3dedec 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerStartedCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/ContainerStartedCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/KillContainerCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/KillContainerCommand.java index 91bbba3df..08308b594 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/KillContainerCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/KillContainerCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StartContainerCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StartContainerCommand.java index 7e7412ffe..0caab8c09 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StartContainerCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StartContainerCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StopContainerCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StopContainerCommand.java index 590e05749..59983919d 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StopContainerCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/container/command/StopContainerCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployer.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployer.java index 49e91047f..959efd209 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployer.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerCreator.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerCreator.java index 748d86611..6b6fcbced 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerCreator.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerCreator.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployer.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployer.java index 0ecd10010..113395bad 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployer.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployerCreator.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployerCreator.java index 86f9a31e2..06b238a9c 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployerCreator.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/ContainerDeployerCreator.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGenerator.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGenerator.java index ed860da3b..2f4a01d8a 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGenerator.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGenerator.java @@ -229,8 +229,8 @@ private void buildTestableDeployments(DeploymentScenario scenario, TestClass tes /* * Quick Fix: https://jira.jboss.org/jira/browse/ARQ-118 * Keep in mind when rewriting for https://jira.jboss.org/jira/browse/ARQ-94 - * that a ShrinkWrap archive might not support a Container if even tho the - * ContianerBase implements it. Check the Archive Interface.. + * that a ShrinkWrap archive might not support a Container if even tho the + * ContianerBase implements it. Check the Archive Interface.. */ } // Load the ProtocolArchiveProcessors diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/AbstractCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/AbstractCommand.java index 6cf022cda..166565aff 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/AbstractCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/AbstractCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeployDeploymentCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeployDeploymentCommand.java index 64294e817..b122a1d5b 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeployDeploymentCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeployDeploymentCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeploymentCommandObserver.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeploymentCommandObserver.java index 5aff41fcc..df100231d 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeploymentCommandObserver.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/DeploymentCommandObserver.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/GetDeploymentCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/GetDeploymentCommand.java index b038cdd9d..6816bfc04 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/GetDeploymentCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/GetDeploymentCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/UnDeployDeploymentCommand.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/UnDeployDeploymentCommand.java index a55d2a01d..e50f7c8a8 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/UnDeployDeploymentCommand.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/command/UnDeployDeploymentCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/event/GenerateDeployment.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/event/GenerateDeployment.java index 7db0385a4..41fdfd7fd 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/event/GenerateDeployment.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/event/GenerateDeployment.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ArchiveDeploymentToolingExporter.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ArchiveDeploymentToolingExporter.java index 617f7f7f9..b4d70907b 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ArchiveDeploymentToolingExporter.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ArchiveDeploymentToolingExporter.java @@ -36,21 +36,20 @@ public class ArchiveDeploymentToolingExporter { public void export(@Observes BeforeDeploy event) throws Exception { String deploymentOutputFolder = System.getProperty(ARQUILLIAN_TOOLING_DEPLOYMENT_FOLDER); - if (deploymentOutputFolder == null) // tooling not activated, nothing to do - { + if (deploymentOutputFolder == null) { // tooling not activated, nothing to do return; } Archive deployment = event.getDeployment().getTestableArchive(); // deployment not in context?, nothing to do if (deployment == null) { return; } -/* + /* TestClass testClass = event.getTestClass(); String deploymentContent = deployment.toString(new ToolingDeploymentFormatter(testClass.getJavaClass())); writeOutToFile( - new File(deploymentOutputFolder + "/" + testClass.getName() + ".xml"), + new File(deploymentOutputFolder + "/" + testClass.getName() + ".xml"), deploymentContent); -*/ + */ } protected void writeOutToFile(File target, String content) { diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/protocol/local/LocalContainerMethodExecutor.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/protocol/local/LocalContainerMethodExecutor.java index 93920ebab..bcbca8406 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/protocol/local/LocalContainerMethodExecutor.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/client/protocol/local/LocalContainerMethodExecutor.java @@ -42,8 +42,8 @@ public class LocalContainerMethodExecutor implements ContainerMethodExecutor { */ public TestResult invoke(TestMethodExecutor testMethodExecutor) { /* - * TODO: when we fire a LocalExecutionEvent from a ContainerMethodExecutor, - * both the LocalTestExecutor and RemoteTestExecutor will set the same TestResult. + * TODO: when we fire a LocalExecutionEvent from a ContainerMethodExecutor, + * both the LocalTestExecutor and RemoteTestExecutor will set the same TestResult. */ event.fire(new LocalExecutionEvent(testMethodExecutor)); return testResult.get(); diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerControllerProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerControllerProvider.java index 5a12255bd..a2fb1a71d 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerControllerProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerControllerProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURIResourceProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURIResourceProvider.java index e697ececa..4a1ed4ad5 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURIResourceProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURIResourceProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURLResourceProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURLResourceProvider.java index c8785b870..c1dc9258a 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURLResourceProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/ContainerURLResourceProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/DeployerProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/DeployerProvider.java index b00388c10..af7125b1d 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/DeployerProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/DeployerProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/InitialContextProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/InitialContextProvider.java index 14d674270..7b2df6872 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/InitialContextProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/InitialContextProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -43,4 +43,4 @@ public Object doLookup(ArquillianResource resource, Annotation... qualifiers) { public boolean canProvide(Class type) { return type.isAssignableFrom(Context.class) || type.isAssignableFrom(InitialContext.class); } -} \ No newline at end of file +} diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URIResourceProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URIResourceProvider.java index 73c9b1862..c497ec2c8 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URIResourceProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URIResourceProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URLResourceProvider.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URLResourceProvider.java index 3b7be7f33..1ce81add2 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URLResourceProvider.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URLResourceProvider.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/execution/LocalTestExecuter.java b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/execution/LocalTestExecuter.java index 4fce77516..d7eae1ece 100644 --- a/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/execution/LocalTestExecuter.java +++ b/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/execution/LocalTestExecuter.java @@ -27,7 +27,6 @@ import org.jboss.arquillian.core.spi.ServiceLoader; import org.jboss.arquillian.test.spi.TestEnricher; import org.jboss.arquillian.test.spi.TestResult; -import org.jboss.arquillian.test.spi.TestResult.Status; import org.jboss.arquillian.test.spi.annotation.TestScoped; /** diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/ContainerEventControllerTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/ContainerEventControllerTestCase.java index ebd28078d..a4468adb8 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/ContainerEventControllerTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/ContainerEventControllerTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerTestCase.java index fca6af556..455092d7b 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/container/ClientContainerControllerTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/AnnotationDeploymentScenarioGeneratorTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/AnnotationDeploymentScenarioGeneratorTestCase.java index cbdb78e94..ab9b5b3fe 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/AnnotationDeploymentScenarioGeneratorTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/AnnotationDeploymentScenarioGeneratorTestCase.java @@ -49,7 +49,7 @@ */ public class AnnotationDeploymentScenarioGeneratorTestCase { - private final static String expectedLogPartForArchiveWithUnexpectedFileExtension = "unexpected file extension"; + private static final String expectedLogPartForArchiveWithUnexpectedFileExtension = "unexpected file extension"; private static Logger log = Logger.getLogger(AbstractDeploymentScenarioGenerator.class.getName()); private static OutputStream logCapturingStream; private static StreamHandler customLogHandler; diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerTestCase.java index ff197c483..0c453d8f4 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/ClientDeployerTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGeneratorTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGeneratorTestCase.java index e2cd5bddc..11fcfcf37 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGeneratorTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/DeploymentGeneratorTestCase.java @@ -18,7 +18,6 @@ package org.jboss.arquillian.container.test.impl.client.deployment; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashSet; diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ToolingDeploymentFormatterTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ToolingDeploymentFormatterTestCase.java index 4ed124615..9646cc7bc 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ToolingDeploymentFormatterTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/client/deployment/tool/ToolingDeploymentFormatterTestCase.java @@ -49,7 +49,7 @@ public void shouldBeAbleToExportArchive() throws Exception { System.out.println(content); } - public static interface Service { + public interface Service { } diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/execution/ClientTestExecuterTestCase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/execution/ClientTestExecuterTestCase.java index 17e36f161..1c3022cd8 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/execution/ClientTestExecuterTestCase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/impl/execution/ClientTestExecuterTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/test/AbstractContainerTestTestBase.java b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/test/AbstractContainerTestTestBase.java index 87738fba0..617d3db56 100644 --- a/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/test/AbstractContainerTestTestBase.java +++ b/container/test-impl-base/src/test/java/org/jboss/arquillian/container/test/test/AbstractContainerTestTestBase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/RemoteLoadableExtension.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/RemoteLoadableExtension.java index 7f1a112d7..20971e7ad 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/RemoteLoadableExtension.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/RemoteLoadableExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/client/deployment/ProtocolArchiveProcessor.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/client/deployment/ProtocolArchiveProcessor.java index 4def60551..dd8ef7182 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/client/deployment/ProtocolArchiveProcessor.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/client/deployment/ProtocolArchiveProcessor.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/Command.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/Command.java index 54a57a3f4..743c451be 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/Command.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/Command.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandCallback.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandCallback.java index a6abd1b76..0eba4ef0f 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandCallback.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandCallback.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandService.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandService.java index 71e2583b8..6212d5b7b 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandService.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/command/CommandService.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/SecurityActions.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/SecurityActions.java index b3fe9d811..b579d2fb7 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/SecurityActions.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/ServiceLoader.java b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/ServiceLoader.java index f7d6e377b..8b376f464 100644 --- a/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/ServiceLoader.java +++ b/container/test-spi/src/main/java/org/jboss/arquillian/container/test/spi/util/ServiceLoader.java @@ -9,7 +9,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/api/src/main/java/org/jboss/arquillian/core/api/event/ManagerStopping.java b/core/api/src/main/java/org/jboss/arquillian/core/api/event/ManagerStopping.java index 88f589cee..2d208835a 100644 --- a/core/api/src/main/java/org/jboss/arquillian/core/api/event/ManagerStopping.java +++ b/core/api/src/main/java/org/jboss/arquillian/core/api/event/ManagerStopping.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/EventContextImpl.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/EventContextImpl.java index b5ab54603..0591cfe6a 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/EventContextImpl.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/EventContextImpl.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/ManagerImpl.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/ManagerImpl.java index d67b3f667..19478b987 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/ManagerImpl.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/ManagerImpl.java @@ -345,8 +345,7 @@ void fireException(Throwable event) { runtimeLogger.debug(event, true); try { List observers = resolveObservers(event.getClass()); - if (observers.size() == 0) // no one is handling this Exception, throw it out. - { + if (observers.size() == 0) { // no one is handling this Exception, throw it out. UncheckedThrow.throwUnchecked(event); } for (int i = 0; i < observers.size(); i++) { diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/SecurityActions.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/SecurityActions.java index a7574184a..0c880655b 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/SecurityActions.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { @@ -334,4 +332,4 @@ public ClassLoader run() { } } -} \ No newline at end of file +} diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoader.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoader.java index 5c05e4232..3a27cfdea 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoader.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoader.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/SecurityActions.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/SecurityActions.java index 82097aad7..b21f5182b 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/SecurityActions.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/SecurityActions.java @@ -329,9 +329,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { @@ -339,4 +337,4 @@ public ClassLoader run() { } } -} \ No newline at end of file +} diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistry.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistry.java index 36fba72b2..0ea3b4980 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistry.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistry.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/threading/ThreadedExecutorService.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/threading/ThreadedExecutorService.java index c21a56baa..e0b2345bd 100644 --- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/threading/ThreadedExecutorService.java +++ b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/threading/ThreadedExecutorService.java @@ -76,7 +76,7 @@ private static class ContextualCallable implements Callable { private Callable delegate; private ContextSnapshot state; - public ContextualCallable(Callable delegate, ContextSnapshot state) { + ContextualCallable(Callable delegate, ContextSnapshot state) { this.delegate = delegate; this.state = state; } diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ExceptionHandlingTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ExceptionHandlingTestCase.java index 9ab8f0c58..3bbe232d3 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ExceptionHandlingTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ExceptionHandlingTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ManagerProcessingTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ManagerProcessingTestCase.java index 164d491bb..d059959fd 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ManagerProcessingTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ManagerProcessingTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverInterceptorTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverInterceptorTestCase.java index 75ff3d53b..a15be2a1d 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverInterceptorTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverInterceptorTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverMethodAvailabilityFilterTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverMethodAvailabilityFilterTestCase.java index 8d0a66907..2e43efe79 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverMethodAvailabilityFilterTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/ObserverMethodAvailabilityFilterTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/JavaSPIExtensionLoaderTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/JavaSPIExtensionLoaderTestCase.java index da79cdc32..eec8f9b2f 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/JavaSPIExtensionLoaderTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/JavaSPIExtensionLoaderTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoaderTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoaderTestCase.java index 6b7c1687d..df271410b 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoaderTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/LoadableExtensionLoaderTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistryLoaderTestCase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistryLoaderTestCase.java index f36199f50..f2ae8601f 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistryLoaderTestCase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistryLoaderTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/util/PackageProtectedService.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/util/PackageProtectedService.java index d0fe7240d..8e449f29c 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/util/PackageProtectedService.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/impl/loadable/util/PackageProtectedService.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -25,4 +25,4 @@ class PackageProtectedService implements FakeService { public boolean isValid() { return true; } -} \ No newline at end of file +} diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/AbstractManagerTestBase.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/AbstractManagerTestBase.java index 321086fb6..14bff51fe 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/AbstractManagerTestBase.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/AbstractManagerTestBase.java @@ -297,7 +297,7 @@ private static class EventRecording { private Map, Boolean> activeContexts; private String threadName; - public EventRecording() { + EventRecording() { threadName = Thread.currentThread().getName(); activeContexts = new HashMap, Boolean>(); } diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Context.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Context.java index cc36545d5..03ad66031 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Context.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Context.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2ContextImpl.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2ContextImpl.java index 5c60f81cd..135340485 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2ContextImpl.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2ContextImpl.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Scoped.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Scoped.java index 0b6dfc005..1c55b1926 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Scoped.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTest2Scoped.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContext.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContext.java index 6e37766c5..21febe9f2 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContext.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContext.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContextImpl.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContextImpl.java index c076fa45b..ef97fa242 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContextImpl.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestContextImpl.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestScoped.java b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestScoped.java index 3f20c2646..b3f50e6cf 100644 --- a/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestScoped.java +++ b/core/impl-base/src/test/java/org/jboss/arquillian/core/test/context/ManagerTestScoped.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/EventContext.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/EventContext.java index 3e0c04c42..525593079 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/EventContext.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/EventContext.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/ExtensionLoader.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/ExtensionLoader.java index 17223235b..8ffe90bd8 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/ExtensionLoader.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/ExtensionLoader.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/LoadableExtension.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/LoadableExtension.java index bffb2e1cf..c43715082 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/LoadableExtension.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/LoadableExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -33,9 +33,9 @@ public interface LoadableExtension { /** * Implement to register any extensions. */ - public void register(ExtensionBuilder builder); + void register(ExtensionBuilder builder); - public interface ExtensionBuilder { + interface ExtensionBuilder { /** * Register a service implementation. *

@@ -67,7 +67,7 @@ ExtensionBuilder override(Class service, Class oldServiceImp ExtensionBuilder context(Class context); } - public static class Validate { + class Validate { public static boolean classExists(String className) { try { Class.forName(className); diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/NonManagedObserver.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/NonManagedObserver.java index 5d687e367..c3faef309 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/NonManagedObserver.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/NonManagedObserver.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/SecurityActions.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/SecurityActions.java index 93ac1f17e..a49b180d6 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/SecurityActions.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { @@ -334,4 +332,4 @@ public ClassLoader run() { } } -} \ No newline at end of file +} diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/AbstractContext.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/AbstractContext.java index 2ed0060b2..dbc566139 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/AbstractContext.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/AbstractContext.java @@ -132,7 +132,7 @@ private class StoreHolder { private X id; private ObjectStore store; - public StoreHolder(X id, ObjectStore store) { + StoreHolder(X id, ObjectStore store) { this.id = id; this.store = store; } diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/ObjectStore.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/ObjectStore.java index 00aabe475..76a9601ab 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/ObjectStore.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/context/ObjectStore.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -30,4 +30,4 @@ public interface ObjectStore { T get(Class type); ObjectStore clear(); -} \ No newline at end of file +} diff --git a/core/spi/src/main/java/org/jboss/arquillian/core/spi/event/ManagerProcessing.java b/core/spi/src/main/java/org/jboss/arquillian/core/spi/event/ManagerProcessing.java index ba11b4a21..ece8985b5 100644 --- a/core/spi/src/main/java/org/jboss/arquillian/core/spi/event/ManagerProcessing.java +++ b/core/spi/src/main/java/org/jboss/arquillian/core/spi/event/ManagerProcessing.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/junit/container/src/main/java/org/jboss/arquillian/junit/container/ContainerClassRulesFilter.java b/junit/container/src/main/java/org/jboss/arquillian/junit/container/ContainerClassRulesFilter.java index 223c46780..11ca5abb2 100644 --- a/junit/container/src/main/java/org/jboss/arquillian/junit/container/ContainerClassRulesFilter.java +++ b/junit/container/src/main/java/org/jboss/arquillian/junit/container/ContainerClassRulesFilter.java @@ -8,7 +8,7 @@ public class ContainerClassRulesFilter implements JUnitClassRulesFilter { /** - * No @ClassRule should be executed inside of a container since the state between @Test is not kept there. + * No @ClassRule should be executed inside of a container since the state between @Test is not kept there. * This means that particular @ClassRule can be executed multiple times per one test class executed in the container. */ public List filter(List scannedRules) { diff --git a/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitContainerExtension.java b/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitContainerExtension.java index 764becaa3..7993136ae 100644 --- a/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitContainerExtension.java +++ b/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitContainerExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitRemoteExtension.java b/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitRemoteExtension.java index 8599e7976..b1302475c 100644 --- a/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitRemoteExtension.java +++ b/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitTestRunner.java b/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitTestRunner.java index 4284e1a07..e2bdaf9a1 100644 --- a/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitTestRunner.java +++ b/junit/container/src/main/java/org/jboss/arquillian/junit/container/JUnitTestRunner.java @@ -92,7 +92,6 @@ public void testAssumptionFailure(Failure failure) { // AssumptionViolatedException might not be Serializable. Recreate with only String message. exception = new AssumptionViolatedException(failure.getException().getMessage()); exception.setStackTrace(failure.getException().getStackTrace()); - ; } @Override diff --git a/junit/container/src/test/java/org/jboss/arquillian/junit/container/ClassWithArquillianRunnerWithRules.java b/junit/container/src/test/java/org/jboss/arquillian/junit/container/ClassWithArquillianRunnerWithRules.java index b8800117a..9974b19f0 100644 --- a/junit/container/src/test/java/org/jboss/arquillian/junit/container/ClassWithArquillianRunnerWithRules.java +++ b/junit/container/src/test/java/org/jboss/arquillian/junit/container/ClassWithArquillianRunnerWithRules.java @@ -3,7 +3,6 @@ import org.jboss.arquillian.junit.Arquillian; import org.junit.After; import org.junit.AfterClass; -import org.junit.Assume; import org.junit.Before; import org.junit.BeforeClass; import org.junit.ClassRule; diff --git a/junit/container/src/test/java/org/jboss/arquillian/junit/container/JUnitTestBaseClass.java b/junit/container/src/test/java/org/jboss/arquillian/junit/container/JUnitTestBaseClass.java index 7ae1a542a..87b1ef458 100644 --- a/junit/container/src/test/java/org/jboss/arquillian/junit/container/JUnitTestBaseClass.java +++ b/junit/container/src/test/java/org/jboss/arquillian/junit/container/JUnitTestBaseClass.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -127,9 +127,7 @@ private void setAdaptor(TestRunnerAdaptor adaptor) throws Exception { method.invoke(null, adaptor); } - public enum Cycle - - { + public enum Cycle { BEFORE_CLASS_RULE, BEFORE_RULE, BEFORE_CLASS, BEFORE, TEST, AFTER, AFTER_CLASS, AFTER_RULE, AFTER_CLASS_RULE; } diff --git a/junit/core/src/main/java/org/jboss/arquillian/junit/Arquillian.java b/junit/core/src/main/java/org/jboss/arquillian/junit/Arquillian.java index 9d3f2bcd8..47a5e46a8 100644 --- a/junit/core/src/main/java/org/jboss/arquillian/junit/Arquillian.java +++ b/junit/core/src/main/java/org/jboss/arquillian/junit/Arquillian.java @@ -141,11 +141,11 @@ protected List classRules() { /* * Override BeforeClass/AfterClass and Before/After handling. - * + * * Let super create the Before/After chain against a EmptyStatement so our newly created Statement - * only contains the method that are of interest to us(@Before..etc). + * only contains the method that are of interest to us(@Before..etc). * They can then optionally be executed if we get expected callback. - * + * */ @Override @@ -364,7 +364,7 @@ public void evaluate() throws Throwable { private static class StatementLifecycleExecutor implements LifecycleMethodExecutor { private Statement statement; - public StatementLifecycleExecutor(Statement statement) { + StatementLifecycleExecutor(Statement statement) { this.statement = statement; } diff --git a/junit/core/src/main/java/org/jboss/arquillian/junit/MethodRuleChain.java b/junit/core/src/main/java/org/jboss/arquillian/junit/MethodRuleChain.java index 0a2124b8e..a89d945fa 100644 --- a/junit/core/src/main/java/org/jboss/arquillian/junit/MethodRuleChain.java +++ b/junit/core/src/main/java/org/jboss/arquillian/junit/MethodRuleChain.java @@ -14,14 +14,14 @@ * *

  * public static class MethodRuleChainUse {
- * 	@Rule
- * 	public MethodRuleChain chain= MethodRuleChain.outer(new ArquillianTest())
- * 	                                .around(new TestWatchman())
+ * @Rule
+ * public MethodRuleChain chain= MethodRuleChain.outer(new ArquillianTest())
+ *                                 .around(new TestWatchman())
  *
- * 	@Test
- * 	public void example() {
- * 		assertTrue(true);
- *     }
+ * @Test
+ * public void example() {
+ *   assertTrue(true);
+ *   }
  * }
  * 
* diff --git a/junit/core/src/main/java/org/jboss/arquillian/junit/SecurityActions.java b/junit/core/src/main/java/org/jboss/arquillian/junit/SecurityActions.java index b2bbba0df..c44e0a9a3 100644 --- a/junit/core/src/main/java/org/jboss/arquillian/junit/SecurityActions.java +++ b/junit/core/src/main/java/org/jboss/arquillian/junit/SecurityActions.java @@ -347,9 +347,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { @@ -357,4 +355,4 @@ public ClassLoader run() { } } -} \ No newline at end of file +} diff --git a/junit/core/src/main/java/org/jboss/arquillian/junit/State.java b/junit/core/src/main/java/org/jboss/arquillian/junit/State.java index e0c7eac0e..01e610ef2 100644 --- a/junit/core/src/main/java/org/jboss/arquillian/junit/State.java +++ b/junit/core/src/main/java/org/jboss/arquillian/junit/State.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRule.java b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRule.java index a39573f0d..2c19c3d32 100644 --- a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRule.java +++ b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRule.java @@ -11,8 +11,7 @@ import static org.jboss.arquillian.junit.JUnitTestBaseClass.wasCalled; -public class ClassWithArquillianClassAndMethodRule -{ +public class ClassWithArquillianClassAndMethodRule { @ClassRule public static ArquillianTestClass arquillianTestClass = new ArquillianTestClass(); @@ -20,32 +19,27 @@ public class ClassWithArquillianClassAndMethodRule public ArquillianTest arquillianTest = new ArquillianTest(); @BeforeClass - public static void beforeClass() throws Throwable - { + public static void beforeClass() throws Throwable { wasCalled(Cycle.BEFORE_CLASS); } @AfterClass - public static void afterClass() throws Throwable - { + public static void afterClass() throws Throwable { wasCalled(Cycle.AFTER_CLASS); } @Before - public void before() throws Throwable - { + public void before() throws Throwable { wasCalled(Cycle.BEFORE); } @After - public void after() throws Throwable - { + public void after() throws Throwable { wasCalled(Cycle.AFTER); } @Test - public void shouldBeInvoked() throws Throwable - { + public void shouldBeInvoked() throws Throwable { wasCalled(Cycle.TEST); } } diff --git a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRuleWithExpectedException.java b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRuleWithExpectedException.java index 1075e8a84..5ed351534 100644 --- a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRuleWithExpectedException.java +++ b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianClassAndMethodRuleWithExpectedException.java @@ -11,8 +11,7 @@ import static org.jboss.arquillian.junit.JUnitTestBaseClass.wasCalled; -public class ClassWithArquillianClassAndMethodRuleWithExpectedException -{ +public class ClassWithArquillianClassAndMethodRuleWithExpectedException { @ClassRule public static ArquillianTestClass arquillianTestClass = new ArquillianTestClass(); @@ -20,32 +19,27 @@ public class ClassWithArquillianClassAndMethodRuleWithExpectedException public ArquillianTest arquillianTest = new ArquillianTest(); @BeforeClass - public static void beforeClass() throws Throwable - { + public static void beforeClass() throws Throwable { wasCalled(Cycle.BEFORE_CLASS); } @AfterClass - public static void afterClass() throws Throwable - { + public static void afterClass() throws Throwable { wasCalled(Cycle.AFTER_CLASS); } @Before - public void before() throws Throwable - { + public void before() throws Throwable { wasCalled(Cycle.BEFORE); } @After - public void after() throws Throwable - { + public void after() throws Throwable { wasCalled(Cycle.AFTER); } @Test(expected = IllegalArgumentException.class) - public void shouldBeInvoked() throws Throwable - { + public void shouldBeInvoked() throws Throwable { wasCalled(Cycle.TEST); throw new IllegalArgumentException(); } diff --git a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunner.java b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunner.java index c0558cb67..c3f5935d7 100644 --- a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunner.java +++ b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunner.java @@ -30,8 +30,7 @@ public class ClassWithArquillianRunner { @BeforeClass - public static void beforeClass() throws Throwable - { + public static void beforeClass() throws Throwable { wasCalled(Cycle.BEFORE_CLASS); } diff --git a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunnerWithExpectedException.java b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunnerWithExpectedException.java index 13da61b43..da0a482c5 100644 --- a/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunnerWithExpectedException.java +++ b/junit/core/src/test/java/org/jboss/arquillian/junit/ClassWithArquillianRunnerWithExpectedException.java @@ -27,35 +27,29 @@ import static org.jboss.arquillian.junit.JUnitTestBaseClass.wasCalled; @RunWith(Arquillian.class) -public class ClassWithArquillianRunnerWithExpectedException -{ +public class ClassWithArquillianRunnerWithExpectedException { @BeforeClass - public static void beforeClass() throws Throwable - { + public static void beforeClass() throws Throwable { wasCalled(Cycle.BEFORE_CLASS); } @AfterClass - public static void afterClass() throws Throwable - { + public static void afterClass() throws Throwable { wasCalled(Cycle.AFTER_CLASS); } @Before - public void before() throws Throwable - { + public void before() throws Throwable { wasCalled(Cycle.BEFORE); } @After - public void after() throws Throwable - { + public void after() throws Throwable { wasCalled(Cycle.AFTER); } @Test(expected = IllegalArgumentException.class) - public void shouldBeInvoked() throws Throwable - { + public void shouldBeInvoked() throws Throwable { wasCalled(Cycle.TEST); throw new IllegalArgumentException(); } diff --git a/junit/core/src/test/java/org/jboss/arquillian/junit/InitializationExceptionTestCase.java b/junit/core/src/test/java/org/jboss/arquillian/junit/InitializationExceptionTestCase.java index f4e004c97..01642419e 100644 --- a/junit/core/src/test/java/org/jboss/arquillian/junit/InitializationExceptionTestCase.java +++ b/junit/core/src/test/java/org/jboss/arquillian/junit/InitializationExceptionTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -38,23 +38,21 @@ * @version $Revision: $ */ @RunWith(MockitoJUnitRunner.class) -public class InitializationExceptionTestCase extends JUnitTestBaseClass -{ +public class InitializationExceptionTestCase extends JUnitTestBaseClass { @Test - public void shouldKeepInitializationExceptionBetweenTestCases() throws Exception - { + public void shouldKeepInitializationExceptionBetweenTestCases() throws Exception { String exceptionMessage = "TEST_EXCEPTION_BEFORE_SUITE_FAILING"; TestRunnerAdaptor adaptor = mock(TestRunnerAdaptor.class); doThrow(new Exception(exceptionMessage)).when(adaptor).beforeSuite(); Result result = run(adaptor, ClassWithArquillianRunner.class, ClassWithArquillianRunner.class); - + Assert.assertFalse(result.wasSuccessful()); - // both should be marked failed, the second with the real exception as cause - Assert.assertEquals(2, result.getFailureCount()); + // both should be marked failed, the second with the real exception as cause + Assert.assertEquals(2, result.getFailureCount()); Assert.assertEquals(exceptionMessage, result.getFailures().get(0).getMessage()); Assert.assertEquals(exceptionMessage, result.getFailures().get(1).getException().getCause().getMessage()); - + verify(adaptor, times(0)).afterSuite(); } } diff --git a/junit/core/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java b/junit/core/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java index bffbc17b6..46a1a98c7 100644 --- a/junit/core/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java +++ b/junit/core/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -131,9 +131,7 @@ private void setAdaptor(TestRunnerAdaptor adaptor) throws Exception { method.invoke(null, adaptor); } - public static enum Cycle - - { + public enum Cycle { BEFORE_CLASS_RULE, BEFORE_RULE, BEFORE_CLASS, BEFORE, TEST, AFTER, AFTER_CLASS, AFTER_RULE, AFTER_CLASS_RULE; public static Cycle[] basics() { diff --git a/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/JUnitStandaloneExtension.java b/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/JUnitStandaloneExtension.java index 7aadd116e..e84968d65 100644 --- a/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/JUnitStandaloneExtension.java +++ b/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/JUnitStandaloneExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/LocalTestMethodExecutor.java b/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/LocalTestMethodExecutor.java index 861487d4f..1b838cee6 100644 --- a/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/LocalTestMethodExecutor.java +++ b/junit/standalone/src/main/java/org/jboss/arquillian/junit/standalone/LocalTestMethodExecutor.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -26,7 +26,6 @@ import org.jboss.arquillian.core.spi.ServiceLoader; import org.jboss.arquillian.test.spi.TestEnricher; import org.jboss.arquillian.test.spi.TestResult; -import org.jboss.arquillian.test.spi.TestResult.Status; import org.jboss.arquillian.test.spi.annotation.TestScoped; import org.jboss.arquillian.test.spi.event.suite.Test; diff --git a/junit/standalone/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java b/junit/standalone/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java index ad54a35c2..6f861ccc0 100644 --- a/junit/standalone/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java +++ b/junit/standalone/src/test/java/org/jboss/arquillian/junit/JUnitTestBaseClass.java @@ -23,7 +23,6 @@ import org.jboss.arquillian.test.spi.LifecycleMethodExecutor; import org.jboss.arquillian.test.spi.TestMethodExecutor; import org.jboss.arquillian.test.spi.TestResult; -import org.jboss.arquillian.test.spi.TestResult.Status; import org.jboss.arquillian.test.spi.TestRunnerAdaptor; import org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder; import org.junit.After; @@ -127,9 +126,7 @@ private void setAdaptor(TestRunnerAdaptor adaptor) throws Exception { method.invoke(null, adaptor); } - public static enum Cycle - - { + public enum Cycle { BEFORE_CLASS, BEFORE, TEST, AFTER, AFTER_CLASS } diff --git a/junit5/container/src/test/java/org/jboss/arquillian/junit5/container/ClassWithArquillianExtensionWithExtensions.java b/junit5/container/src/test/java/org/jboss/arquillian/junit5/container/ClassWithArquillianExtensionWithExtensions.java index bc2fcebcc..73a6810ba 100644 --- a/junit5/container/src/test/java/org/jboss/arquillian/junit5/container/ClassWithArquillianExtensionWithExtensions.java +++ b/junit5/container/src/test/java/org/jboss/arquillian/junit5/container/ClassWithArquillianExtensionWithExtensions.java @@ -42,7 +42,7 @@ public static class ClassRule implements AfterAllCallback, BeforeAllCallback { public void afterAll(ExtensionContext context) throws Exception { wasCalled(Cycle.AFTER_CLASS_RULE); } - + @Override public void beforeAll(ExtensionContext context) throws Exception { wasCalled(Cycle.BEFORE_CLASS_RULE); diff --git a/junit5/core/src/main/java/org/jboss/arquillian/junit5/ContextStore.java b/junit5/core/src/main/java/org/jboss/arquillian/junit5/ContextStore.java index 41e2ab681..deedc407b 100644 --- a/junit5/core/src/main/java/org/jboss/arquillian/junit5/ContextStore.java +++ b/junit5/core/src/main/java/org/jboss/arquillian/junit5/ContextStore.java @@ -18,7 +18,7 @@ class ContextStore { private ContextStore(ExtensionContext context) { this.context = context; } - + static ContextStore getContextStore(ExtensionContext context) { return new ContextStore(context); } diff --git a/junit5/core/src/main/java/org/jboss/arquillian/junit5/IdentifiedTestException.java b/junit5/core/src/main/java/org/jboss/arquillian/junit5/IdentifiedTestException.java index 7a4a4151e..9d135257f 100644 --- a/junit5/core/src/main/java/org/jboss/arquillian/junit5/IdentifiedTestException.java +++ b/junit5/core/src/main/java/org/jboss/arquillian/junit5/IdentifiedTestException.java @@ -4,7 +4,7 @@ public class IdentifiedTestException extends RuntimeException { private static final long serialVersionUID = 1L; - + private final Map collectedExceptions; public IdentifiedTestException(Map exceptions) { diff --git a/pom.xml b/pom.xml index f18fd80ee..8619ba89b 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,11 @@ 1.2.6 2.0.0 + + + 3.3.1 + 9.3 + 1.0.8.Final @@ -70,6 +75,40 @@ + + org.apache.maven.plugins + maven-checkstyle-plugin + ${version.org.apache.maven-checkstyle-plugin} + + + + com.puppycrawl.tools + checkstyle + ${version.com.puppycrawl.checkstyle} + + + org.wildfly.checkstyle + wildfly-checkstyle-config + ${version.org.wildfly.checkstyle-config} + + + + + check-style + compile + + checkstyle + + + + + false + wildfly-checkstyle/checkstyle.xml + true + true + true + + maven-surefire-plugin diff --git a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXCommandService.java b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXCommandService.java index a38c93e0f..5fb6eb89a 100644 --- a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXCommandService.java +++ b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXCommandService.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXMethodExecutor.java b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXMethodExecutor.java index 00baa56d3..beee75f48 100644 --- a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXMethodExecutor.java +++ b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXMethodExecutor.java @@ -105,7 +105,7 @@ private T getMBeanProxy(ObjectName name, Class interf) { private class CallbackNotificationListener implements NotificationListener { private ObjectName serviceName; - public CallbackNotificationListener(ObjectName serviceName) { + CallbackNotificationListener(ObjectName serviceName) { this.serviceName = serviceName; } diff --git a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXProtocolConfiguration.java b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXProtocolConfiguration.java index ada0bab48..8d3d8837d 100644 --- a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXProtocolConfiguration.java +++ b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXProtocolConfiguration.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXTestRunnerMBean.java b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXTestRunnerMBean.java index bf78df93e..34d14310a 100644 --- a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXTestRunnerMBean.java +++ b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/JMXTestRunnerMBean.java @@ -46,7 +46,7 @@ public interface JMXTestRunnerMBean extends NotificationBroadcaster { * @deprecated */ @Deprecated - public byte[] runTestMethod(String className, String methodName); + byte[] runTestMethod(String className, String methodName); /** * Runs a test method on the given test class @@ -60,7 +60,7 @@ public interface JMXTestRunnerMBean extends NotificationBroadcaster { * * @return a serialized {@link TestResult} */ - public byte[] runTestMethod(String className, String methodName, Map protocolProps); + byte[] runTestMethod(String className, String methodName, Map protocolProps); /** * Broadcast {@link Command} commands to any listeners diff --git a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/Serializer.java b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/Serializer.java index 409d36224..0ba3f3dcc 100644 --- a/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/Serializer.java +++ b/protocols/jmx/src/main/java/org/jboss/arquillian/protocol/jmx/Serializer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/JMXTestTestRunner.java b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/JMXTestTestRunner.java index 39ae13443..5cd842f95 100644 --- a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/JMXTestTestRunner.java +++ b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/JMXTestTestRunner.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestCommandCallback.java b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestCommandCallback.java index 94e8c7d50..5ab0e386c 100644 --- a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestCommandCallback.java +++ b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestCommandCallback.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestIntegerCommand.java b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestIntegerCommand.java index a8be28d6f..136f09519 100644 --- a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestIntegerCommand.java +++ b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestIntegerCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestStringCommand.java b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestStringCommand.java index 8c630cd7d..5d975816b 100644 --- a/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestStringCommand.java +++ b/protocols/jmx/src/test/java/org/jboss/arquillian/protocol/jmx/test/TestStringCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocol.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocol.java index 81fa1b063..9d0365ccb 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocol.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocol.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletExtension.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletExtension.java index 790663b11..5c22d2c49 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletExtension.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletUtil.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletUtil.java index 4683acb08..b2c0ad6db 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletUtil.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletUtil.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/SecurityActions.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/SecurityActions.java index 285289661..28c075199 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/SecurityActions.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletCommandService.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletCommandService.java index 31ccd61cf..219266fbe 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletCommandService.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletCommandService.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletRemoteExtension.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletRemoteExtension.java index 685fd3936..7c960625e 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletRemoteExtension.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/v_2_5/WebUtils.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/v_2_5/WebUtils.java index 93e3b46b3..6c689b1b2 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/v_2_5/WebUtils.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/v_2_5/WebUtils.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/AbstractServerBase.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/AbstractServerBase.java index 2323ae9f6..f6bbd8283 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/AbstractServerBase.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/AbstractServerBase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocolTestCase.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocolTestCase.java index bcbf4c077..493a38345 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocolTestCase.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/BaseServletProtocolTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -123,12 +123,12 @@ public void shouldThrowExceptionOnMissingNamedTargetedContext() throws Exception @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionWhenNoConfig() throws Exception { - new ServletURIHandler(null, to(new HTTPContext("127.0.0.1", 8080).add(new Servlet(ServletMethodExecutor.ARQUILLIAN_SERVLET_NAME, "test")))); + new ServletURIHandler(null, to(new HTTPContext("127.0.0.1", 8080).add(new Servlet(ServletMethodExecutor.ARQUILLIAN_SERVLET_NAME, "test")))); } @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionOnNoContexts() throws Exception { - new ServletURIHandler(new ServletProtocolConfiguration(), null); + new ServletURIHandler(new ServletProtocolConfiguration(), null); } private Collection to(HTTPContext... inputs) { @@ -143,7 +143,7 @@ private Method getTestMethod(String methodName) throws Exception { /* - * Methods used for ServletURIHandler HTTPContext lookups. + * Methods used for ServletURIHandler HTTPContext lookups. */ @SuppressWarnings("unused") diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ServletCommandServiceTestCase.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ServletCommandServiceTestCase.java index 612a96bc0..a4d715413 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ServletCommandServiceTestCase.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ServletCommandServiceTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -106,22 +106,22 @@ public void shouldDisableCommandService() throws Exception { @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfNoConfig() throws Exception { - new ServletMethodExecutor(null, createContexts(), new TestCommandCallback()); + new ServletMethodExecutor(null, createContexts(), new TestCommandCallback()); } @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfNoContexts() { - new ServletMethodExecutor(new ServletProtocolConfiguration(), null, new TestCommandCallback()); + new ServletMethodExecutor(new ServletProtocolConfiguration(), null, new TestCommandCallback()); } @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfNoCallback() throws Exception { - new ServletMethodExecutor(new ServletProtocolConfiguration(), createContexts(), null); + new ServletMethodExecutor(new ServletProtocolConfiguration(), createContexts(), null); } @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionIfNoExecutor() throws Exception { - ServletMethodExecutor executor = new ServletMethodExecutor(new ServletProtocolConfiguration(), createContexts(), new TestCommandCallback()); - executor.invoke(null); + ServletMethodExecutor executor = new ServletMethodExecutor(new ServletProtocolConfiguration(), createContexts(), new TestCommandCallback()); + executor.invoke(null); } } diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestCommandCallback.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestCommandCallback.java index 2fa32e6c2..da0eb006a 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestCommandCallback.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestCommandCallback.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestIntegerCommand.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestIntegerCommand.java index 8caf9f00c..f5e9e4f28 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestIntegerCommand.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestIntegerCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestStringCommand.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestStringCommand.java index 0f8dc75f5..f369a5455 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestStringCommand.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/test/TestStringCommand.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_2_5/ServletProtocolDeploymentPackagerTestCase.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_2_5/ServletProtocolDeploymentPackagerTestCase.java index 0328751a0..e14bbabec 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_2_5/ServletProtocolDeploymentPackagerTestCase.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_2_5/ServletProtocolDeploymentPackagerTestCase.java @@ -304,7 +304,7 @@ public void shouldThrowExceptionOnEnterpriseArchiveWithMultipleMarkedWebArchives @Test(expected = IllegalArgumentException.class) public void shouldVerifyExceptionOnEmptyVersion() throws Exception { - Descriptors.create(WebAppDescriptor.class).version(""); + Descriptors.create(WebAppDescriptor.class).version(""); } private Collection> createAuxiliaryArchives() { @@ -340,7 +340,7 @@ private Collection processors() { private static class DummyProcessor implements ProtocolArchiveProcessor { public static boolean wasCalled = false; - public DummyProcessor() { + DummyProcessor() { wasCalled = false; } diff --git a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_3/ServletProtocolDeploymentPackagerTestCase.java b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_3/ServletProtocolDeploymentPackagerTestCase.java index 25193862f..b5f7a9cbc 100644 --- a/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_3/ServletProtocolDeploymentPackagerTestCase.java +++ b/protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/v_3/ServletProtocolDeploymentPackagerTestCase.java @@ -300,7 +300,7 @@ private Collection processors() { private static class DummyProcessor implements ProtocolArchiveProcessor { public static boolean wasCalled = false; - public DummyProcessor() { + DummyProcessor() { wasCalled = false; } diff --git a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestContextHandler.java b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestContextHandler.java index dc531f621..207832c56 100644 --- a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestContextHandler.java +++ b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestContextHandler.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExecutionDeciderComparator.java b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExecutionDeciderComparator.java index cf3fc2898..c6f20f402 100644 --- a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExecutionDeciderComparator.java +++ b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExecutionDeciderComparator.java @@ -1,7 +1,7 @@ /* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual - * contributors by the @authors tag. See the copyright.txt in the + * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -9,7 +9,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExtension.java b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExtension.java index 61a67ac23..53903efab 100644 --- a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExtension.java +++ b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/TestExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/enricher/resource/SecurityActions.java b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/enricher/resource/SecurityActions.java index a99b7b439..d28ee3e6b 100644 --- a/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/enricher/resource/SecurityActions.java +++ b/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/enricher/resource/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { @@ -334,4 +332,4 @@ public ClassLoader run() { } } -} \ No newline at end of file +} diff --git a/test/impl-base/src/test/java/org/jboss/arquillian/test/impl/enricher/resource/ArquillianResourceTestEnricherTestCase.java b/test/impl-base/src/test/java/org/jboss/arquillian/test/impl/enricher/resource/ArquillianResourceTestEnricherTestCase.java index a16daefec..8d360dcfd 100644 --- a/test/impl-base/src/test/java/org/jboss/arquillian/test/impl/enricher/resource/ArquillianResourceTestEnricherTestCase.java +++ b/test/impl-base/src/test/java/org/jboss/arquillian/test/impl/enricher/resource/ArquillianResourceTestEnricherTestCase.java @@ -31,16 +31,13 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; -import org.mockito.ArgumentMatcher; import org.mockito.Mock; import org.mockito.Mockito; -import org.mockito.internal.matchers.VarargMatcher; import org.mockito.junit.MockitoJUnitRunner; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; -import java.lang.annotation.Annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.Target; diff --git a/test/impl-base/src/test/java/org/jboss/arquillian/test/test/AbstractTestTestBase.java b/test/impl-base/src/test/java/org/jboss/arquillian/test/test/AbstractTestTestBase.java index 240f0751b..524430064 100644 --- a/test/impl-base/src/test/java/org/jboss/arquillian/test/test/AbstractTestTestBase.java +++ b/test/impl-base/src/test/java/org/jboss/arquillian/test/test/AbstractTestTestBase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/CombinedException.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/CombinedException.java index cc0fe25dc..e531fdbb4 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/CombinedException.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/CombinedException.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/ExceptionProxy.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/ExceptionProxy.java index 519bcbde6..7e6fca9e3 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/ExceptionProxy.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/ExceptionProxy.java @@ -194,8 +194,7 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept SecurityActions.setFieldValue(Throwable.class, original, "cause", cause); } } - } catch (Throwable e) // Possible ClassNotFoundExcpetion / NoClassDefFoundError - { + } catch (Throwable e) { // Possible ClassNotFoundExcpetion / NoClassDefFoundError // ignore, could not load class on client side, move on and create a fake 'proxy' later serializationProcessException = e; } diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/SecurityActions.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/SecurityActions.java index 3d8307c9d..d88543e76 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/SecurityActions.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { @@ -334,4 +332,4 @@ public ClassLoader run() { } } -} \ No newline at end of file +} diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/TestResult.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/TestResult.java index a5e545e06..aeabdd0f3 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/TestResult.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/TestResult.java @@ -34,7 +34,7 @@ public final class TestResult implements Serializable { private static final long serialVersionUID = 1L; private Status status; private String description = ""; - transient private Throwable throwable; + private transient Throwable throwable; private ExceptionProxy exceptionProxy; private long start; private long end; diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/AfterEnrichment.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/AfterEnrichment.java index 7e845d672..a65ba7ce3 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/AfterEnrichment.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/AfterEnrichment.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/BeforeEnrichment.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/BeforeEnrichment.java index 448b7236f..de5af3176 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/BeforeEnrichment.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/BeforeEnrichment.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/EnrichmentEvent.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/EnrichmentEvent.java index 5de1cfc97..d62d703b3 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/EnrichmentEvent.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/event/enrichment/EnrichmentEvent.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/ExecutionDecision.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/ExecutionDecision.java index b2e7c6553..e1c0038fa 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/ExecutionDecision.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/ExecutionDecision.java @@ -1,7 +1,7 @@ /* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual - * contributors by the @authors tag. See the copyright.txt in the + * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -9,7 +9,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/SkippedTestExecutionException.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/SkippedTestExecutionException.java index 26f941dff..54d64d25a 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/SkippedTestExecutionException.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/SkippedTestExecutionException.java @@ -1,7 +1,7 @@ /* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual - * contributors by the @authors tag. See the copyright.txt in the + * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -9,7 +9,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/TestExecutionDecider.java b/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/TestExecutionDecider.java index c4096f70c..d8e03c3d2 100644 --- a/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/TestExecutionDecider.java +++ b/test/spi/src/main/java/org/jboss/arquillian/test/spi/execution/TestExecutionDecider.java @@ -26,7 +26,7 @@ */ public interface TestExecutionDecider { - static final TestExecutionDecider EXECUTE = new TestExecutionDecider() { + TestExecutionDecider EXECUTE = new TestExecutionDecider() { @Override public ExecutionDecision decide(Method testMethod) { diff --git a/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxySerializationTestCase.java b/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxySerializationTestCase.java index 2ed05e640..1b8ca6d97 100644 --- a/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxySerializationTestCase.java +++ b/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxySerializationTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxyTestCase.java b/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxyTestCase.java index 87a463c0c..608c9094c 100644 --- a/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxyTestCase.java +++ b/test/spi/src/test/java/org/jboss/arquillian/test/spi/ExceptionProxyTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -126,7 +126,7 @@ private void printConstructors(Throwable throwable) throws Exception { private static class ExtendedIllegalArgumentException extends IllegalArgumentException { private static final long serialVersionUID = 1L; - public ExtendedIllegalArgumentException(Exception throwable) { + ExtendedIllegalArgumentException(Exception throwable) { super(throwable); } } diff --git a/test/spi/src/test/java/org/jboss/arquillian/test/spi/TestResultFlattenTest.java b/test/spi/src/test/java/org/jboss/arquillian/test/spi/TestResultFlattenTest.java index 6ccf125f3..1c91e4c62 100644 --- a/test/spi/src/test/java/org/jboss/arquillian/test/spi/TestResultFlattenTest.java +++ b/test/spi/src/test/java/org/jboss/arquillian/test/spi/TestResultFlattenTest.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -208,4 +208,4 @@ public void should_ignore_null_entry_and_treat_result_as_success() throws Except // then assertThat(result.getStatus()).isEqualTo(TestResult.Status.PASSED); } -} \ No newline at end of file +} diff --git a/test/spi/src/test/java/org/jboss/arquillian/test/spi/UnknownException.java b/test/spi/src/test/java/org/jboss/arquillian/test/spi/UnknownException.java index d4f21b965..c5ae1ef52 100644 --- a/test/spi/src/test/java/org/jboss/arquillian/test/spi/UnknownException.java +++ b/test/spi/src/test/java/org/jboss/arquillian/test/spi/UnknownException.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/CreationalContextDestroyer.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/CreationalContextDestroyer.java index b4d5c1ad8..346d58f69 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/CreationalContextDestroyer.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/CreationalContextDestroyer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/MethodParameterInjectionPoint.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/MethodParameterInjectionPoint.java index f3c45e1eb..b65c8eebb 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/MethodParameterInjectionPoint.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/MethodParameterInjectionPoint.java @@ -75,8 +75,8 @@ public Set getQualifiers() { } } /* - * TODO: ARQ-240 We should not add @Default by default, this should be handled by CDI. - * Due to bug in Weld 1.0.0.SP4(fixed in trunk). Remove this when 1.1.0 is out. + * TODO: ARQ-240 We should not add @Default by default, this should be handled by CDI. + * Due to bug in Weld 1.0.0.SP4(fixed in trunk). Remove this when 1.1.0 is out. */ if (qualifiers.size() == 0) { qualifiers.add(new DefaultLiteral()); diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/SecurityActions.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/SecurityActions.java index b73bebe0d..7076fd4b0 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/SecurityActions.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/BeansXMLProtocolProcessor.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/BeansXMLProtocolProcessor.java index 62611bffd..3742947e8 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/BeansXMLProtocolProcessor.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/BeansXMLProtocolProcessor.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherArchiveAppender.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherArchiveAppender.java index 5c3a3a17b..aef094cf0 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherArchiveAppender.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherArchiveAppender.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherExtension.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherExtension.java index c98b5946f..c7a47bc82 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherExtension.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/client/CDIEnricherExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/container/CDIEnricherRemoteExtension.java b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/container/CDIEnricherRemoteExtension.java index 374bca754..a62a9bd9a 100644 --- a/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/container/CDIEnricherRemoteExtension.java +++ b/testenrichers/cdi/src/main/java/org/jboss/arquillian/testenricher/cdi/container/CDIEnricherRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/BeansXMLProtocolProcessorTestCase.java b/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/BeansXMLProtocolProcessorTestCase.java index cf438bca9..d4c47fcf2 100644 --- a/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/BeansXMLProtocolProcessorTestCase.java +++ b/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/BeansXMLProtocolProcessorTestCase.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/beans/AbstractService.java b/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/beans/AbstractService.java index 414bd4d91..e6d3a388f 100644 --- a/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/beans/AbstractService.java +++ b/testenrichers/cdi/src/test/java/org/jboss/arquillian/testenricher/cdi/beans/AbstractService.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricher.java b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricher.java index 273d94f8d..d51e9b452 100644 --- a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricher.java +++ b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricher.java @@ -103,12 +103,10 @@ protected void injectClass(Object testCase) { ejbAnnotation); for (Field field : annotatedFields) { - if (field.get(testCase) == null) // only try to lookup fields that are not already set - { + if (field.get(testCase) == null) { // only try to lookup fields that are not already set EJB fieldAnnotation = (EJB) field.getAnnotation(ejbAnnotation); try { String mappedName = fieldAnnotation.mappedName(); - ; String beanName = fieldAnnotation.beanName(); String lookup = attemptToGet31LookupField(fieldAnnotation); diff --git a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/SecurityActions.java b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/SecurityActions.java index 3987effa2..55d612145 100644 --- a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/SecurityActions.java +++ b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherArchiveAppender.java b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherArchiveAppender.java index 8340041e4..c88ad9a42 100644 --- a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherArchiveAppender.java +++ b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherArchiveAppender.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherExtension.java b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherExtension.java index 210312bb3..7a8f45980 100644 --- a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherExtension.java +++ b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/container/EJBEnricherRemoteExtension.java b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/container/EJBEnricherRemoteExtension.java index c6be97737..d074b6b1f 100644 --- a/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/container/EJBEnricherRemoteExtension.java +++ b/testenrichers/ejb/src/main/java/org/jboss/arquillian/testenricher/ejb/container/EJBEnricherRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/ejb/src/test/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricherBase.java b/testenrichers/ejb/src/test/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricherBase.java index 34a2405d2..cbc70be7d 100644 --- a/testenrichers/ejb/src/test/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricherBase.java +++ b/testenrichers/ejb/src/test/java/org/jboss/arquillian/testenricher/ejb/EJBInjectionEnricherBase.java @@ -76,7 +76,7 @@ public void testResolveJNDINameFieldNotSet() { * @author PedroKowalski */ @Local - public static interface ExemplaryEJB { + public interface ExemplaryEJB { } /** @@ -100,4 +100,4 @@ public static class ExemplaryEJBMockImpl implements ExemplaryEJB { @Stateless public static class ExemplaryEJBProductionImpl implements ExemplaryEJB { } -} \ No newline at end of file +} diff --git a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/InitialContextProducer.java b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/InitialContextProducer.java index 4cbfc468d..273b7038b 100644 --- a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/InitialContextProducer.java +++ b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/InitialContextProducer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextArchiveAppender.java b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextArchiveAppender.java index c49ec78c2..1c49fec6d 100644 --- a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextArchiveAppender.java +++ b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextArchiveAppender.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextExtension.java b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextExtension.java index 2ba639834..1031cd67f 100644 --- a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextExtension.java +++ b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/client/InitialContextExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/container/InitialContextRemoteExtension.java b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/container/InitialContextRemoteExtension.java index d21d563ab..0695bf7c5 100644 --- a/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/container/InitialContextRemoteExtension.java +++ b/testenrichers/initialcontext/src/main/java/org/jboss/arquillian/testenricher/initialcontext/container/InitialContextRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/SecurityActions.java b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/SecurityActions.java index 2612d96f0..468f45247 100644 --- a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/SecurityActions.java +++ b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/SecurityActions.java @@ -324,9 +324,7 @@ private static Collection filterBridgeMethods(Method... declaredMethods) /** * Single instance to get the TCCL */ - private enum GetTcclAction implements PrivilegedAction - - { + private enum GetTcclAction implements PrivilegedAction { INSTANCE; public ClassLoader run() { diff --git a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherArchiveAppender.java b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherArchiveAppender.java index 76dcb370c..33c9e4074 100644 --- a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherArchiveAppender.java +++ b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherArchiveAppender.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherExtension.java b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherExtension.java index 645fb23f5..3c1b35e06 100644 --- a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherExtension.java +++ b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/client/ResourceEnricherExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/container/ResourceEnricherRemoteExtension.java b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/container/ResourceEnricherRemoteExtension.java index a08c55ed8..85409ae54 100644 --- a/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/container/ResourceEnricherRemoteExtension.java +++ b/testenrichers/resource/src/main/java/org/jboss/arquillian/testenricher/resource/container/ResourceEnricherRemoteExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/container/src/main/java/org/jboss/arquillian/testng/container/RemoveDependsOnTransformer.java b/testng/container/src/main/java/org/jboss/arquillian/testng/container/RemoveDependsOnTransformer.java index e59110454..83c7f4a3a 100644 --- a/testng/container/src/main/java/org/jboss/arquillian/testng/container/RemoveDependsOnTransformer.java +++ b/testng/container/src/main/java/org/jboss/arquillian/testng/container/RemoveDependsOnTransformer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGContainerExtension.java b/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGContainerExtension.java index daef9d124..fb5170d3f 100644 --- a/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGContainerExtension.java +++ b/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGContainerExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java b/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java index c007e17c7..fd63e77c2 100644 --- a/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java +++ b/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java @@ -45,14 +45,14 @@ protected Archive buildArchive() { .addAsServiceProvider( TestRunner.class, TestNGTestRunner.class); - + /* Attempt to add Guice if on classpath. TestNG 5.12 > use Guice */ // exclude AOP Alliance reference, not provided as part of TestNG jar optionalPackages( archive, Filters.exclude(".*/InterceptorStackCallback\\$InterceptedMethodInvocation.*"), "com.google.inject"); - + /* Attempt to add com.beust, internal TestNG package 5.14 > */ optionalPackages( archive, diff --git a/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideConfigurationFailureToTestRunner.java b/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideConfigurationFailureToTestRunner.java index 566c68fdf..2636ed122 100644 --- a/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideConfigurationFailureToTestRunner.java +++ b/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideConfigurationFailureToTestRunner.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideVariousTestResultsToTestRunner.java b/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideVariousTestResultsToTestRunner.java index f78173cce..e0f902d09 100644 --- a/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideVariousTestResultsToTestRunner.java +++ b/testng/container/src/test/java/org/jboss/arquillian/testng/container/ShouldProvideVariousTestResultsToTestRunner.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/core/src/main/java/org/jboss/arquillian/testng/Arquillian.java b/testng/core/src/main/java/org/jboss/arquillian/testng/Arquillian.java index ef09b5795..3c36ad45b 100644 --- a/testng/core/src/main/java/org/jboss/arquillian/testng/Arquillian.java +++ b/testng/core/src/main/java/org/jboss/arquillian/testng/Arquillian.java @@ -261,8 +261,7 @@ public Object[][] arquillianArgumentProvider(Method method) { return values; } - private static enum Cycle - { + private enum Cycle { BEFORE_SUITE, BEFORE_CLASS, BEFORE, TEST, AFTER, AFTER_CLASS, AFTER_SUITE } diff --git a/testng/core/src/main/java/org/jboss/arquillian/testng/State.java b/testng/core/src/main/java/org/jboss/arquillian/testng/State.java index a81134afd..67fdee7c8 100644 --- a/testng/core/src/main/java/org/jboss/arquillian/testng/State.java +++ b/testng/core/src/main/java/org/jboss/arquillian/testng/State.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/core/src/main/java/org/jboss/arquillian/testng/TestDataProviderTransformer.java b/testng/core/src/main/java/org/jboss/arquillian/testng/TestDataProviderTransformer.java index 23bc3557a..dc1a8937b 100644 --- a/testng/core/src/main/java/org/jboss/arquillian/testng/TestDataProviderTransformer.java +++ b/testng/core/src/main/java/org/jboss/arquillian/testng/TestDataProviderTransformer.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGIntegrationTestCase.java b/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGIntegrationTestCase.java index fae05ce30..481a09e11 100644 --- a/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGIntegrationTestCase.java +++ b/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGIntegrationTestCase.java @@ -18,7 +18,6 @@ import org.jboss.arquillian.test.spi.TestMethodExecutor; import org.jboss.arquillian.test.spi.TestResult; -import org.jboss.arquillian.test.spi.TestResult.Status; import org.jboss.arquillian.test.spi.TestRunnerAdaptor; import org.junit.Assert; import org.junit.Ignore; diff --git a/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGTestBaseClass.java b/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGTestBaseClass.java index 522fbb4ef..86beba66a 100644 --- a/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGTestBaseClass.java +++ b/testng/core/src/test/java/org/jboss/arquillian/testng/TestNGTestBaseClass.java @@ -27,7 +27,6 @@ import org.jboss.arquillian.test.spi.LifecycleMethodExecutor; import org.jboss.arquillian.test.spi.TestMethodExecutor; import org.jboss.arquillian.test.spi.TestResult; -import org.jboss.arquillian.test.spi.TestResult.Status; import org.jboss.arquillian.test.spi.TestRunnerAdaptor; import org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder; import org.junit.After; @@ -164,9 +163,7 @@ private void setAdaptor(TestRunnerAdaptor adaptor) throws Exception { method.invoke(null, adaptor); } - public static enum Cycle - - { + public enum Cycle { BEFORE_SUITE, BEFORE_CLASS, BEFORE, TEST, AFTER, AFTER_CLASS, AFTER_SUITE } diff --git a/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/LocalTestMethodExecutor.java b/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/LocalTestMethodExecutor.java index 3890e7d79..cde368615 100644 --- a/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/LocalTestMethodExecutor.java +++ b/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/LocalTestMethodExecutor.java @@ -26,7 +26,6 @@ import org.jboss.arquillian.core.spi.ServiceLoader; import org.jboss.arquillian.test.spi.TestEnricher; import org.jboss.arquillian.test.spi.TestResult; -import org.jboss.arquillian.test.spi.TestResult.Status; import org.jboss.arquillian.test.spi.annotation.TestScoped; import org.jboss.arquillian.test.spi.event.suite.Test; diff --git a/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/TestNGStandaloneExtension.java b/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/TestNGStandaloneExtension.java index 50d3f9083..3f3d94939 100644 --- a/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/TestNGStandaloneExtension.java +++ b/testng/standalone/src/main/java/org/jboss/arquillian/testng/standalone/TestNGStandaloneExtension.java @@ -10,7 +10,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.