Examples of JaxBSafeMap


Examples of org.pentaho.platform.scheduler2.ws.JaxBSafeMap

    mapValue.put( "testMapValueKey", "testMapVal" );

    params.put( "testStringkey", new StringParamValue( "testStringVal" ) );
    params.put( "testListKey", listValue );
    params.put( "testMapKey", mapValue );
    JaxBSafeMap map = new JaxBSafeMap( params );

    JaxBSafeMap unmarshalled = JaxBUtil.outin( map, JaxBSafeMap.class, JaxBSafeEntry.class, StringParamValue.class );

    Assert.assertEquals( "testStringVal", unmarshalled.entry.get( 0 ).getStringValue().toString() );
    Assert.assertEquals( "testListVal0", unmarshalled.entry.get( 1 ).getListValue().get( 0 ) );
    Assert.assertEquals( "testMapVal", unmarshalled.entry.get( 2 ).getMapValue().get( "testMapValueKey" ) );
  }
View Full Code Here

Examples of org.pentaho.platform.scheduler2.ws.JaxBSafeMap

    job.userName = "testUsername";

    HashMap<String, ParamValue> params = new HashMap<String, ParamValue>();
    params.put( "testStringkey", new StringParamValue( "testStringVal" ) );

    JaxBSafeMap safeMap = new JaxBSafeMap( params );
    job.jobParams = safeMap;

    JobAdapter.JaxbSafeJob unmarshalledJob = JaxBUtil.outin( job, JobAdapter.JaxbSafeJob.class );
    Assert.assertEquals( job.lastRun, unmarshalledJob.lastRun );
    Assert.assertEquals( job.nextRun, unmarshalledJob.nextRun );
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.