Package eu.planets_project.services.modify

Examples of eu.planets_project.services.modify.Modify.modify()


    private static final URI FORMAT = FormatRegistryFactory.getFormatRegistry().createExtensionUri("xml");

    @Test
    public void createService() throws MalformedURLException, ClassNotFoundException {
        Modify modify = ServiceUtils.createService(Modify.QNAME, Modify.class, new URL(ENDPOINT));
        modify.modify(DIGITAL_OBJECT, FORMAT, null);
    }

    @Test
    public void createServiceFromDescription() throws MalformedURLException {
        ServiceDescription.Builder builder = new ServiceDescription.Builder(NAME, INTERFACE_NAME);
View Full Code Here


    public void createServiceFromDescription() throws MalformedURLException {
        ServiceDescription.Builder builder = new ServiceDescription.Builder(NAME, INTERFACE_NAME);
        builder.endpoint(new URL(ENDPOINT));
        ServiceDescription shotgun = builder.build();
        Modify modify = ServiceUtils.createService(shotgun);
        modify.modify(DIGITAL_OBJECT, FORMAT, null);
    }

    @Test(expected = IllegalArgumentException.class)
    /* We need endpoint and type */
    public void invalidServiceCreation() {
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.