Moved warp core
This commit is contained in:
parent
5614033d63
commit
2a94f7a001
5 changed files with 14 additions and 16 deletions
|
|
@ -1,17 +1,18 @@
|
|||
package love.distributedrebirth.numberxd.base2t.part.warp;
|
||||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.Base2WarpCore;
|
||||
import love.distributedrebirth.warpme.core.WaterBucket;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class TOSWarpCoreTest {
|
||||
public class Base2WarpCoreTest {
|
||||
|
||||
@Test
|
||||
public void testCurrentWarpCore() {
|
||||
WaterBucket warpCore = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||
WaterBucket warpCore = Base2WarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||
Assertions.assertNotNull(warpCore);
|
||||
Assertions.assertNotNull(warpCore.theWater());
|
||||
Assertions.assertNotNull(warpCore.theWater().getName());
|
||||
|
|
@ -23,19 +24,19 @@ public class TOSWarpCoreTest {
|
|||
|
||||
@Test
|
||||
public void testValidateWarpCore() {
|
||||
WaterBucket warpCore = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||
WaterBucket warpCore = Base2WarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||
|
||||
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(0).setChinaKey("零");
|
||||
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(1).setChinaKey("零");
|
||||
IllegalArgumentException thrownKey = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
TOSWarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||
Base2WarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||
});
|
||||
Assertions.assertEquals("Duplicate chinaKey: 零", thrownKey.getMessage());
|
||||
|
||||
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(0).setChinaValue("pink");
|
||||
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(1).setChinaValue("pink");
|
||||
IllegalArgumentException thrownValue = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
TOSWarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||
Base2WarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||
});
|
||||
Assertions.assertEquals("Duplicate chinaValue: pink", thrownValue.getMessage());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue