refactor tests + add static class test

This commit is contained in:
Draylar
2021-04-03 17:14:37 -05:00
parent 9e9eac06fc
commit 8b42f5a9c5
5 changed files with 37 additions and 12 deletions
@@ -0,0 +1,37 @@
package draylar.omegatest.config;
import draylar.omegaconfig.api.Comment;
import draylar.omegaconfig.api.Config;
import draylar.omegaconfig.api.Syncing;
import org.jetbrains.annotations.Nullable;
@Syncing
public class SimpleConfigTest implements Config {
@Comment(value = "Hello!")
public boolean v = false;
@Comment(value = "I'm a double.")
public double doubleTest = 0.0;
public String stringTest = "Hello, world!";
@Comment(value = "This is an inner static class.")
public Test test = new Test();
public static class Test {
@Comment(value = "This is the value inside the class!")
public boolean innerTest = false;
}
@Override
public String getName() {
return "test-config";
}
@Override
public @Nullable String getModid() {
return "omega-config-test";
}
}