use of com.sk89q.worldedit.LocalConfiguration in project FastAsyncWorldEdit by IntellectualSites.
the class BaseExpressionTest method setup.
@BeforeEach
void setup() {
when(mockPlat.getCapabilities()).thenReturn(Stream.of(Capability.values()).collect(Collectors.toMap(Function.identity(), __ -> Preference.NORMAL)));
when(mockPlat.getConfiguration()).thenReturn(new LocalConfiguration() {
@Override
public void load() {
}
});
WorldEdit.getInstance().getPlatformManager().register(mockPlat);
WorldEdit.getInstance().getEventBus().post(new PlatformsRegisteredEvent());
WorldEdit.getInstance().getConfiguration().calculationTimeout = 1_000;
}
Aggregations