20 package net.sf.gridarta.model.archetypeset;
22 import java.util.Collection;
23 import java.util.Iterator;
37 import org.junit.Assert;
38 import org.junit.Test;
63 final Collection<TestArchetype> archetypes = archetypeSet.
getArchetypes();
64 Assert.assertEquals(5, archetypes.size());
65 final Iterator<TestArchetype> it = archetypes.iterator();
66 Assert.assertEquals(
"b", it.next().getArchetypeName());
67 Assert.assertEquals(
"d", it.next().getArchetypeName());
68 Assert.assertEquals(
"c", it.next().getArchetypeName());
69 Assert.assertEquals(
"e", it.next().getArchetypeName());
70 Assert.assertEquals(
"a", it.next().getArchetypeName());
71 Assert.assertFalse(it.hasNext());
A FaceObjects for regression tests.
Collection< R > getArchetypes()
Returns a read-only collection of all Archetypes.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
An AnimationObjects for regression tests.
Base implementation of ArchetypeSet.
A MapArchObject implementation for testing purposes.
Regression tests for DefaultArchetypeSet.
A factory for creating Archetype instances.
Base package of all Gridarta classes.
An Archetype implementation for testing purposes.
void testRetainLoadOrder()
Checks that archetypes are returned in load order.
An Exception indicating that an Archetype name is not unique.
AnimationObjects is a container for AnimationObjects.
GameObjects are the objects based on Archetypes found on maps.
FaceObjects is a container for FaceObjects.
void addArchetype(@NotNull R archetype)
Adds an Archetype to this Set.
An ArchetypeFactory implementation for testing purposes.
Provider for faces of GameObjects and Archetypes.
The face is the appearance of an object.
Creates ImageIcon instances from resources.
An Archetype implementation for testing purposes.
A GameObject implementation for testing purposes.
Interface that captures similarities between different ArchetypeSet implementations.