Expose authenticated native organisation and rebellion key view
This commit is contained in:
parent
26f9e1c25c
commit
94407ad2a4
1 changed files with 349 additions and 182964 deletions
|
|
@ -1,11 +0,0 @@
|
|||
package com.dunerealms.gui;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
class DragonControllerTest {
|
||||
private static class EndDragonFight {}
|
||||
private static class WorldHandle {private EndDragonFight dragonFight=new EndDragonFight();private final String unrelated="preserved";}
|
||||
@Test void detachOnlyControllerAndRestoreWithoutOverwritingNewerState()throws Exception{
|
||||
WorldHandle world=new WorldHandle();Object original=world.dragonFight;var change=DragonController.detach(world);assertNull(world.dragonFight);assertEquals("preserved",world.unrelated);change.restore();assertSame(original,world.dragonFight);
|
||||
var second=DragonController.detach(world);world.dragonFight=new EndDragonFight();Object newer=world.dragonFight;second.restore();assertSame(newer,world.dragonFight);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue

Staff