[OLINGO-603] Action import with no return type test

This commit is contained in:
Christian Amend 2015-05-06 16:23:48 +02:00
parent 63cacd7ce2
commit 23691a5a43
5 changed files with 10 additions and 5 deletions

View File

@ -48,6 +48,15 @@ import org.junit.Test;
public class ActionImportITCase extends AbstractBaseTestITCase {
@Test
public void noReturnTypeAction() throws Exception {
URI actionURI =
getClient().newURIBuilder(TecSvcConst.BASE_URI).appendActionCallSegment("AIRT").build();
ODataInvokeResponse<ClientProperty> response =
getClient().getInvokeRequestFactory().getActionInvokeRequest(actionURI, ClientProperty.class).execute();
assertEquals(204, response.getStatusCode());
}
@Test
public void primitveAction() throws Exception {
URI actionURI =

View File

@ -236,7 +236,6 @@ public class BindingITCase extends AbstractBaseTestITCase {
}
@Test
@SuppressWarnings("unused")
public void testMissingEntity() {
// Update an existing entity, use a URI to a not existing entity
// Perform the request to a single navigation property and a collection navigation property as well.

View File

@ -472,7 +472,6 @@ public class FilterSystemQueryITCase extends AbstractBaseTestITCase {
}
@Test
@SuppressWarnings("unused")
public void testSubstringDouble() {
try {
sendRequest(ES_ALL_PRIM, "substring(PropertyString, length('First')"

View File

@ -264,7 +264,6 @@ public class SystemQueryOptionITCase extends AbstractBaseTestITCase {
}
@Test
@SuppressWarnings("unused")
public void testNegativeSkip() {
ODataClient client = getClient();
URI uri = client.newURIBuilder(SERVICE_URI)
@ -283,7 +282,6 @@ public class SystemQueryOptionITCase extends AbstractBaseTestITCase {
}
@Test
@SuppressWarnings("unused")
public void testNegativeTop() {
ODataClient client = getClient();
URI uri = client.newURIBuilder(SERVICE_URI)

View File

@ -154,7 +154,7 @@ public interface CsdlEdmProvider {
/**
* This method should return a collection of all {@link CsdlSchema}
*
* @return List<{@link Schema}>
* @return List<{@link CsdlSchema}>
* @throws ODataException
*/
public List<CsdlSchema> getSchemas() throws ODataException;