20 package net.sf.gridarta.model.match;
36 import org.jetbrains.annotations.NotNull;
37 import org.jetbrains.annotations.Nullable;
38 import org.junit.Assert;
39 import org.junit.Test;
64 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1)));
65 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2)));
66 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 1)));
67 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 1)));
68 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 2)));
69 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 2)));
70 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 1, 1)));
71 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 2, 2)));
72 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 1, 2)));
73 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 2, 1)));
74 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 2, 2)));
89 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1)));
90 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2)));
91 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 1)));
92 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 1)));
93 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 2)));
94 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 2)));
95 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 1, 1)));
96 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 1, 2, 2)));
97 Assert.assertTrue(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 1, 2)));
98 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 2, 1)));
99 Assert.assertFalse(namedGameObjectMatcher.
isMatching(
newGameObjects(gameObjectFactory, faceObjectProviders, animationObjects, 2, 2, 2)));
127 final TestGameObject gameObject = gameObjectFactory.createGameObject(archetype);
146 for (
final int typeNumber : typeNumbers) {
147 final String
name = Integer.toString(typeNumber);
150 if (gameObject !=
null) {
151 tmp.addLast(gameObject);
155 if (gameObject ==
null) {
156 throw new IllegalArgumentException(
"no matching game objects found");