diff --git a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/RequestSerializerTest.java b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/RequestSerializerTest.java index 7f3fd5e..ae9080c 100644 --- a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/RequestSerializerTest.java +++ b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/RequestSerializerTest.java @@ -117,14 +117,14 @@ public class RequestSerializerTest { } @Provide("gameRequests") - public static Arbitrary gameRequests() { + private Arbitrary gameRequests() { return requestBuilders() .map(RequestBuilder::buildGameRequest) .filter(request -> gameRequestTypes.contains(request.type)); } @Provide("characterRequests") - public static Arbitrary characterRequests() { + private Arbitrary characterRequests() { return requestBuilders() .map(RequestBuilder::buildCharacterRequest) .filter(request -> characterRequestTypes.contains(request.type)); @@ -132,7 +132,7 @@ public class RequestSerializerTest { @Provide("filledRequestBuilders") - public static Arbitrary requestBuilders() { + private Arbitrary requestBuilders() { var emptyBuilders = Arbitraries.of(RequestType.class) .map(RequestBuilder::new); @@ -171,7 +171,7 @@ public class RequestSerializerTest { } @Provide("entityIDs") - public static Arbitrary entityIDs() { + private Arbitrary entityIDs() { var entityTypes = Arbitraries.of(EntityType.class); return Combinators.combine(entityTypes, Arbitraries.integers().greaterOrEqual(0)) .as((type, id) -> { @@ -188,7 +188,7 @@ public class RequestSerializerTest { } @Provide("randomPositions") - public static Arbitrary randomPositions() { + private Arbitrary randomPositions() { return Arbitraries.integers() .greaterOrEqual(0) .tuple2() @@ -196,7 +196,7 @@ public class RequestSerializerTest { } @Provide("directions") - public static Arbitrary directions() { + private Arbitrary directions() { return Arbitraries.integers() .between(-1, 1) .tuple2() @@ -206,7 +206,7 @@ public class RequestSerializerTest { @Provide("attackPositions") /** Returns tuples of origin vectors (of an attack), and the vector pointing to the attack dir */ - public static Arbitrary> attackPositions() { + private Arbitrary> attackPositions() { return Combinators.combine(randomPositions(), directions().tuple5()) .as((origin, dir) -> { var attackField = origin.copy()