mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-17 22:29:41 -05:00
update classes
Former-commit-id: b990d7d5428f011a2e4b5260a6540405e4ec24c1
This commit is contained in:
1 parent
866f34beea
commit
abf85cf960
17 files changed
+1216
-3
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package org.maxgamer.quickshop.File;
|
||||
|
||||
import be.seeseemelk.mockbukkit.MockBukkit;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.maxgamer.quickshop.QuickShopTest;
|
||||
|
||||
class JSONFileTest {
|
||||
|
||||
private QuickShopTest plugin;
|
||||
private IFile json;
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
MockBukkit.mock();
|
||||
plugin = MockBukkit.load(QuickShopTest.class);
|
||||
json = new JSONFile(plugin, "messages");
|
||||
json.create();
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
void tearDown() {
|
||||
MockBukkit.unload();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package org.maxgamer.quickshop;
|
||||
|
||||
import org.bukkit.plugin.PluginDescriptionFile;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.plugin.java.JavaPluginLoader;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public final class QuickShopTest extends JavaPlugin {
|
||||
|
||||
public QuickShopTest() {
|
||||
super();
|
||||
}
|
||||
|
||||
protected QuickShopTest(JavaPluginLoader loader, PluginDescriptionFile description, File dataFolder, File file) {
|
||||
super(
|
||||
loader,
|
||||
description,
|
||||
new File("build"),
|
||||
file
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user