[OLINGO-260] provided primitive keys integration test for proxy and pojogen
This commit is contained in:
parent
9eae6cb9f2
commit
620f4e99ba
|
@ -23,7 +23,6 @@ import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.apache.olingo.client.api.v3.EdmEnabledODataClient;
|
|
||||||
import org.apache.olingo.commons.api.format.ContentType;
|
import org.apache.olingo.commons.api.format.ContentType;
|
||||||
import org.apache.olingo.ext.proxy.EntityContainerFactory;
|
import org.apache.olingo.ext.proxy.EntityContainerFactory;
|
||||||
import org.apache.olingo.fit.proxy.v3.primitivekeys.microsoft.test.odata.services.primitivekeysservice.TestContext;
|
import org.apache.olingo.fit.proxy.v3.primitivekeys.microsoft.test.odata.services.primitivekeysservice.TestContext;
|
||||||
|
@ -46,11 +45,9 @@ public class PrimitiveKeysTestITCase extends AbstractTestITCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void readPrimitiveKeys() {
|
public void readPrimitiveKeys() {
|
||||||
final EntityContainerFactory<EdmEnabledODataClient> testContainerFactory =
|
containerFactory = EntityContainerFactory.getV3(testPrimitiveKeysServiceRootURL);
|
||||||
EntityContainerFactory.getV3(testPrimitiveKeysServiceRootURL);
|
containerFactory.getConfiguration().setDefaultBatchAcceptFormat(ContentType.APPLICATION_OCTET_STREAM);
|
||||||
testContainerFactory.getClient().getConfiguration().
|
final TestContext testContainer = containerFactory.getEntityContainer(TestContext.class);
|
||||||
setDefaultBatchAcceptFormat(ContentType.APPLICATION_OCTET_STREAM);
|
|
||||||
final TestContext testContainer = testContainerFactory.getEntityContainer(TestContext.class);
|
|
||||||
assertNotNull(testContainer);
|
assertNotNull(testContainer);
|
||||||
|
|
||||||
final EdmBoolean edmBooleanSet = testContainer.getEdmBooleanSet().get(Boolean.TRUE);
|
final EdmBoolean edmBooleanSet = testContainer.getEdmBooleanSet().get(Boolean.TRUE);
|
||||||
|
|
|
@ -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.EntityContainer;
|
||||||
import org.apache.olingo.ext.proxy.api.annotations.Operation;
|
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.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.Container;
|
||||||
import org.apache.olingo.ext.proxy.api.OperationType;
|
import org.apache.olingo.ext.proxy.api.OperationType;
|
||||||
import org.apache.olingo.fit.proxy.v3.primitivekeys.microsoft.test.odata.services.primitivekeysservice.*;
|
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 {
|
public interface Operations {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -415,7 +415,7 @@
|
||||||
<failOnViolation>true</failOnViolation>
|
<failOnViolation>true</failOnViolation>
|
||||||
<violationSeverity>warning</violationSeverity>
|
<violationSeverity>warning</violationSeverity>
|
||||||
<!-- fit autogenerated (via pojogen plugin) resources -->
|
<!-- fit autogenerated (via pojogen plugin) resources -->
|
||||||
<excludes>**/fit/proxy/v4/staticservice/**/*.java, **/fit/proxy/v3/staticservice/**/*.java, **/fit/proxy/v3/actionoverloading/**/*.java</excludes>
|
<excludes>**/fit/proxy/v4/staticservice/**/*.java, **/fit/proxy/v3/staticservice/**/*.java, **/fit/proxy/v3/actionoverloading/**/*.java, **/fit/proxy/v3/primitivekeys/**/*.java</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
Loading…
Reference in New Issue