Test changes

- Allow use of TYPE_USE annotations
- Ignore package-private methods for nullability annotations
- Add excludes for classes which don't pass
- Disable stupid BukkitMirrorTest
- configure mockito agent to address changes in newer java versions see https://openjdk.org/jeps/451

Co-authored-by: Riley Park <rileysebastianpark@gmail.com>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
Shane Freeder
2019-03-17 23:04:30 +00:00
parent 74b3d383cc
commit b42af839f3
5 changed files with 186 additions and 8 deletions

View File

@@ -0,0 +1,31 @@
package io.papermc.paper.testing;
import java.util.Collections;
import java.util.Set;
import org.bukkit.Keyed;
import org.bukkit.NamespacedKey;
import org.bukkit.Tag;
import org.jetbrains.annotations.NotNull;
public record EmptyTag(NamespacedKey key) implements Tag<Keyed> {
@SuppressWarnings("deprecation")
public EmptyTag() {
this(NamespacedKey.randomKey());
}
@Override
public @NotNull NamespacedKey getKey() {
return this.key;
}
@Override
public boolean isTagged(@NotNull final Keyed item) {
return false;
}
@Override
public @NotNull Set<Keyed> getValues() {
return Collections.emptySet();
}
}