1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/test/com/sun/ebxml/registry/conformance/SetExtrinsicObjects.java,v 1.4 2002/12/27 13:32:54 ritzmann Exp $ 3 */ 4 5 package com.sun.ebxml.registry.conformance; 6 7 import junit.framework.*; 8 import com.sun.ebxml.registry.interfaces.soap.*; 9 import javax.xml.soap.*; 10 import java.io.*; 11 12 /*** 13 * 14 * @author mzaremba 15 */ 16 public class SetExtrinsicObjects extends TestCase{ 17 18 private static String url = null; 19 20 private SOAPSender sender; 21 private SOAPMessage reply; 22 private TestSupport supportMethods; 23 24 public SetExtrinsicObjects(String name) { 25 super(name); 26 supportMethods = new TestSupport(); 27 try { 28 sender = supportMethods.connectRegistry(url); 29 } catch (Exception e) { 30 fail("Tests failed during Set up phase"); 31 e.printStackTrace(); 32 } 33 } 34 35 public void setUp() { 36 } 37 38 protected void tearDown() throws Exception { 39 System.gc(); 40 } 41 42 public void testRegistryDistinctRosettaNetProperties() { 43 try { 44 supportMethods.printMessage("UUID OF EXTERNAL IDENTIFIER IDENT. SCHEME"); 45 reply = supportMethods.submitFileToRegistry(sender,"FindEXTIDCS128bitUUID.xml"); 46 String UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 47 supportMethods.setUUIDInFile(UUID, "EXTIDCS128bitUUID", "SubmitRNProperties.xml"); 48 49 supportMethods.printMessage("DETERMINE UUID OF ROSETTANET T.D.C."); 50 reply = supportMethods.submitFileToRegistry(sender, "FindRNTDC128bitUUID.xml"); 51 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 52 supportMethods.setUUIDInFile(UUID, "RNTDCS128bitUUID", "SubmitRNProperties_new.xml"); 53 54 supportMethods.printMessage("UUID OF DATA TYPE HIERARCHY CLASS."); 55 reply = supportMethods.submitFileToRegistry(sender, "FindDTCbitUUID.xml"); 56 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 57 58 supportMethods.setUUIDInFile(UUID, "xxxxxxx", "FindIntegerUUID.xml"); 59 supportMethods.setUUIDInFile(UUID, "xxxxxxx", "FindRealNumberUUID.xml"); 60 supportMethods.setUUIDInFile(UUID, "xxxxxxx", "FindBooleanUUID.xml"); 61 supportMethods.setUUIDInFile(UUID, "xxxxxxx", "FindStringUUID.xml"); 62 supportMethods.setUUIDInFile(UUID, "xxxxxxx", "FindEnumerationCodesUUID.xml"); 63 64 supportMethods.printMessage("UUID OF INTEGER IN DATA TYPE HIERARCHY CLASS."); 65 reply = supportMethods.submitFileToRegistry(sender, "FindIntegerUUID_new.xml"); 66 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 67 supportMethods.setUUIDInFile(UUID, "DTCS:INT128bitUUID", "SubmitRNProperties_new_new.xml"); 68 69 supportMethods.printMessage("UUID OF REAL NUMBER IN DATA TYPE HIERARCHY CLASS."); 70 reply = supportMethods.submitFileToRegistry(sender, "FindRealNumberUUID_new.xml"); 71 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 72 supportMethods.setUUIDInFile(UUID, "DTCS:DEC128bitUUID", "SubmitRNProperties_new_new_new.xml"); 73 74 supportMethods.printMessage("UUID OF BOOLEAN IN DATA TYPE HIERARCHY CLASS."); 75 reply = supportMethods.submitFileToRegistry(sender, "FindBooleanUUID_new.xml"); 76 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 77 supportMethods.setUUIDInFile(UUID, "DTCS:BOOL128bitUUID", "SubmitRNProperties_new_new_new_new.xml"); 78 79 supportMethods.printMessage("UUID OF STRING IN DATA TYPE HIERARCHY CLASS."); 80 reply = supportMethods.submitFileToRegistry(sender, "FindStringUUID_new.xml"); 81 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 82 supportMethods.setUUIDInFile(UUID, "DTCS:STRG128bitUUID", "SubmitRNProperties_new_new_new_new_new.xml"); 83 84 supportMethods.printMessage("UUID OF ENUMERATION CODES IN DATA TYPE HIERARCHY CLASS."); 85 reply = supportMethods.submitFileToRegistry(sender, "FindEnumerationCodesUUID.xml"); 86 UUID = supportMethods.getAttributeValue(reply, "ObjectRef", "id"); 87 supportMethods.setUUIDInFile(UUID, "DTCS:CODE128bitUUID", "SubmitRNProperties_new_new_new_new_new_new.xml"); 88 89 supportMethods.printMessage("SUBMIT 743 DISTINCT ROSETTANET PROPERTIES"); 90 supportMethods.submitFileToRegistry(sender, "SubmitRNProperties_new_new_new_new_new_new_new.xml"); 91 92 } catch(Exception e) { 93 e.printStackTrace(); 94 fail("Exception has been thrown during setting 746" + 95 " distinct RosettaNet properties"); 96 } 97 } 98 99 100 public static Test suite() { 101 TestSuite suite = new TestSuite(); 102 suite.addTest(new SetExtrinsicObjects("testRegistryDistinctRosettaNetProperties")); 103 return suite; 104 } 105 106 public static void main(String[] args) { 107 url = TestSupport.getURL(args); 108 junit.textui.TestRunner.run(suite()); 109 } 110 111 public static void runTests() { 112 junit.textui.TestRunner.run(suite()); 113 } 114 115 }

This page was automatically generated by Maven