コード例 #1
0
 @BeforeClass
 public static void setUp() throws WSDLException {
   builder.setProjectName(PROC4_TEST);
   builder.setTargetNamespace(PROC4_NAMESPACE);
   PLSQLProcedureOperationModel p4Model = new PLSQLProcedureOperationModel();
   p4Model.setName(PROC4_TEST);
   p4Model.setReturnType("xsd:int");
   p4Model.setCatalogPattern(PACKAGE_NAME);
   p4Model.setProcedurePattern(PROC4);
   builder.getOperations().add(p4Model);
   serviceSetup(ENDPOINT_ADDRESS, new P4testWebServiceSuite());
 }
コード例 #2
0
 @Test
 public void p2test() {
   PLSQLProcedureOperationModel pModel = new PLSQLProcedureOperationModel();
   pModel.setCatalogPattern(PACKAGE_NAME);
   pModel.setSchemaPattern(username.toUpperCase());
   pModel.setProcedurePattern(PROC2);
   OracleHelper.buildStoredProcedure(conn, username, ora11Platform, pModel);
   PLSQLOXDescriptorBuilder oxDescriptorBuilder = new PLSQLOXDescriptorBuilder("urn:test");
   PublisherWalker walker = new PublisherWalker(oxDescriptorBuilder);
   pModel.getJPubType().accept(walker);
   List<XMLDescriptor> descriptors = oxDescriptorBuilder.getDescriptors();
   assertTrue("wrong number of descriptors for " + PROC2, descriptors.size() == 1);
   tbl2Asserts(descriptors.get(0));
 }