From: <die...@us...> - 2011-08-26 07:34:37
|
Revision: 3643 http://openutils.svn.sourceforge.net/openutils/?rev=3643&view=rev Author: diego_schivo Date: 2011-08-26 07:34:31 +0000 (Fri, 26 Aug 2011) Log Message: ----------- MESSAGES-14 MessagesElTest Added Paths: ----------- trunk/openutils-mgnlmessages/src/test/java/net/ trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/ trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/ trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/mgnlmessages/ trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/mgnlmessages/el/ trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/mgnlmessages/el/MessagesElTest.java Property Changed: ---------------- trunk/openutils-mgnlmessages/ Property changes on: trunk/openutils-mgnlmessages ___________________________________________________________________ Modified: svn:ignore - target .settings .checkstyle .classpath .project pom.xml.releaseBackup release.properties + target .settings .checkstyle .classpath .project pom.xml.releaseBackup release.properties test-output Added: trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/mgnlmessages/el/MessagesElTest.java =================================================================== --- trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/mgnlmessages/el/MessagesElTest.java (rev 0) +++ trunk/openutils-mgnlmessages/src/test/java/net/sourceforge/openutils/mgnlmessages/el/MessagesElTest.java 2011-08-26 07:34:31 UTC (rev 3643) @@ -0,0 +1,35 @@ +/** + * + * Messages Module for Magnolia CMS (http://www.openmindlab.com/lab/products/messages.html) + * Copyright(C) 2008-2011, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlmessages.el; + +import org.testng.Assert; +import org.testng.annotations.Test; + + +public class MessagesElTest +{ + + @Test + public void testMessageTextContains() + { + Assert.assertTrue(MessagesEl.messageTextContains("L'impostazione è stata salvata", "impostazione")); + Assert.assertFalse(MessagesEl.messageTextContains("L'impostazione è stata salvata", "impostazioni")); + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |