net.sf.gridarta.model.mapmodel
public class FilterGameObjectIteratorTest extends Object
FilterGameObjectIterator
.Modifier and Type | Class and Description |
---|---|
private static class |
FilterGameObjectIteratorTest.AcceptAllMatcher
A
GameObjectMatcher that accepts all game objects. |
private static class |
FilterGameObjectIteratorTest.AcceptMatcher
A
GameObjectMatcher that accepts a set of game objects. |
private static class |
FilterGameObjectIteratorTest.ArrayGameObjectIterator
An
Iterator that returns a fixed list of GameObjects . |
Constructor and Description |
---|
FilterGameObjectIteratorTest() |
Modifier and Type | Method and Description |
---|---|
private static void |
check(GameObjectMatcher matcher,
Iterator<TestGameObject> iterator,
TestGameObject... gameObjects)
Creates a new
FilterGameObjectIterator instance and checks that
it returns the expected game objects. |
void |
testAcceptMatcher()
Checks that a matcher that accepts some game objects returns only the
accepted game objects.
|
void |
testAllMatcher()
Checks that a matcher that accepts all game objects returns all game
objects.
|
void |
testEmptyIterator()
Checks that an empty iterator is filtered correctly.
|
public FilterGameObjectIteratorTest()
public void testEmptyIterator()
public void testAllMatcher()
public void testAcceptMatcher()
private static void check(@NotNull GameObjectMatcher matcher, @NotNull Iterator<TestGameObject> iterator, @NotNull TestGameObject... gameObjects)
FilterGameObjectIterator
instance and checks that
it returns the expected game objects.matcher
- the matcher for the filter game object iteratoriterator
- the underlying iterator for the filter game object
iteratorgameObjects
- the expected game objects to be returned from the
filter game object iteratorFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.