#1473: Change tests to use suites, to run tests in different environments and feature flags
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import net.minecraft.core.registries.BuiltInRegistries;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.IBlockData;
|
||||
import org.bukkit.craftbukkit.block.data.CraftBlockData;
|
||||
import org.bukkit.support.AbstractTestingBase;
|
||||
import org.bukkit.support.environment.AllFeatures;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.Arguments;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
@@ -15,7 +15,8 @@ import org.junit.jupiter.params.provider.MethodSource;
|
||||
* This test class ensures that all Blocks (as registered in BuiltInRegistries.BLOCK)
|
||||
* can be converted into their CraftBlockData equivalent.
|
||||
*/
|
||||
public class BlockDataConversionTest extends AbstractTestingBase {
|
||||
@AllFeatures
|
||||
public class BlockDataConversionTest {
|
||||
|
||||
public static Stream<Arguments> data() {
|
||||
return BuiltInRegistries.BLOCK.stream().map(Block::defaultBlockState).map(Arguments::of);
|
||||
|
||||
Reference in New Issue
Block a user