From ecaa38e0d066985510f09ac563a8bd67be842d98 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 1 Aug 2013 01:43:28 +0200 Subject: [PATCH] Improve tests. Add StringPresenter tests. --- .../PresenterTest.java => utils/XidynUtilsTest.java} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename test/fr/devinsy/xidyn/{presenters/PresenterTest.java => utils/XidynUtilsTest.java} (72%) diff --git a/test/fr/devinsy/xidyn/presenters/PresenterTest.java b/test/fr/devinsy/xidyn/utils/XidynUtilsTest.java similarity index 72% rename from test/fr/devinsy/xidyn/presenters/PresenterTest.java rename to test/fr/devinsy/xidyn/utils/XidynUtilsTest.java index 67c1b8b..4100901 100644 --- a/test/fr/devinsy/xidyn/presenters/PresenterTest.java +++ b/test/fr/devinsy/xidyn/utils/XidynUtilsTest.java @@ -1,4 +1,4 @@ -package fr.devinsy.xidyn.presenters; +package fr.devinsy.xidyn.utils; import org.fest.assertions.Assertions; import org.junit.Test; @@ -6,7 +6,7 @@ import org.junit.Test; /** * */ -public class PresenterTest +public class XidynUtilsTest { /** * @@ -16,7 +16,7 @@ public class PresenterTest { String source = "aaaaahellozzzzz"; - String target = Presenter.extractBodyContent(source); + String target = XidynUtils.extractBodyContent(source); Assertions.assertThat(target).isEqualTo("hello"); } @@ -28,7 +28,7 @@ public class PresenterTest { String source = "aaaaaaahellozzzzz"; - String target = Presenter.extractBodyContent(source); + String target = XidynUtils.extractBodyContent(source); Assertions.assertThat(target).isEqualTo(""); } @@ -40,7 +40,7 @@ public class PresenterTest { String source = "aaaaazzzzz"; - String target = Presenter.extractBodyContent(source); + String target = XidynUtils.extractBodyContent(source); Assertions.assertThat(target).isEqualTo(""); } @@ -52,7 +52,7 @@ public class PresenterTest { String source = "aaaaa hello zzzzz"; - String target = Presenter.extractBodyContent(source); + String target = XidynUtils.extractBodyContent(source); Assertions.assertThat(target).isEqualTo("hello"); } }