Example usage for com.liferay.portal.kernel.webdav.methods Method DELETE

List of usage examples for com.liferay.portal.kernel.webdav.methods Method DELETE

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webdav.methods Method DELETE.

Prototype

String DELETE

To view the source code for com.liferay.portal.kernel.webdav.methods Method DELETE.

Click Source Link

Usage

From source file:com.liferay.document.library.webdav.test.BaseWebDAVTestCase.java

License:Open Source License

public Tuple serviceDelete(String name) {
    return service(Method.DELETE, name, null, null);
}

From source file:com.liferay.document.library.webdav.test.WebDAVEnvironmentConfigTestCallback.java

License:Open Source License

@Override
public void afterClass(Description description, Object object) {
    _baseWebDAVTestCase.service(Method.DELETE, "", null, null);
}

From source file:com.liferay.document.library.webdav.test.WebDAVEnvironmentConfigTestCallback.java

License:Open Source License

@Override
public Object beforeClass(Description description) {
    Tuple tuple = _baseWebDAVTestCase.service(Method.MKCOL, "", null, null);

    int statusCode = BaseWebDAVTestCase.getStatusCode(tuple);

    if (statusCode == HttpServletResponse.SC_METHOD_NOT_ALLOWED) {
        _baseWebDAVTestCase.service(Method.DELETE, "", null, null);

        tuple = _baseWebDAVTestCase.service(Method.MKCOL, "", null, null);

        statusCode = BaseWebDAVTestCase.getStatusCode(tuple);

        Assert.assertEquals(HttpServletResponse.SC_CREATED, statusCode);
    }//from  ww w.ja v  a 2s .  c o m

    return null;
}