Package br.eti.kinoshita.testlinkjavaapi.model

Examples of br.eti.kinoshita.testlinkjavaapi.model.Platform


        executionData);
      Object[] responseArray = (Object[]) response;
      platforms = new Platform[responseArray.length];
      for (int i = 0; i < responseArray.length; i++) {
    Map<String, Object> projectMap = (Map<String, Object>) responseArray[i];
    Platform platform = Util.getPlatform(projectMap);
    platforms[i] = platform;
      }

  } catch (XmlRpcException xmlrpcex) {
      throw new TestLinkAPIException("Error retrieving platforms: "
View Full Code Here


   * @param map
   * @return
   */
  public static final Platform getPlatform(Map<String, Object> map)
  {
    Platform platform = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          platform = new Platform();
          platform.setId( id );
         
          platform.setName( getString(map, TestLinkResponseParams.name.toString()) );
          platform.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );
        }
       
      }     
    }
    return platform;
View Full Code Here

      Object[] responseArray = (Object[])response;
      platforms = new Platform[responseArray.length];
      for (int i = 0; i < responseArray.length; i++)
      {
        Map<String, Object> projectMap = (Map<String, Object>)responseArray[i];
        Platform platform = Util.getPlatform(projectMap);
        platforms[i] = platform;
      }
     
    }
    catch ( XmlRpcException xmlrpcex )
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.testlinkjavaapi.model.Platform

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.