Examples of asMap()


Examples of com.sun.appserv.management.deploy.DeploymentStatusImpl.asMap()

  {
    final DeploymentStatusImpl  ds  = createDeploymentStatus( "dummy" );
    final DeploymentStatusFoo  stage1  = new DeploymentStatusFoo();
    ds.addSubStage( stage1 );
   
    final Map<String,Serializable>  data  = ds.asMap();
   
    final DeploymentStatusImpl ds2  = new DeploymentStatusImpl( data );
   
    assert( ds2.equals( ds ) );
  }
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo.asMap()

        Map<Object, String> wsKeyMap = getWSKeys();
        List dataList = new ArrayList();
        for (Iterator iter = wsKeyMap.keySet().iterator(); iter.hasNext();) {
            Object wsKey = iter.next();
            WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(wsKey);
            Map wsInfoMap = wsInfo.asMap();
           
            String wsdlFileName = (new File((String)wsInfoMap.get(
                WebServiceEndpointInfo.WSDL_FILE_LOCATION_KEY))).getName();
            wsInfoMap.put("WSDLFileName", wsdlFileName);
           
View Full Code Here

Examples of com.sun.appserv.management.j2ee.statistics.MapStatistic.asMap()

        final Class<? extends Statistic> theClass  =
            StatisticFactory.getInterface( origStatistic );
        assert( theClass != null );
       
        // this will create one which implements the requisite interfaces
        statistics[ i = StatisticFactory.create( theClass, m.asMap() );
       
        assert( theClass.isAssignableFrom( statistics[ i ].getClass() ));
      }
     
      return( statistics );
View Full Code Here

Examples of com.sun.appserv.management.j2ee.statistics.MapStatisticImpl.asMap()

        final Class<? extends Statistic> theClass  =
            StatisticFactory.getInterface( origStatistic );
        assert( theClass != null );
       
        // this will create one which implements the requisite interfaces
        statistics[ i = StatisticFactory.create( theClass, m.asMap() );
       
        assert( theClass.isAssignableFrom( statistics[ i ].getClass() ));
      }
     
      return( statistics );
View Full Code Here

Examples of com.sun.enterprise.deployment.backend.DeploymentStatus.asMap()

    public Map createApplicationReferenceAndReturnStatusAsMap(
        String targetName, String referenceName, Map options) {
        DeploymentStatus oldStatus = createApplicationReference(targetName,
            referenceName, options);
        return oldStatus.asMap();
    }

    public DeploymentStatus deleteApplicationReference(String targetName,
        String referenceName, Map options) {
        try {
View Full Code Here

Examples of de.zalando.typemapper.postgres.HStore.asMap()

        if (value == null) {
            return null;
        }

        HStore hstore = new HStore(value);
        return hstore.asMap();
    }

}
View Full Code Here

Examples of javax.ws.rs.core.Form.asMap()

    public void readFromTest() throws IOException {
        ResponseDataProvider<Form> responseDataProvider = new ResponseDataProvider<>();
        String str = "oauth_token=totototot&oauth_token_secret=tststststststs&usd=hashshsh";
        InputStream is = new ByteArrayInputStream(str.getBytes());
        Form form = responseDataProvider.readFrom(Form.class, null, null, null, null, is);
        Assert.assertEquals("totototot", form.asMap().getFirst("oauth_token"));
        Assert.assertEquals("tststststststs", form.asMap().getFirst("oauth_token_secret"));
    }

    public void isReadableTest() {
        ResponseDataProvider<Form> responseDataProvider = new ResponseDataProvider<>();
View Full Code Here

Examples of jdbm.htree.HTree.asMap()

     */
    public void testHTreeClear() throws IOException {
        final RecordManager recman = newRecordManager();
        final HTree tree = HTree.createInstance(recman);
        recman.setNamedObject("test", tree.getRecid());
        final HTreeMap<String,String> treeMap = tree.asMap();

        for (int i = 0; i < 1001; i++) {
            treeMap.put(String.valueOf(i),String.valueOf(i));
        }
        recman.commit();
View Full Code Here

Examples of net.sourceforge.processdash.i18n.Resources.asMap()

                pos = bundleName.lastIndexOf('.');
                if (pos != -1 && bundleName.indexOf('/', pos) == -1)
                    bundleName = bundleName.substring(0, pos);

                Resources bundle = Resources.getTemplateBundle(bundleName);
                parameters.putAll(bundle.asMap());
            } catch (Exception e) {
                // it is not an error if no companion bundle was found.
            }

        } catch (IOException ioe) {
View Full Code Here

Examples of org.amplafi.json.JSONObject.asMap()

        assertEquals(outMap.get("foo"), inMap.get("foo"));
        assertEquals(outMap.get("str"), inMap.get("str"));

        // we can't know that the nested map should be interpreted as a map.
        JSONObject actual = (JSONObject) outMap.get("bar");
        assertEquals(actual.asMap(), inMap.get("bar"));
    }

    @SuppressWarnings("unchecked")
    @Test
    public void testBasic() {
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.