[config-core] remove unused testmod
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-02-23 17:53:58 +01:00
parent 0a20b8eb74
commit 9902c7c8ba
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 0 additions and 85 deletions

View File

@ -1,63 +0,0 @@
package io.gitlab.jfronny.libjf.config.test;
import io.gitlab.jfronny.libjf.config.api.v1.*;
import io.gitlab.jfronny.libjf.config.api.v1.dsl.*;
import java.util.LinkedList;
import java.util.List;
@JfConfig(referencedConfigs = {"Yes", "No", "Yes"})
public class TestConfigCustom implements JfCustomConfig {
// User-created
@Entry
public static Integer someValue = 10;
@Entry public static String someOther = "Yes";
@Category
public static class SomeCategory {
@Entry public static boolean someBool = true;
@Entry public static List<String> someObject = new LinkedList<>();
@Verifier
public static void exampleVerifier() {
}
@Preset
public static void examplePreset() {
}
// Generated
private static CategoryBuilder<?> libjf$config$root(CategoryBuilder<?> builder) {
return builder
.value("someBool", someBool, () -> SomeCategory.someBool, v -> SomeCategory.someBool = v)
.value(EntryInfo.ofField(SomeCategory.class, "someObject"))
.addVerifier(SomeCategory::exampleVerifier)
.addPreset("examplePreset", SomeCategory::examplePreset);
}
}
// Generated
@Override
public void register(DSL.Defaulted dsl) {
// Here to ensure the static initializer is called
}
static {
libjf$config$clinit();
}
private static void libjf$config$clinit() {
ConfigHolder.getInstance().migrateFiles("libjf-config-v1-testmod");
DSL.create("libjf-config-v1-testmod").config(TestConfigCustom::libjf$config$root);
}
private static ConfigBuilder<?> libjf$config$root(ConfigBuilder<?> builder) {
return builder
.referenceConfig("libjf-config-reflect-v0-testmod")
.value("someValue", someValue, -50, 50, () -> someValue, v -> someValue = v)
.value("someOther", someOther, () -> someOther, v -> someOther = v)
.category("someCategory", SomeCategory::libjf$config$root);
}
}

View File

@ -1,22 +0,0 @@
{
"schemaVersion": 1,
"id": "libjf-config-v1-testmod",
"name": "LibJF Config",
"version": "1.0",
"environment": "*",
"entrypoints": {
"libjf:config_custom": [
"io.gitlab.jfronny.libjf.config.test.TestConfigCustom$LibJF_Companion"
]
},
"custom": {
"libjf": {
"config": {
"referencedConfigs": ["libjf-web-v0"]
}
},
"modmenu": {
"parent": "libjf-testmod"
}
}
}