mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-17 14:19:41 -05:00
Update JSONFileTest.java
Former-commit-id: 9b87d720086f93c538277d8b21e148c2c221b6a8
This commit is contained in:
1 parent
b7b1d7cbaa
commit
35a3568dcd
1 file changed
+12
@@ -1,7 +1,9 @@
|
||||
package org.maxgamer.quickshop.File;
|
||||
|
||||
import be.seeseemelk.mockbukkit.MockBukkit;
|
||||
import jdk.nashorn.internal.runtime.UnwarrantedOptimismException;
|
||||
import org.hamcrest.core.IsEqual;
|
||||
import org.hamcrest.core.IsNot;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -30,6 +32,16 @@ final class JSONFileTest {
|
||||
).affirm();
|
||||
}
|
||||
|
||||
@Test
|
||||
void set() {
|
||||
json.set("test.test", "test");
|
||||
new Assertion<>(
|
||||
"Cannot be setted 'test.test' path as 'test'",
|
||||
json.get("test.test"),
|
||||
new IsEqual<>("test")
|
||||
).affirm();
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
void stop() {
|
||||
MockBukkit.unload();
|
||||
|
||||
Reference in new issue
Block a user