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);
A FaceObjects for regression tests.
static String removeAttribute(@NotNull final String attributeList, @NotNull final String key)
Removes an attribute from an attribute list.
void testRemoveAttribute()
Test case for String).
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.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
An AnimationObjects for regression tests.
void checkDiffArchTextValues1()
Checks that CharSequence) returns correct values.
A MapArchObject implementation for testing purposes.
Base package of all Gridarta classes.
Abstract factory for creating GameObject instances.
AnimationObjects is a container for AnimationObjects.
GameObjects are the objects based on Archetypes found on maps.
A GameObjectFactory for regression tests.
R newArchetype(@NotNull String archetypeName)
Creates a new Archetype instance.
Utility class for archetype attribute related functions.
FaceObjects is a container for FaceObjects.
Provider for faces of GameObjects and Archetypes.
The face is the appearance of an object.
Test for AttributeListUtils.
Creates ImageIcon instances from resources.
An Archetype implementation for testing purposes.
A GameObject implementation for testing purposes.
static BaseObject<?, ?, ?, ?> newArchetype(@NotNull final String objectText)
Creates a new archetype.
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.