Examples of fromMap()


Examples of org.jbpm.formapi.server.form.FormRepresentationEncoderImpl.fromMap()

    public void testRepresentationEncoderImpl() throws Exception {
        FormRepresentationEncoderImpl encoder = new FormRepresentationEncoderImpl();
        FormRepresentationDecoderImpl decoder = new FormRepresentationDecoderImpl();
        FormEncodingFactory.register(encoder, decoder);
       
        assertNull("result should be null", encoder.fromMap(null));
        assertNull("result should be null", encoder.fromMap(new HashMap<String, Object>()));
       
        assertNotNull("formattedDate shouldn't be null", encoder.formatDate(new Date()));
       
        FormRepresentation form = RESTAbstractTest.createMockForm("myForm", "myParam1", "myParam2");
View Full Code Here

Examples of org.jbpm.formapi.server.form.FormRepresentationEncoderImpl.fromMap()

        FormRepresentationEncoderImpl encoder = new FormRepresentationEncoderImpl();
        FormRepresentationDecoderImpl decoder = new FormRepresentationDecoderImpl();
        FormEncodingFactory.register(encoder, decoder);
       
        assertNull("result should be null", encoder.fromMap(null));
        assertNull("result should be null", encoder.fromMap(new HashMap<String, Object>()));
       
        assertNotNull("formattedDate shouldn't be null", encoder.formatDate(new Date()));
       
        FormRepresentation form = RESTAbstractTest.createMockForm("myForm", "myParam1", "myParam2");
        FormItemRepresentation item = form.getFormItems().iterator().next();
View Full Code Here

Examples of org.jbpm.formapi.server.form.FormRepresentationEncoderImpl.fromMap()

        assertNotNull("formattedDate shouldn't be null", encoder.formatDate(new Date()));
       
        FormRepresentation form = RESTAbstractTest.createMockForm("myForm", "myParam1", "myParam2");
        FormItemRepresentation item = form.getFormItems().iterator().next();
        Map<String, Object> data = item.getDataMap();
        Object obj = encoder.fromMap(data);
        assertNotNull("obj shouldn't be null", obj);
        assertTrue("obj should be of type FormItemRepresentation", obj instanceof FormItemRepresentation);
        FormItemRepresentation retval = (FormItemRepresentation) obj;
        assertEquals("retval and item should be equal", retval, item);
    }
View Full Code Here

Examples of org.sonatype.nexus.component.source.api.http.AuthenticationConfigMarshaller.fromMap()

      for (Entry<String, Object> entry : configMap.entrySet()) {
        if (entry.getKey().startsWith(prefix + ".authentication.")) {
          authMap.put(entry.getKey().substring((prefix + ".authentication.").length()), entry.getValue());
        }
      }
      return marshaller.fromMap(authMap);
    }
    return null;
  }

  private ProxyConfig proxyFromMap(final Map<String, Object> configMap) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.