Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6085 for branches


Ignore:
Timestamp:
04/29/11 19:20:46 (14 years ago)
Author:
mholper
Message:

added AddPlatformstest #1441

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKBJavaConnector/AdministrationService/src/administrationservice/Main.java

    r6062 r6085  
    1111import com.heuristiclab.services.administration.ArrayOfPlatform;
    1212import com.heuristiclab.services.administration.IAdministrationService;
     13import com.heuristiclab.services.administration.ObjectFactory;
    1314import com.heuristiclab.services.administration.Platform;
    1415import java.net.MalformedURLException;
     
    2223import javax.net.ssl.TrustManager;
    2324import javax.net.ssl.X509TrustManager;
     25import javax.xml.bind.JAXBElement;
    2426
    2527/**
     
    9294  }
    9395
     96  public void AddPlatformsTest(IAdministrationService port) {
     97                Long retval = 0L;
     98                ObjectFactory fac = new ObjectFactory();
     99                Platform p = fac.createPlatform();
     100                p.setName(fac.createNamedOKBItemName("ECJ"));
     101                p.setDescription(fac.createNamedOKBItemDescription("A Java-based Evolutionary Computation Research System"));
     102
     103
     104                try {
     105                    retval = port.addPlatform(p);
     106                } catch (Exception e) {
     107                    e.printStackTrace();
     108                }
     109
     110                System.out.println("adding of Platform "+(retval>0?"sucessful":"failed"));
     111  }
     112
    94113
    95114    /**
     
    102121            IAdministrationService port = srv.getAdministrationService();
    103122            test.GetAlgorithmsTest(port);
     123            test.AddPlatformsTest(port);
    104124            test.GetPlatformsTest(port);
    105125        } catch (MalformedURLException ex) {
Note: See TracChangeset for help on using the changeset viewer.