mirror of
https://github.com/Minestom/Minestom
synced 2026-08-18 20:26:11 -04:00
* 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
22 lines
690 B
Java
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)
|
|
);
|
|
}
|
|
}
|