Author: michiel Date: 2010-03-25 11:49:14 +0100 (Thu, 25 Mar 2010) New Revision: 41601
Added: mmbase/trunk/core/src/test/java/org/mmbase/util/SortedBundleTest.java Modified: mmbase/trunk/core/src/test/java/org/mmbase/util/functions/ParameterTest.java Log: Added: mmbase/trunk/core/src/test/java/org/mmbase/util/SortedBundleTest.java =================================================================== --- mmbase/trunk/core/src/test/java/org/mmbase/util/SortedBundleTest.java (rev 0) +++ mmbase/trunk/core/src/test/java/org/mmbase/util/SortedBundleTest.java 2010-03-25 10:49:14 UTC (rev 41601) @@ -0,0 +1,30 @@ +/* + +This software is OSI Certified Open Source Software. +OSI Certified is a certification mark of the Open Source Initiative. + +The license (Mozilla version 1.0) can be read at the MMBase site. +See http://www.MMBase.org/license + +*/ +package org.mmbase.util; +import java.util.*; +import org.junit.*; +import static org.junit.Assert.*; + +/** + * + * @author Michiel Meeuwissen + * @verion $Id: LocalizedEntryListFactoryTest.java 39842 2009-11-23 10:41:32Z michiel $ + */ +public class SortedBundleTest { + + + @Test + public void enums() { + Map<String, Object> map = SortedBundle.getConstantsProvider(org.mmbase.framework.WindowState.class); + assertEquals(3, map.size()); + + } + +} Modified: mmbase/trunk/core/src/test/java/org/mmbase/util/functions/ParameterTest.java =================================================================== --- mmbase/trunk/core/src/test/java/org/mmbase/util/functions/ParameterTest.java 2010-03-25 10:49:08 UTC (rev 41600) +++ mmbase/trunk/core/src/test/java/org/mmbase/util/functions/ParameterTest.java 2010-03-25 10:49:14 UTC (rev 41601) @@ -26,8 +26,8 @@ @BeforeClass public static void setup() throws Exception { + MockCloudContext.getInstance().addCore(); DataTypes.initialize(); - MockCloudContext.getInstance().addCore(); MockCloudContext.getInstance().addNodeManagers(MockBuilderReader.getBuilderLoader().getChildResourceLoader("mynews")); MockCloudContext.getInstance().addNodeManagers(MockBuilderReader.getBuilderLoader().getChildResourceLoader("tests")); } @@ -54,7 +54,7 @@ param.checkType("just a string"); // it _is_ of the correct type param.autoCast("a2"); // and can also be casted. - + assertEquals("red", param.autoCast("red")); } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs