[maven-checkstyle-plugin] branch equals updated (02964f6 -> a154125)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[maven-checkstyle-plugin] branch equals updated (02964f6 -> a154125)

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

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


 discard 02964f6  test for NullPointer
     add 3d424b8  update site plugin and links (#43)
     add 96557bb  use try with resources and charset (#44)
     add 4fede6d  Bump animal-sniffer-maven-plugin from 1.19 to 1.20
     add e0b01ad  Run ITs on Java 16
     add 6d229a7  [MCHECKSTYLE-399] Upgrade Checkstyle to 8.41.1
     add 2f45933  [MCHECKSTYLE-99] <includeTestSourceDirectory> should use default test
     new a154125  test for NullPointer

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (02964f6)
            \
             N -- N -- N   refs/heads/equals (a154125)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 Jenkinsfile                                        |  2 +-
 pom.xml                                            | 15 +---
 .../invoker.properties                             |  0
 .../pom.xml                                        | 38 ++++++----
 .../src/main/java/com/example/App.java             |  0
 .../src/test/java/com/example/AppTest.java         |  0
 .../verify.groovy                                  |  6 +-
 .../invoker.properties                             |  0
 src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99}/pom.xml | 37 ++++++----
 .../src/main/java/com/example/App.java             |  0
 .../src/test/java/com/example/AppTest.java         |  0
 .../verify.groovy                                  |  6 +-
 .../checkstyle/AbstractCheckstyleReport.java       | 85 ++++++++++++++++------
 .../checkstyle/CheckstyleReportGenerator.java      | 55 +++++++++++++-
 .../checkstyle/exec/DefaultCheckstyleExecutor.java | 80 --------------------
 .../plugins/checkstyle/rss/VelocityTemplate.java   | 50 +++++--------
 src/site/apt/index.apt.vm                          |  7 +-
 src/test/plugin-configs/custom-plugin-config.xml   |  1 +
 .../dep-resolution-exception-plugin-config.xml     |  1 +
 .../plugin-configs/fail-on-error-plugin-config.xml |  1 +
 src/test/plugin-configs/min-plugin-config.xml      |  1 +
 src/test/plugin-configs/multi-plugin-config.xml    |  1 +
 src/test/plugin-configs/no-files-plugin-config.xml |  1 +
 src/test/plugin-configs/no-rules-plugin-config.xml |  1 +
 .../plugin-configs/no-severity-plugin-config.xml   |  1 +
 .../plugin-configs/no-source-plugin-config.xml     |  1 +
 .../test-source-directory-plugin-config.xml        |  1 +
 src/test/plugin-configs/useFile-plugin-config.xml  |  1 +
 28 files changed, 206 insertions(+), 186 deletions(-)
 copy src/it/{checkstyle-goal => MCHECKSTYLE-99-custom-xref-test-location}/invoker.properties (100%)
 copy src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99-custom-xref-test-location}/pom.xml (66%)
 copy src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99-custom-xref-test-location}/src/main/java/com/example/App.java (100%)
 copy src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99-custom-xref-test-location}/src/test/java/com/example/AppTest.java (100%)
 copy src/it/{MCHECKSTYLE-222-resources => MCHECKSTYLE-99-custom-xref-test-location}/verify.groovy (76%)
 copy src/it/{checkstyle-goal => MCHECKSTYLE-99}/invoker.properties (100%)
 copy src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99}/pom.xml (67%)
 copy src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99}/src/main/java/com/example/App.java (100%)
 copy src/it/{MCHECKSTYLE-129 => MCHECKSTYLE-99}/src/test/java/com/example/AppTest.java (100%)
 copy src/it/{MCHECKSTYLE-222-resources => MCHECKSTYLE-99}/verify.groovy (77%)
Reply | Threaded
Open this post in threaded view
|

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

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

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

commit a154125976da14db3961cd9372c3ecaa880d47ad
Author: Elliotte Rusty Harold <[hidden email]>
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 );
+    }
+    
+    
+}