Use distinct clan-member fixture to remove order dependence
Some checks failed
DuneGroups Replacement Build / dunegroups (push) Successful in 44s
DuneRealms Resourcepack CI / resourcepack (push) Failing after 11s
DuneRealms Plugin CI / plugins (push) Successful in 4m20s

This commit is contained in:
unimatrixgit 2026-12-02 13:26:17 +01:00
commit 5986ca938f

View file

@ -15,7 +15,7 @@ class OrganisationDirectoryTest {
}
private static String clan(String id,String life,boolean protectedClan,String parent){
return "{\"id\":\""+id+"\",\"name\":\"Clan "+id.substring(id.length()-1)+"\",\"tag\":\"T\",\"lifecycle\":\""+life+"\",\"hidden\":false,\"protected\":"+protectedClan+(parent.isEmpty()?"":",\"parent\":"+parent)
+",\"members\":[{\"uuid\":\""+P1+"\",\"role\":\"owner\"},{\"uuid\":\""+P2+"\",\"role\":\"officer\"},{\"uuid\":\""+P3+"\",\"role\":\"member\"}],"
+",\"members\":[{\"uuid\":\""+P1+"\",\"role\":\"owner\"},{\"uuid\":\""+P2+"\",\"role\":\"officer\"},{\"uuid\":\""+(id.equals(C1)?P3:"11111111-0000-0000-0000-000000000004")+"\",\"role\":\"member\"}],"
+"\"homeBlock\":{\"source\":\"minecraft\",\"worldUuid\":\""+W+"\",\"position\":{\"x\":10,\"y\":70,\"z\":-5},\"revision\":4}}";
}
private static String war(String key,String a,String d,boolean active){return "{\"keyId\":\""+key+"\",\"attackerId\":\""+a+"\",\"defenderId\":\""+d+"\",\"active\":"+active+"}";}