diff options
author | Riley Park <[email protected]> | 2021-02-21 11:45:33 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-21 20:45:33 +0100 |
commit | 4e958e229f9f448a10dbc610bab460dbf222902e (patch) | |
tree | b5029407506e181c4800c42920b7e01a78d06639 /Spigot-API-Patches/0257-Better-AnnotationTest-printout.patch | |
parent | 1a973561167fe7eee67fb1590a7590f8d7166f2a (diff) | |
download | Paper-4e958e229f9f448a10dbc610bab460dbf222902e.tar.gz Paper-4e958e229f9f448a10dbc610bab460dbf222902e.zip |
We're going on an Adventure! (#4842)
Co-authored-by: Jake Potrebic <[email protected]>
Co-authored-by: zml <[email protected]>
Co-authored-by: Mariell Hoversholm <[email protected]>
Diffstat (limited to 'Spigot-API-Patches/0257-Better-AnnotationTest-printout.patch')
-rw-r--r-- | Spigot-API-Patches/0257-Better-AnnotationTest-printout.patch | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/Spigot-API-Patches/0257-Better-AnnotationTest-printout.patch b/Spigot-API-Patches/0257-Better-AnnotationTest-printout.patch deleted file mode 100644 index 3a6ec64adc..0000000000 --- a/Spigot-API-Patches/0257-Better-AnnotationTest-printout.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Jake Potrebic <[email protected]> -Date: Thu, 3 Dec 2020 14:04:57 -0800 -Subject: [PATCH] Better AnnotationTest printout - - -diff --git a/pom.xml b/pom.xml -index 7747189d49727eea039f3994e186b34480025144..6c6ae6b48094c86c74cd4e9f4214056f63e6ac68 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -223,6 +223,19 @@ - <shadedArtifactAttached>true</shadedArtifactAttached> - </configuration> - </plugin> -+ <plugin> -+ <groupId>org.apache.maven.plugins</groupId> -+ <artifactId>maven-surefire-plugin</artifactId> -+ <version>2.22.2</version> -+ <configuration> -+ <properties> -+ <property> -+ <name>listener</name> -+ <value>io.papermc.paper.JunitEventListener</value> -+ </property> -+ </properties> -+ </configuration> -+ </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> -diff --git a/src/test/java/io/papermc/paper/JunitEventListener.java b/src/test/java/io/papermc/paper/JunitEventListener.java -new file mode 100644 -index 0000000000000000000000000000000000000000..072ac1a96394b8d494f42fca8dfe08115eaed3fe ---- /dev/null -+++ b/src/test/java/io/papermc/paper/JunitEventListener.java -@@ -0,0 +1,6 @@ -+package io.papermc.paper; -+ -+import org.junit.runner.notification.RunListener; -+ -+public class JunitEventListener extends RunListener { -+} -diff --git a/src/test/java/org/bukkit/AnnotationTest.java b/src/test/java/org/bukkit/AnnotationTest.java -index a48be38b159bec27ec398666b28620a9ea625547..4c2780c903ec354edac741b673a7174284a9849a 100644 ---- a/src/test/java/org/bukkit/AnnotationTest.java -+++ b/src/test/java/org/bukkit/AnnotationTest.java -@@ -101,13 +101,18 @@ public class AnnotationTest { - - Collections.sort(errors); - -- System.out.println(errors.size() + " missing annotation(s):"); -+ StringBuilder builder = new StringBuilder() -+ .append("There ") -+ .append(errors.size() != 1 ? "are " : "is ") -+ .append(errors.size()) -+ .append(" missing annotation") -+ .append(errors.size() != 1 ? "s:\n" : ":\n"); -+ - for (String message : errors) { -- System.out.print("\t"); -- System.out.println(message); -+ builder.append("\t").append(message).append("\n"); - } - -- Assert.fail("There " + errors.size() + " are missing annotation(s)"); -+ Assert.fail(builder.toString()); - } - - private static void collectClasses(@NotNull File from, @NotNull Map<String, ClassNode> to) throws IOException { |