Changeset 6085 for branches/OKBJavaConnector/AdministrationService
- Timestamp:
- 04/29/11 19:20:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKBJavaConnector/AdministrationService/src/administrationservice/Main.java
r6062 r6085 11 11 import com.heuristiclab.services.administration.ArrayOfPlatform; 12 12 import com.heuristiclab.services.administration.IAdministrationService; 13 import com.heuristiclab.services.administration.ObjectFactory; 13 14 import com.heuristiclab.services.administration.Platform; 14 15 import java.net.MalformedURLException; … … 22 23 import javax.net.ssl.TrustManager; 23 24 import javax.net.ssl.X509TrustManager; 25 import javax.xml.bind.JAXBElement; 24 26 25 27 /** … … 92 94 } 93 95 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 94 113 95 114 /** … … 102 121 IAdministrationService port = srv.getAdministrationService(); 103 122 test.GetAlgorithmsTest(port); 123 test.AddPlatformsTest(port); 104 124 test.GetPlatformsTest(port); 105 125 } catch (MalformedURLException ex) {
Note: See TracChangeset
for help on using the changeset viewer.