@@ -0,0 +1,1431 @@
+package org.ensembl.hive.longmult;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.ensembl.hive.ParamContainer;%0Aimport org.junit.Test;%0A%0A/**%0A * Unit tests for param handling%0A * @author dstaines%0A *%0A */%0Apublic class ParamContainerTest %7B%0A%0A%09@Test%0A%09public void testSimple() %7B%0A%09%09Map%3CString,Object%3E p = new HashMap%3C%3E();%0A%09%09p.put(%22one%22,%221%22);%0A%09%09ParamContainer c = new ParamContainer(p);%0A%09%09assertEquals(p.get(%22one%22), c.getParam(%22one%22));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testArray() %7B%0A%09%09Map%3CString,Object%3E p = new HashMap%3C%3E();%0A%09%09List%3CString%3E list = new ArrayList%3C%3E();%0A%09%09list.add(%22a%22);%0A%09%09list.add(%22b%22);%0A%09%09p.put(%22one%22,list);%0A%09%09ParamContainer c = new ParamContainer(p);%0A%09%09Object listOut = c.getParam(%22one%22);%0A%09%09assertTrue(List.class.isAssignableFrom(listOut.getClass()));%0A%09%09assertEquals(2,((List)listOut).size());%0A%09%09assertEquals(%22a%22,((List)listOut).get(0));%0A%09%09assertEquals(%22b%22,((List)listOut).get(1));%09%09%0A%09%7D%0A%0A%09@Test%0A%09public void testHash() %7B%0A%09%09Map%3CString,Object%3E p = new HashMap%3C%3E();%0A%09%09Map%3CString,Object%3E map = new HashMap%3C%3E();%0A%09%09map.put(%22a%22,1);%0A%09%09map.put(%22b%22,2);%0A%09%09p.put(%22one%22,map);%0A%09%09ParamContainer c = new ParamContainer(p);%0A%09%09Object mapOut = c.getParam(%22one%22);%0A%09%09assertTrue(Map.class.isAssignableFrom(mapOut.getClass()));%0A%09%09assertEquals(2,((Map)mapOut).size());%0A%09%09assertEquals(1,((Map)mapOut).get(%22a%22));%0A%09%09assertEquals(2,((Map)mapOut).get(%22b%22));%09%09%0A%09%7D%0A%0A%7D%0A

Create Java Runnable wrapper