From 78d2a3c44a852d418559ea873c8ea6e701c83ff9 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 9 Nov 2010 07:33:16 +0000 Subject: [PATCH] * make test case independent from Episode class (which changed quite often lately) --- test/net/sourceforge/tuned/PreferencesMapTest.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/net/sourceforge/tuned/PreferencesMapTest.java b/test/net/sourceforge/tuned/PreferencesMapTest.java index fc879b6e..fb8deabe 100644 --- a/test/net/sourceforge/tuned/PreferencesMapTest.java +++ b/test/net/sourceforge/tuned/PreferencesMapTest.java @@ -4,6 +4,7 @@ package net.sourceforge.tuned; import static org.junit.Assert.*; +import java.awt.Color; import java.util.Arrays; import java.util.Collection; import java.util.Map; @@ -14,8 +15,6 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -import net.sourceforge.filebot.web.Date; -import net.sourceforge.filebot.web.Episode; import net.sourceforge.tuned.PreferencesMap.SerializableAdapter; import net.sourceforge.tuned.PreferencesMap.SimpleAdapter; @@ -167,11 +166,10 @@ public class PreferencesMapTest { @Test public void serializableAdapter() { - Map map = PreferencesMap.map(temp, new SerializableAdapter()); - Episode episode = new Episode("Dark Angel", 3, 1, "Labyrinth", null, new Date(2009, 6, 1)); + Map map = PreferencesMap.map(temp, new SerializableAdapter()); + Color color = new Color(0.25f, 0.50f, 1.00f); - map.put("episode", episode); - - assertEquals(episode.toString(), map.get("episode").toString()); + map.put("color", color); + assertEquals(color, map.get("color")); } }