 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.io;
34 import org.jetbrains.annotations.NotNull;
35 import org.junit.Assert;
36 import org.junit.Test;
57 checkRemoveAttribute(
"abc def\n" +
"ghi jkl\n" +
"mno pqr\n",
"def",
"abc def\n" +
"ghi jkl\n" +
"mno pqr\n");
61 checkRemoveAttribute(
"abc def\n" +
"ghi jkl\n" +
"mno pqr\n",
"Abc",
"abc def\n" +
"ghi jkl\n" +
"mno pqr\n");
75 private static void checkRemoveAttribute(@NotNull
final String attributeList, @NotNull
final String key, @NotNull
final String expectedResult) {
106 archetype.setObjectText(objectText);
An Archetype implementation for testing purposes.
Abstract factory for creating GameObject instances.
static String removeAttribute(@NotNull final String attributeList, @NotNull final String key)
Removes an attribute from an attribute list.
Base package of all Gridarta classes.
AnimationObjects is a container for AnimationObjects.
A GameObject implementation for testing purposes.
Test for AttributeListUtils.
Utility class for archetype attribute related functions.
void testRemoveAttribute()
Test case for String).
Provider for faces of GameObjects and Archetypes.
An AnimationObjects for regression tests.
GameObjects are the objects based on Archetypes found on maps.
R newArchetype(@NotNull String archetypeName)
Creates a new Archetype instance.
void checkDiffArchTextValues1()
Checks that CharSequence) returns correct values.
A GameObjectFactory for regression tests.
FaceObjects is a container for FaceObjects.
static String diffArchTextValues(@NotNull final BaseObject<?, ?, ?, ?> archetype, @NotNull final CharSequence attributes)
Returns all entries from the given attributes that don't exist in an archetype.
static BaseObject<?, ?, ?, ?> newArchetype(@NotNull final String objectText)
Creates a new archetype.
The face is the appearance of an object.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
A MapArchObject implementation for testing purposes.
Creates ImageIcon instances from resources.
static void checkRemoveAttribute(@NotNull final String attributeList, @NotNull final String key, @NotNull final String expectedResult)
Calls AttributeListUtils#removeAttribute(String, String) and checks for expected results.
A FaceObjects for regression tests.