You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2021/01/24 14:56:37 UTC

[maven-checkstyle-plugin] branch equals created (now 02964f6)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch equals
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git.


      at 02964f6  test for NullPointer

This branch includes the following new commits:

     new 02964f6  test for NullPointer

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-checkstyle-plugin] 01/01: test for NullPointer

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch equals
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git

commit 02964f62cf89e1bfe852ea0d713ea4ff0fd77eea
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Jan 24 09:56:20 2021 -0500

    test for NullPointer
---
 .../maven/plugins/checkstyle/ViolationTest.java    | 37 ++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/src/test/java/org/apache/maven/plugins/checkstyle/ViolationTest.java b/src/test/java/org/apache/maven/plugins/checkstyle/ViolationTest.java
new file mode 100644
index 0000000..dc69c7d
--- /dev/null
+++ b/src/test/java/org/apache/maven/plugins/checkstyle/ViolationTest.java
@@ -0,0 +1,37 @@
+package org.apache.maven.plugins.checkstyle;
+
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  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, 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.
+ */
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ViolationTest
+{
+
+    @Test
+    public void testEquals() {
+        Violation v1 = new Violation("", null, "", "", "", "", "");
+        Violation v2 = new Violation("", null, "", "", "", "", "");
+        Assert.assertEquals( v1, v2 );
+    }
+    
+    
+}