web/DuneQuests/src/test/java/com/dunerealms/quests/ServerIdentityTest.java
unimatrixgit 77cdf19faa Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence
Preserve the current Alpha source and artwork snapshot. See handoff/alpha-1.0.0.3 for actual deployed hashes, checks, staged follow-ups and the production pause. This checkpoint does not claim every source feature is deployed.
2026-11-02 00:05:34 +01:00

4 lines
531 B
Java

package com.dunerealms.quests;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ServerIdentityTest { @Test void everyConfiguredBackendIsAcceptedAndArbitraryScopesRejected(){for(String s:new String[]{"arrakis","kaitain","giedi_prime","caladan","sigma_draconis_iv","lobby"})assertTrue(DuneQuests.validServer(s),s);for(String s:new String[]{"","network","proxy","CALADAN","sigma-draconis-iv","../caladan"})assertFalse(DuneQuests.validServer(s),s);assertFalse(DuneQuests.validServer(null));}}