Use distinct clan-member fixture to remove order dependence
This commit is contained in:
parent
2e46113a99
commit
5986ca938f
1 changed files with 1 additions and 1 deletions
|
|
@ -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+"}";}
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff