Package org.gatein.common.util

Examples of org.gatein.common.util.ParameterMap$ValueConverter


      return parameters != null ? parameters.getValues(name) : null;
   }

   public Map<String, String[]> getParameterMap()
   {
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here


      }
   }

   public Map<String, String[]> getPrivateParameterMap()
   {
      ParameterMap parameters = requestParameterMap.getPrivateParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here

      }
   }

   public Map<String, String[]> getPublicParameterMap()
   {
      ParameterMap parameters = requestParameterMap.getPublicParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here

      }

      //
      // Map result = Collections.EMPTY_MAP;

      ParameterMap parameterMap = new ParameterMap();

      String encodedName = null;
      CharBuffer buffer = new CharBuffer(50);

View Full Code Here

      PortletInfo info = controller.getPortletInfo(windowId);

      //
      if (info != null)
      {
         ParameterMap publicNavigationalState = new ParameterMap();
         for (ParameterInfo parameterInfo : info.getNavigation().getPublicParameters())
         {
            String[] parameterValue = page.getPublicNavigationalState(parameterInfo.getName());

            //
            if (parameterValue != null)
            {
               String parameterId = parameterInfo.getId();

               // We clone the value here so we keep the internal state not potentially changed
               publicNavigationalState.put(parameterId, parameterValue.clone());
            }
         }

         //
         return publicNavigationalState;
View Full Code Here

      assertEquals(Arrays.asList(expected), Arrays.asList(actual));
   }

   public void testEncodeNoMeta()
   {
      ParameterMap result = tester.encode();
      assertEquals(1, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));

      //
      tester.actual("action", "foo");
      result = tester.encode();
      assertEquals(1, result.size());
      assertEquals(new String[]{"0","foo"}, result.getValues("action"));

      //
      tester.meta("action", "foo");
      result = tester.encode();
      assertEquals(1, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
   }
View Full Code Here

   public void testEncodeOneMeta()
   {
      tester.meta("m1");

      //
      ParameterMap result = tester.encode();
      assertEquals(1, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));

      //
      tester.meta("m1", "foo");
      result = tester.encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));

      //
      tester.actual("m1", "foo");
      result = tester.encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));

      //
      tester.meta("m1", "bar").actual("m1", "foo");
      result = tester.encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"bar","foo"}, result.getValues("m1"));
   }
View Full Code Here

      tester.meta("m2");

      // No actual parameters

      //
      ParameterMap result = tester.encode();
      assertEquals(1, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));

      //
      result = tester.meta("m1", "foo").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));

      //
      result = tester.meta("m2", "foo").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));

      //
      result = tester.meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));

      //
      result = tester.meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));

      //
      result = tester.meta("m3", "zuu").encode();
      assertEquals(1, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));

      //
      result = tester.meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));

      //
      result = tester.meta("m1", "foo").meta("m2", "bar").meta("m2", "bar").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));

      // {m1} actual parameter

      //
      result = tester.actual("m1", "a").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));

      //
      result = tester.actual("m1", "a").meta("m1", "foo").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));

      //
      result = tester.actual("m1", "a").meta("m2", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));

      //
      result = tester.actual("m1", "a").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));

      //
      result = tester.actual("m1", "a").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));

      // {m2} actual parameter

      //
      result = tester.actual("m2", "b").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m1", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m2", "foo").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));

      //
      result = tester.actual("m2", "b").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));

      // {m3} actual parameter

      //
      result = tester.actual("m3", "c").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m1", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m2", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m3", "zuu").encode();
      assertEquals(2, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m3", "c").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      // {m1,m2} actual parameter

      //
      result = tester.actual("m1", "a").actual("m2", "b").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m1", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m2", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));

      // {m1,m3} actual parameter

      //
      result = tester.actual("m1", "a").actual("m3", "c").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m1", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m2", "foo").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m3", "c").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      // {m2,m3} actual parameter

      //
      result = tester.actual("m2", "b").actual("m3", "c").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m1", "foo").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m2", "foo").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(3, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m2", "b").actual("m3", "c").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      // {m1,m2,m3} actual parameter

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m1", "foo").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m2", "foo").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m1", "foo").meta("m2", "bar").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"0"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m1", "foo").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"10"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m2", "foo").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"1"}, result.getValues("action"));
      assertEquals(new String[]{"a"}, result.getValues("m1"));
      assertEquals(new String[]{"foo","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));

      //
      result = tester.actual("m1", "a").actual("m2", "b").actual("m3", "c").meta("m1", "foo").meta("m2", "bar").meta("m3", "zuu").encode();
      assertEquals(4, result.size());
      assertEquals(new String[]{"11"}, result.getValues("action"));
      assertEquals(new String[]{"foo","a"}, result.getValues("m1"));
      assertEquals(new String[]{"bar","b"}, result.getValues("m2"));
      assertEquals(new String[]{"c"}, result.getValues("m3"));
   }
View Full Code Here

      }
      else
      {
         if (queryParams == null)
         {
            queryParams = new ParameterMap(ACCES_MODE);
         }
         queryParams.setValue(parameterName, parameterValue);
      }
   }
View Full Code Here

      }
      else
      {
         if (queryParams == null)
         {
            queryParams = new ParameterMap(ACCES_MODE);
         }
         queryParams.setValues(parameterName, parameterValues);
      }
   }
View Full Code Here

TOP

Related Classes of org.gatein.common.util.ParameterMap$ValueConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.