Package org.apache.ws.resource.properties

Examples of org.apache.ws.resource.properties.SushiResourceContext


    * @throws Exception DOCUMENT_ME
    */
   public void testDeleteAnyPropFromOpenContentPropsDoc(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext( true );
      deleteResourceProperty( SushiPropertyQNames.FUGU );
   }
View Full Code Here


    * @throws Exception DOCUMENT_ME
    */
   public void testDeleteExistingNonOptionalProp(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      try
      {
         deleteResourceProperty( SushiPropertyQNames.EBI );
         fail(  );
      }
View Full Code Here

   /* ===================================== TESTS FOR 'DELETE' ====================================== */
   public void testDeleteExistingOptionalProp(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      deleteResourceProperty( SushiPropertyQNames.OHTORO );
      GetResourcePropertyResponseDocument.GetResourcePropertyResponse response =
         getResourceProperty( SushiPropertyQNames.OHTORO );
      XmlObject[]                                                     ohtoroPropElems =
         XmlBeanUtils.getChildElements( response, SushiPropertyQNames.OHTORO );
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testDeleteNonExistingOptionalProp(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      deleteResourceProperty( SushiPropertyQNames.UNI );
   }
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testDeleteResourcePropertiesCallback(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      XmlObject xBean =
         XmlObject.Factory.parse( "<foo:Ika xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                                  + "my favorite!" + "</foo:Ika>" );
      insertResourceProperty( new XmlObject[]
                              {
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testDeleteResourcePropertiesFailedCallback(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      XmlObject xBean =
         XmlObject.Factory.parse( "<foo:Ika xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                                  + "my favorite!" + "</foo:Ika>" );
      insertResourceProperty( new XmlObject[]
                              {
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testInsertAnyIntoNonOpenContent(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext( false );
      try
      {
         insertXsdAnyPropElem(  );
         fail(  );
      }
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testInsertAnyIntoOpenContent(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      insertXsdAnyPropElem(  );
      assertPropHasOneElemWithGivenValue( SushiPropertyQNames.FUGU, INITIAL_PROP_VALUE_FUGU );
   }
View Full Code Here

   /* ===================================== TESTS FOR 'INSERT' ====================================== */
   public void testInsertResourcePropertiesCallback(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      SushiResource    resource     = (SushiResource) m_resourceContext.getResource(  );
      ResourceProperty resourceProp = resource.getResourcePropertySet(  ).get( SushiPropertyQNames.EBI );
      resourceProp.setCallback( m_callback );

      XmlObject xBean =
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testInsertResourcePropertiesFailedCallback(  )
   throws Exception
   {
      m_resourceContext = new SushiResourceContext(  );
      SushiResource    resource     = (SushiResource) m_resourceContext.getResource(  );
      ResourceProperty resourceProp = resource.getResourcePropertySet(  ).get( SushiPropertyQNames.EBI );
      resourceProp.setCallback( new ThrowsCallback(  ) );

      XmlObject xBean =
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.properties.SushiResourceContext

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.