01: package info.jtrac.wicket.yui;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05: import junit.framework.TestCase;
06:
07: public class YuiUtilsTest extends TestCase {
08:
09: public void testJsonConversion() {
10: Map<String, Object> map = new HashMap<String, Object>();
11: map.put("foo", true);
12: map.put("bar", false);
13: assertEquals("{foo : true, bar : false}", YuiUtils.getJson(map));
14: }
15:
16: }
|