From: Michael Vorburger Date: Thu, 21 Jul 2016 01:05:00 +0000 (+0200) Subject: Checkstyle clean-up src/test/java X-Git-Tag: release/boron~54 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=a38318393bc6aad05bc6328629b31b8ed3b8def3;p=yangtools.git Checkstyle clean-up src/test/java Required to be able to run (enforce) CS on src/test as well. Change-Id: Ifa974a62fc5d912fc6e8a710851da7618254e256 Signed-off-by: Michael Vorburger --- diff --git a/common/checkstyle-logging/pom.xml b/common/checkstyle-logging/pom.xml index 53467208a9..7b17db1bc7 100644 --- a/common/checkstyle-logging/pom.xml +++ b/common/checkstyle-logging/pom.xml @@ -48,6 +48,7 @@ org.apache.maven.plugins maven-checkstyle-plugin + false checkstyle.violationSeverity=error diff --git a/websocket/websocket-client/pom.xml b/websocket/websocket-client/pom.xml index 8d4dcbff5c..235005842d 100644 --- a/websocket/websocket-client/pom.xml +++ b/websocket/websocket-client/pom.xml @@ -41,4 +41,15 @@ junit + + + + + maven-checkstyle-plugin + + false + + + + diff --git a/websocket/websocket-client/src/test/java/org/opendaylight/yangtools/websocket/server/WebSocketServerInitializer.java b/websocket/websocket-client/src/test/java/org/opendaylight/yangtools/websocket/server/WebSocketServerInitializer.java index 350eb8fcef..4c7f0ce92f 100644 --- a/websocket/websocket-client/src/test/java/org/opendaylight/yangtools/websocket/server/WebSocketServerInitializer.java +++ b/websocket/websocket-client/src/test/java/org/opendaylight/yangtools/websocket/server/WebSocketServerInitializer.java @@ -22,8 +22,6 @@ import io.netty.handler.codec.http.HttpObjectAggregator; import io.netty.handler.codec.http.HttpServerCodec; import org.opendaylight.yangtools.websocket.server.WebSocketServerHandler; -/** - */ public class WebSocketServerInitializer extends ChannelInitializer { @Override public void initChannel(SocketChannel ch) throws Exception { diff --git a/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java b/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java index 70b876eacd..def8552e25 100644 --- a/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java +++ b/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java @@ -4,9 +4,7 @@ * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html - * */ - package org.opendaylight.yangtools.yang.common; import static org.junit.Assert.assertEquals; @@ -26,4 +24,4 @@ public class OperationFailedExceptionTest { assertEquals(operationFailedException1.getErrorList(), operationFailedException2.getErrorList()); assertTrue(operationFailedException1.toString().contains("error msg")); } -} \ No newline at end of file +} diff --git a/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/YangConstantsTest.java b/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/YangConstantsTest.java index 7216db7a1a..7f16151201 100644 --- a/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/YangConstantsTest.java +++ b/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/YangConstantsTest.java @@ -4,9 +4,7 @@ * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html - * */ - package org.opendaylight.yangtools.yang.common; import static org.junit.Assert.assertEquals; @@ -25,4 +23,4 @@ public class YangConstantsTest { assertEquals(QNameModule.create(uriYang, null).intern(), YangConstants.RFC6020_YANG_MODULE); assertEquals(QNameModule.create(uriYin, null).intern(), YangConstants.RFC6020_YIN_MODULE); } -} \ No newline at end of file +} diff --git a/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/ModifyActionTest.java b/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/ModifyActionTest.java index 2218ee1884..a0877f7c4e 100644 --- a/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/ModifyActionTest.java +++ b/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/ModifyActionTest.java @@ -4,9 +4,7 @@ * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html - * */ - package org.opendaylight.yangtools.yang.data.api; import static org.junit.Assert.assertEquals; diff --git a/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/schema/tree/spi/DuplicityTest.java b/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/schema/tree/spi/DuplicityTest.java index 19377b1b0c..127dcf713c 100644 --- a/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/schema/tree/spi/DuplicityTest.java +++ b/yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/schema/tree/spi/DuplicityTest.java @@ -4,9 +4,7 @@ * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html - * */ - package org.opendaylight.yangtools.yang.data.api.schema.tree.spi; import static org.junit.Assert.assertEquals; @@ -33,4 +31,4 @@ public class DuplicityTest { assertEquals(0, normalizedNodeDuplicateEntryMapNode.size()); assertEquals(0, normalizedNodeDuplicateEntryMapContainer.size()); } -} \ No newline at end of file +} diff --git a/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNodeTest.java b/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNodeTest.java index 2353d3771e..934fe0345f 100644 --- a/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNodeTest.java +++ b/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNodeTest.java @@ -1,5 +1,9 @@ -/** +/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.data.impl.schema.nodes; diff --git a/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java b/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java index cd55369d12..d1f4200239 100644 --- a/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java +++ b/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.yangtools.yang.model.export.test; import java.io.File; diff --git a/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/SchemaContextProxyTest.java b/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/SchemaContextProxyTest.java index 59bbfd93c6..be3ce52eac 100644 --- a/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/SchemaContextProxyTest.java +++ b/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/SchemaContextProxyTest.java @@ -3,9 +3,8 @@ * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html.html + * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.yangtools.yang.model.util; import static org.junit.Assert.assertEquals; diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactoryTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactoryTest.java index d4fdc97fd3..0038007cc6 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactoryTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactoryTest.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.yangtools.yang.parser.repo; import static org.junit.Assert.assertNotNull;