Required to be able to run (enforce) CS on src/test as well.
Change-Id: Ifa974a62fc5d912fc6e8a710851da7618254e256
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
+ <includeTestSourceDirectory>false</includeTestSourceDirectory>
<propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
</configuration>
</plugin>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <includeTestSourceDirectory>false</includeTestSourceDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
import io.netty.handler.codec.http.HttpServerCodec;
import org.opendaylight.yangtools.websocket.server.WebSocketServerHandler;
-/**
- */
public class WebSocketServerInitializer extends ChannelInitializer<SocketChannel> {
@Override
public void initChannel(SocketChannel ch) throws Exception {
* 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;
assertEquals(operationFailedException1.getErrorList(), operationFailedException2.getErrorList());
assertTrue(operationFailedException1.toString().contains("error msg"));
}
-}
\ No newline at end of file
+}
* 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;
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
+}
* 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;
* 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;
assertEquals(0, normalizedNodeDuplicateEntryMapNode.size());
assertEquals(0, normalizedNodeDuplicateEntryMapContainer.size());
}
-}
\ No newline at end of file
+}
-/**
+/*
* 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;
+/*
+ * 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;
*
* 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;
+/*
+ * 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;