Delete devlok-files/src/test/java/de/weapie/devlok/files/test directory
This commit is contained in:
parent
37d0102350
commit
3ba3787720
@ -1,20 +0,0 @@
|
|||||||
package de.weapie.devlok.files.test;
|
|
||||||
|
|
||||||
import de.weapie.devlok.files.config.annotations.ConfigExclude;
|
|
||||||
import lombok.*;
|
|
||||||
|
|
||||||
@de.weapie.devlok.files.config.annotations.Config(id = "config")
|
|
||||||
@AllArgsConstructor
|
|
||||||
@ToString
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
public class Config {
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
private boolean stable;
|
|
||||||
private int number;
|
|
||||||
|
|
||||||
@ConfigExclude
|
|
||||||
private String notRelevant = "Test 123";
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
package de.weapie.devlok.files.test;
|
|
||||||
|
|
||||||
import de.weapie.devlok.files.config.DevlokConfig;
|
|
||||||
import de.weapie.devlok.files.haste.HasteAPI;
|
|
||||||
import lombok.SneakyThrows;
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
public class TestFiles {
|
|
||||||
|
|
||||||
private DevlokConfig<Config> config = DevlokConfig.builder(Config.class)
|
|
||||||
.withDefault(() -> new Config("test", false, 1, "test 123"))
|
|
||||||
.withPath("./config/")
|
|
||||||
.build();
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@SneakyThrows
|
|
||||||
public void handle() {
|
|
||||||
config.write();
|
|
||||||
config.read();
|
|
||||||
|
|
||||||
HasteAPI.setHasteUrl("https://haste.jf.home");
|
|
||||||
System.out.println(HasteAPI.createHaste(config.value().toString()));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user