20 package net.sf.gridarta.gui.map.renderer;
28 import org.junit.Assert;
29 import org.junit.Test;
46 final TestArchetype archetype = gameObjectFactory.newArchetype(
"arch");
47 final TestGameObject gameObject = gameObjectFactory.createGameObject(archetype);
48 gameObject.setAttributeString(
"<key>",
"<value>&<value>");
50 final String tooltip = toolTipAppender.
finish();
51 Assert.assertEquals(
"<html><b>arch</b><br><key> <value>&<value>", tooltip);
Reading and writing of maps, handling of paths.
Helper class for regression tests to create MapModel instances.
Interface for classes that read or write GameObject instances.
A MapArchObject implementation for testing purposes.
Base package of all Gridarta classes.
Abstract factory for creating GameObject instances.
GameObjects are the objects based on Archetypes found on maps.
GameObjectParser< TestGameObject, TestMapArchObject, TestArchetype > newGameObjectParser()
Creates a new GameObjectParser instance.
An Archetype implementation for testing purposes.
A GameObject implementation for testing purposes.
GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > getGameObjectFactory()
Returns the GameObjectFactory instance.