diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v3/PrimitiveKeysTestITCase.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v3/PrimitiveKeysTestITCase.java index f0a491207..ed33ef7d4 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v3/PrimitiveKeysTestITCase.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v3/PrimitiveKeysTestITCase.java @@ -23,7 +23,6 @@ import static org.junit.Assert.assertEquals; import java.math.BigDecimal; import java.util.UUID; -import org.apache.olingo.client.api.v3.EdmEnabledODataClient; import org.apache.olingo.commons.api.format.ContentType; import org.apache.olingo.ext.proxy.EntityContainerFactory; import org.apache.olingo.fit.proxy.v3.primitivekeys.microsoft.test.odata.services.primitivekeysservice.TestContext; @@ -46,11 +45,9 @@ public class PrimitiveKeysTestITCase extends AbstractTestITCase { @Test public void readPrimitiveKeys() { - final EntityContainerFactory testContainerFactory = - EntityContainerFactory.getV3(testPrimitiveKeysServiceRootURL); - testContainerFactory.getClient().getConfiguration(). - setDefaultBatchAcceptFormat(ContentType.APPLICATION_OCTET_STREAM); - final TestContext testContainer = testContainerFactory.getEntityContainer(TestContext.class); + containerFactory = EntityContainerFactory.getV3(testPrimitiveKeysServiceRootURL); + containerFactory.getConfiguration().setDefaultBatchAcceptFormat(ContentType.APPLICATION_OCTET_STREAM); + final TestContext testContainer = containerFactory.getEntityContainer(TestContext.class); assertNotNull(testContainer); final EdmBoolean edmBooleanSet = testContainer.getEdmBooleanSet().get(Boolean.TRUE); diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v3/primitivekeys/microsoft/test/odata/services/primitivekeysservice/TestContext.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v3/primitivekeys/microsoft/test/odata/services/primitivekeysservice/TestContext.java index 5e9ef5985..3ed758803 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v3/primitivekeys/microsoft/test/odata/services/primitivekeysservice/TestContext.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v3/primitivekeys/microsoft/test/odata/services/primitivekeysservice/TestContext.java @@ -24,7 +24,6 @@ import org.apache.olingo.ext.proxy.api.annotations.Namespace; import org.apache.olingo.ext.proxy.api.annotations.EntityContainer; import org.apache.olingo.ext.proxy.api.annotations.Operation; import org.apache.olingo.ext.proxy.api.annotations.Parameter; -import org.apache.olingo.ext.proxy.api.annotations.Property; import org.apache.olingo.ext.proxy.api.Container; import org.apache.olingo.ext.proxy.api.OperationType; import org.apache.olingo.fit.proxy.v3.primitivekeys.microsoft.test.odata.services.primitivekeysservice.*; @@ -91,5 +90,4 @@ public interface TestContext extends Container { public interface Operations { } - - } +} diff --git a/pom.xml b/pom.xml index 1eeb19605..0cfa9ba22 100644 --- a/pom.xml +++ b/pom.xml @@ -415,7 +415,7 @@ true warning - **/fit/proxy/v4/staticservice/**/*.java, **/fit/proxy/v3/staticservice/**/*.java, **/fit/proxy/v3/actionoverloading/**/*.java + **/fit/proxy/v4/staticservice/**/*.java, **/fit/proxy/v3/staticservice/**/*.java, **/fit/proxy/v3/actionoverloading/**/*.java, **/fit/proxy/v3/primitivekeys/**/*.java