diff options
Diffstat (limited to 'patches/server/0004-Test-changes.patch')
-rw-r--r-- | patches/server/0004-Test-changes.patch | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/patches/server/0004-Test-changes.patch b/patches/server/0004-Test-changes.patch index 2bf3cdb566..2c3baac94d 100644 --- a/patches/server/0004-Test-changes.patch +++ b/patches/server/0004-Test-changes.patch @@ -452,3 +452,81 @@ index 5781c2fab2d407b4a22d5fc80e1c03e907617316..68ae998b30bbcacae3604fb6581ceca3 RegistryHelper.registry = layers.compositeAccess().freeze(); // Register vanilla pack RegistryHelper.dataPack = ReloadableServerResources.loadResources(ireloadableresourcemanager, layers, list, featureFlagSet, Commands.CommandSelection.DEDICATED, 0, MoreExecutors.directExecutor(), MoreExecutors.directExecutor()).join(); +diff --git a/src/test/java/org/bukkit/support/suite/AllFeaturesTestSuite.java b/src/test/java/org/bukkit/support/suite/AllFeaturesTestSuite.java +index d78661198815b78d041288eb62076514926428ad..2d268498b545db48efa106d2c7afca7f7b74c76d 100644 +--- a/src/test/java/org/bukkit/support/suite/AllFeaturesTestSuite.java ++++ b/src/test/java/org/bukkit/support/suite/AllFeaturesTestSuite.java +@@ -14,7 +14,7 @@ import org.junit.platform.suite.api.SuiteDisplayName; + @Suite(failIfNoTests = false) + @SuiteDisplayName("Test suite for test which need registry values present, with all feature flags set") + @IncludeTags("AllFeatures") +-@SelectPackages("org.bukkit") ++@SelectPackages({"org.bukkit", "io.papermc"}) + @SelectClasses({RegistryClassTest.class, PerRegistryTest.class, RegistryConversionTest.class}) // Make sure general registry tests are run first + @ExcludeClassNamePatterns("org.bukkit.craftbukkit.inventory.ItemStack.*Test") + @ConfigurationParameter(key = "TestSuite", value = "AllFeatures") +diff --git a/src/test/java/org/bukkit/support/suite/BundleFeatureTestSuite.java b/src/test/java/org/bukkit/support/suite/BundleFeatureTestSuite.java +index 8faaffd16fb05bd3d976b6a63835cfa547ec2445..c1ee709083276acb14b474993800dd4894febc47 100644 +--- a/src/test/java/org/bukkit/support/suite/BundleFeatureTestSuite.java ++++ b/src/test/java/org/bukkit/support/suite/BundleFeatureTestSuite.java +@@ -9,7 +9,7 @@ import org.junit.platform.suite.api.SuiteDisplayName; + @Suite(failIfNoTests = false) + @SuiteDisplayName("Test suite for test which need registry values present, with the bundle feature flag set") + @IncludeTags("BundleFeature") +-@SelectPackages("org.bukkit") ++@SelectPackages({"org.bukkit", "io.papermc"}) + @ConfigurationParameter(key = "TestSuite", value = "BundleFeature") + public class BundleFeatureTestSuite { + } +diff --git a/src/test/java/org/bukkit/support/suite/LegacyTestSuite.java b/src/test/java/org/bukkit/support/suite/LegacyTestSuite.java +index 576c35e086345c96325628cf1a048599f9ed6950..ac3c1c88ce5de4b623d17ab0af11a7d04caec869 100644 +--- a/src/test/java/org/bukkit/support/suite/LegacyTestSuite.java ++++ b/src/test/java/org/bukkit/support/suite/LegacyTestSuite.java +@@ -9,7 +9,7 @@ import org.junit.platform.suite.api.SuiteDisplayName; + @Suite(failIfNoTests = false) + @SuiteDisplayName("Test suite for legacy tests") + @IncludeTags("Legacy") +-@SelectPackages("org.bukkit") ++@SelectPackages({"org.bukkit", "io.papermc"}) + @ConfigurationParameter(key = "TestSuite", value = "Legacy") + public class LegacyTestSuite { + } +diff --git a/src/test/java/org/bukkit/support/suite/NormalTestSuite.java b/src/test/java/org/bukkit/support/suite/NormalTestSuite.java +index 661c49c83b9a81512cf181b50f6353dc76e9f0bc..76f61fb60612160477b7da0b095f1c7e4822d4fb 100644 +--- a/src/test/java/org/bukkit/support/suite/NormalTestSuite.java ++++ b/src/test/java/org/bukkit/support/suite/NormalTestSuite.java +@@ -9,7 +9,7 @@ import org.junit.platform.suite.api.SuiteDisplayName; + @Suite(failIfNoTests = false) + @SuiteDisplayName("Test suite for standalone tests, which don't need any registry values present") + @IncludeTags("Normal") +-@SelectPackages("org.bukkit") ++@SelectPackages({"org.bukkit", "io.papermc"}) + @ConfigurationParameter(key = "TestSuite", value = "Normal") + public class NormalTestSuite { + } +diff --git a/src/test/java/org/bukkit/support/suite/SlowTestSuite.java b/src/test/java/org/bukkit/support/suite/SlowTestSuite.java +index f95ff2e9930f4fd0ff284f714fc39afb6b7789ca..60be4c20101bbae8cf027270ff0e1e138d2fe9d2 100644 +--- a/src/test/java/org/bukkit/support/suite/SlowTestSuite.java ++++ b/src/test/java/org/bukkit/support/suite/SlowTestSuite.java +@@ -9,7 +9,7 @@ import org.junit.platform.suite.api.SuiteDisplayName; + @Suite(failIfNoTests = false) + @SuiteDisplayName("Test suite for slow tests, which don't need to run every time") + @IncludeTags("Slow") +-@SelectPackages("org.bukkit") ++@SelectPackages({"org.bukkit", "io.papermc"}) + @ConfigurationParameter(key = "TestSuite", value = "Slow") + public class SlowTestSuite { + } +diff --git a/src/test/java/org/bukkit/support/suite/VanillaFeatureTestSuite.java b/src/test/java/org/bukkit/support/suite/VanillaFeatureTestSuite.java +index 5ee48e92d2b5134a4ba15802087f6afe58c1cb8d..d0e2eacfcd487e2852eff4b1828031dd3649e41a 100644 +--- a/src/test/java/org/bukkit/support/suite/VanillaFeatureTestSuite.java ++++ b/src/test/java/org/bukkit/support/suite/VanillaFeatureTestSuite.java +@@ -9,7 +9,7 @@ import org.junit.platform.suite.api.SuiteDisplayName; + @Suite(failIfNoTests = false) + @SuiteDisplayName("Test suite for test which need vanilla registry values present") + @IncludeTags("VanillaFeature") +-@SelectPackages("org.bukkit") ++@SelectPackages({"org.bukkit", "io.papermc"}) + @ConfigurationParameter(key = "TestSuite", value = "VanillaFeature") + public class VanillaFeatureTestSuite { + } |