mc-minestom/src/test/java/net/minestom/server/item/component/MapPostProcessingTest.java
Kerman 4b4b260314
test: add @RegistriesTest annotation & enforce naming scheme (#3322)
* test: add @RegistriesTest annotation for vanilla registries snapshot

Adds RegistriesTest/RegistriesTestExt to the testing module providing a shared Registries.vanilla() snapshot, which will become immutable in the future, so tests that only need registry data do not require the server process. Converts the eligible tests and renames init tests to the *IntegrationTest suffix.

Documents the naming scheme in CONTRIBUTING.md.

* fix: SocketRead/Write should be integration tests
2026-08-03 20:55:23 +00:00

22 lines
690 B
Java

package net.minestom.server.item.component;
import net.minestom.server.component.DataComponent;
import net.minestom.server.component.DataComponents;
import java.util.List;
import java.util.Map;
public class MapPostProcessingTest extends AbstractItemComponentRegistriesTest<MapPostProcessing> {
@Override
protected DataComponent<MapPostProcessing> component() {
return DataComponents.MAP_POST_PROCESSING;
}
@Override
protected List<Map.Entry<String, MapPostProcessing>> directReadWriteEntries() {
return List.of(
Map.entry("lock", MapPostProcessing.LOCK),
Map.entry("scale", MapPostProcessing.SCALE)
);
}
}