Examples of SushiResourceContext


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

    }
    /* ===================================== TESTS FOR 'INSERT' ====================================== */

    public void testInsertResourcePropertiesCallback() throws XmlException, ResourceException, ResourceContextException
    {
        m_resourceContext = new SushiResourceContext();
        //build callback obj
        //setup callback on resource prop
        SushiResource resource = (SushiResource) m_resourceContext.getResource();
        ResourceProperty resourceProp = resource.getResourcePropertySet().get( SushiPropertyQNames.EBI );
        resourceProp.setCallback( m_callback );
View Full Code Here

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

    }

    public void testInsertResourceProperty()
            throws XmlException
    {
        m_resourceContext = new SushiResourceContext();
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
View Full Code Here

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

        assertEquals( 2, childElements.length );
    }

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

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

        assertPropHasOneElemWithGivenValue( SushiPropertyQNames.FUGU, INITIAL_PROP_VALUE_FUGU );
    }

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

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

    /* ===================================== 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 );
        assertNotNull( ohtoroPropElems );
        assertEquals( 0, ohtoroPropElems.length );
View Full Code Here

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

    }

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

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

    }

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

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

        }
    }

    public void testDeleteOpenContent() throws IOException, XmlException
    {
        m_resourceContext = new SushiResourceContext( true );
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.FUGU );
        set_provider.deleteResourceProperty( deleteType );
View Full Code Here

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

        assertNotNull( getResourcePropertyResponse );
    }

    public void testDeleteResourcePropertiesCallback() throws ResourceException, ResourceContextException, XmlException
    {
        m_resourceContext = new SushiResourceContext();
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
View Full Code Here

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

     * DOCUMENT_ME
     */
    public void testUpdateResourcePropertiesCallback() throws ResourceException, ResourceContextException, XmlException
    {
        String newValue = "99";
        m_resourceContext = new SushiResourceContext();
        SushiPlate plate = new SushiPlate();
        SushiCallback callback = new SushiCallback( plate );

        //setup callback on resource prop
        SushiResource resource = (SushiResource) m_resourceContext.getResource();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.