[OLINGO-356] Renamed namespace for technical service
This commit is contained in:
parent
3ece19c964
commit
dff439fd7b
|
@ -96,8 +96,8 @@ public class BasicITCase extends AbstractBaseTestITCase {
|
||||||
Edm edm = response.getBody();
|
Edm edm = response.getBody();
|
||||||
|
|
||||||
assertNotNull(edm);
|
assertNotNull(edm);
|
||||||
assertEquals("com.sap.odata.test1", edm.getSchema("com.sap.odata.test1").getNamespace());
|
assertEquals("olingo.odata.test1", edm.getSchema("olingo.odata.test1").getNamespace());
|
||||||
assertEquals("Namespace1_Alias", edm.getSchema("com.sap.odata.test1").getAlias());
|
assertEquals("Namespace1_Alias", edm.getSchema("olingo.odata.test1").getAlias());
|
||||||
assertNotNull(edm.getTerm(new FullQualifiedName("Core.Description")));
|
assertNotNull(edm.getTerm(new FullQualifiedName("Core.Description")));
|
||||||
assertEquals(2, edm.getSchemas().size());
|
assertEquals(2, edm.getSchemas().size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,6 @@ import org.apache.olingo.commons.api.format.ContentType;
|
||||||
import org.apache.olingo.commons.api.format.ODataFormat;
|
import org.apache.olingo.commons.api.format.ODataFormat;
|
||||||
import org.apache.olingo.commons.core.domain.v4.ODataEntityImpl;
|
import org.apache.olingo.commons.core.domain.v4.ODataEntityImpl;
|
||||||
import org.apache.olingo.fit.AbstractBaseTestITCase;
|
import org.apache.olingo.fit.AbstractBaseTestITCase;
|
||||||
import org.hamcrest.CoreMatchers;
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -31,34 +31,34 @@ public class ActionProvider {
|
||||||
|
|
||||||
// Bound Actions
|
// Bound Actions
|
||||||
public static final FullQualifiedName nameBAESAllPrimRTETAllPrim =
|
public static final FullQualifiedName nameBAESAllPrimRTETAllPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BAESAllPrimRTETAllPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BAESAllPrimRTETAllPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBAESTwoKeyNavRTESTwoKeyNav =
|
public static final FullQualifiedName nameBAESTwoKeyNavRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BAESTwoKeyNavRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BAESTwoKeyNavRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBAETBaseTwoKeyNavRTETBaseTwoKeyNav =
|
public static final FullQualifiedName nameBAETBaseTwoKeyNavRTETBaseTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BAETBaseTwoKeyNavRTETBaseTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BAETBaseTwoKeyNavRTETBaseTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBAETTwoBaseTwoKeyNavRTETBaseTwoKeyNav =
|
public static final FullQualifiedName nameBAETTwoBaseTwoKeyNavRTETBaseTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BAETTwoBaseTwoKeyNavRTETBaseTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BAETTwoBaseTwoKeyNavRTETBaseTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBAETTwoKeyNavRTETTwoKeyNav =
|
public static final FullQualifiedName nameBAETTwoKeyNavRTETTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BAETTwoKeyNavRTETTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BAETTwoKeyNavRTETTwoKeyNav");
|
||||||
|
|
||||||
// Unbound Actions
|
// Unbound Actions
|
||||||
public static final FullQualifiedName nameUARTCompCollParam = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUARTCompCollParam = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UARTCompCollParam");
|
"UARTCompCollParam");
|
||||||
public static final FullQualifiedName nameUARTCompParam = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUARTCompParam = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UARTCompParam");
|
"UARTCompParam");
|
||||||
public static final FullQualifiedName nameUARTESParam =
|
public static final FullQualifiedName nameUARTESParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UARTESParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UARTESParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUARTETParam =
|
public static final FullQualifiedName nameUARTETParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UARTETParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UARTETParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUARTPrimParam = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUARTPrimParam = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UARTPrimParam");
|
"UARTPrimParam");
|
||||||
public static final FullQualifiedName nameUARTPrimCollParam = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUARTPrimCollParam = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UARTPrimCollParam");
|
"UARTPrimCollParam");
|
||||||
|
|
||||||
public List<Action> getActions(final FullQualifiedName actionName) throws ODataException {
|
public List<Action> getActions(final FullQualifiedName actionName) throws ODataException {
|
||||||
|
|
|
@ -28,28 +28,28 @@ import java.util.Arrays;
|
||||||
|
|
||||||
public class ComplexTypeProvider {
|
public class ComplexTypeProvider {
|
||||||
|
|
||||||
public static final FullQualifiedName nameCTAllPrim = new FullQualifiedName(SchemaProvider.nameSpace, "CTAllPrim");
|
public static final FullQualifiedName nameCTAllPrim = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTAllPrim");
|
||||||
public static final FullQualifiedName nameCTBase = new FullQualifiedName(SchemaProvider.nameSpace, "CTBase");
|
public static final FullQualifiedName nameCTBase = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTBase");
|
||||||
public static final FullQualifiedName nameCTBasePrimCompNav = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameCTBasePrimCompNav = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"CTBasePrimCompNav");
|
"CTBasePrimCompNav");
|
||||||
public static final FullQualifiedName nameCTCollAllPrim = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameCTCollAllPrim = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"CTCollAllPrim");
|
"CTCollAllPrim");
|
||||||
public static final FullQualifiedName nameCTCompCollComp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameCTCompCollComp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"CTCompCollComp");
|
"CTCompCollComp");
|
||||||
public static final FullQualifiedName nameCTCompComp = new FullQualifiedName(SchemaProvider.nameSpace, "CTCompComp");
|
public static final FullQualifiedName nameCTCompComp = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTCompComp");
|
||||||
public static final FullQualifiedName nameCTCompNav = new FullQualifiedName(SchemaProvider.nameSpace, "CTCompNav");
|
public static final FullQualifiedName nameCTCompNav = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTCompNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameCTMixPrimCollComp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameCTMixPrimCollComp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"CTMixPrimCollComp");
|
"CTMixPrimCollComp");
|
||||||
public static final FullQualifiedName nameCTNavFiveProp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameCTNavFiveProp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"CTNavFiveProp");
|
"CTNavFiveProp");
|
||||||
public static final FullQualifiedName nameCTPrim = new FullQualifiedName(SchemaProvider.nameSpace, "CTPrim");
|
public static final FullQualifiedName nameCTPrim = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTPrim");
|
||||||
public static final FullQualifiedName nameCTPrimComp = new FullQualifiedName(SchemaProvider.nameSpace, "CTPrimComp");
|
public static final FullQualifiedName nameCTPrimComp = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTPrimComp");
|
||||||
public static final FullQualifiedName nameCTPrimEnum = new FullQualifiedName(SchemaProvider.nameSpace, "CTPrimEnum");
|
public static final FullQualifiedName nameCTPrimEnum = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTPrimEnum");
|
||||||
public static final FullQualifiedName nameCTTwoBase = new FullQualifiedName(SchemaProvider.nameSpace, "CTTwoBase");
|
public static final FullQualifiedName nameCTTwoBase = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTTwoBase");
|
||||||
public static final FullQualifiedName nameCTTwoBasePrimCompNav =
|
public static final FullQualifiedName nameCTTwoBasePrimCompNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "CTTwoBasePrimCompNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "CTTwoBasePrimCompNav");
|
||||||
public static final FullQualifiedName nameCTTwoPrim = new FullQualifiedName(SchemaProvider.nameSpace, "CTTwoPrim");
|
public static final FullQualifiedName nameCTTwoPrim = new FullQualifiedName(SchemaProvider.NAMESPACE, "CTTwoPrim");
|
||||||
|
|
||||||
public ComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException {
|
public ComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException {
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import java.util.List;
|
||||||
|
|
||||||
public class ContainerProvider {
|
public class ContainerProvider {
|
||||||
|
|
||||||
public static final FullQualifiedName nameContainer = new FullQualifiedName(SchemaProvider.nameSpace, "Container");
|
public static final FullQualifiedName nameContainer = new FullQualifiedName(SchemaProvider.NAMESPACE, "Container");
|
||||||
|
|
||||||
EntityContainerInfo entityContainerInfoTest1 =
|
EntityContainerInfo entityContainerInfoTest1 =
|
||||||
new EntityContainerInfo().setContainerName(nameContainer);
|
new EntityContainerInfo().setContainerName(nameContainer);
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.util.List;
|
||||||
|
|
||||||
public class EdmTechProvider extends EdmProvider {
|
public class EdmTechProvider extends EdmProvider {
|
||||||
|
|
||||||
public static final String nameSpace = "com.sap.odata.test1";
|
public static final String nameSpace = "olingo.odata.test1";
|
||||||
|
|
||||||
private final SchemaProvider schemaProvider;
|
private final SchemaProvider schemaProvider;
|
||||||
private final EntityTypeProvider entityTypeProvider;
|
private final EntityTypeProvider entityTypeProvider;
|
||||||
|
|
|
@ -30,48 +30,48 @@ import java.util.Arrays;
|
||||||
|
|
||||||
public class EntityTypeProvider {
|
public class EntityTypeProvider {
|
||||||
|
|
||||||
public static final FullQualifiedName nameETAllKey = new FullQualifiedName(SchemaProvider.nameSpace, "ETAllKey");
|
public static final FullQualifiedName nameETAllKey = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETAllKey");
|
||||||
public static final FullQualifiedName nameETAllNullable = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETAllNullable = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETAllNullable");
|
"ETAllNullable");
|
||||||
public static final FullQualifiedName nameETAllPrim = new FullQualifiedName(SchemaProvider.nameSpace, "ETAllPrim");
|
public static final FullQualifiedName nameETAllPrim = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETAllPrim");
|
||||||
public static final FullQualifiedName nameETBase = new FullQualifiedName(SchemaProvider.nameSpace, "ETBase");
|
public static final FullQualifiedName nameETBase = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETBase");
|
||||||
public static final FullQualifiedName nameETBaseTwoKeyNav = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETBaseTwoKeyNav = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETBaseTwoKeyNav");
|
"ETBaseTwoKeyNav");
|
||||||
public static final FullQualifiedName nameETBaseTwoKeyTwoPrim =
|
public static final FullQualifiedName nameETBaseTwoKeyTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "ETBaseTwoKeyTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "ETBaseTwoKeyTwoPrim");
|
||||||
public static final FullQualifiedName nameETCollAllPrim = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETCollAllPrim = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETCollAllPrim");
|
"ETCollAllPrim");
|
||||||
public static final FullQualifiedName nameETCompAllPrim = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETCompAllPrim = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETCompAllPrim");
|
"ETCompAllPrim");
|
||||||
public static final FullQualifiedName nameETCompCollAllPrim = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETCompCollAllPrim = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETCompCollAllPrim");
|
"ETCompCollAllPrim");
|
||||||
public static final FullQualifiedName nameETCompCollComp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETCompCollComp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETCompCollComp");
|
"ETCompCollComp");
|
||||||
public static final FullQualifiedName nameETCompComp = new FullQualifiedName(SchemaProvider.nameSpace, "ETCompComp");
|
public static final FullQualifiedName nameETCompComp = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETCompComp");
|
||||||
public static final FullQualifiedName nameETCompMixPrimCollComp =
|
public static final FullQualifiedName nameETCompMixPrimCollComp =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "ETCompMixPrimCollComp");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "ETCompMixPrimCollComp");
|
||||||
public static final FullQualifiedName nameETFourKeyAlias = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETFourKeyAlias = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETFourKeyAlias");
|
"ETFourKeyAlias");
|
||||||
public static final FullQualifiedName nameETKeyNav = new FullQualifiedName(SchemaProvider.nameSpace, "ETKeyNav");
|
public static final FullQualifiedName nameETKeyNav = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETKeyNav");
|
||||||
public static final FullQualifiedName nameETKeyPrimNav = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETKeyPrimNav = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETKeyPrimNav");
|
"ETKeyPrimNav");
|
||||||
public static final FullQualifiedName nameETKeyTwoKeyComp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETKeyTwoKeyComp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETKeyTwoKeyComp");
|
"ETKeyTwoKeyComp");
|
||||||
public static final FullQualifiedName nameETMedia = new FullQualifiedName(SchemaProvider.nameSpace, "ETMedia");
|
public static final FullQualifiedName nameETMedia = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETMedia");
|
||||||
public static final FullQualifiedName nameETMixPrimCollComp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETMixPrimCollComp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETMixPrimCollComp");
|
"ETMixPrimCollComp");
|
||||||
public static final FullQualifiedName nameETServerSidePaging =
|
public static final FullQualifiedName nameETServerSidePaging =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "ETServerSidePaging");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "ETServerSidePaging");
|
||||||
public static final FullQualifiedName nameETTwoBase = new FullQualifiedName(SchemaProvider.nameSpace, "ETTwoBase");
|
public static final FullQualifiedName nameETTwoBase = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETTwoBase");
|
||||||
public static final FullQualifiedName nameETTwoBaseTwoKeyNav =
|
public static final FullQualifiedName nameETTwoBaseTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "ETTwoBaseTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "ETTwoBaseTwoKeyNav");
|
||||||
public static final FullQualifiedName nameETTwoBaseTwoKeyTwoPrim =
|
public static final FullQualifiedName nameETTwoBaseTwoKeyTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "ETTwoBaseTwoKeyTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "ETTwoBaseTwoKeyTwoPrim");
|
||||||
public static final FullQualifiedName nameETTwoKeyNav =
|
public static final FullQualifiedName nameETTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "ETTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "ETTwoKeyNav");
|
||||||
public static final FullQualifiedName nameETTwoKeyTwoPrim = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameETTwoKeyTwoPrim = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"ETTwoKeyTwoPrim");
|
"ETTwoKeyTwoPrim");
|
||||||
public static final FullQualifiedName nameETTwoPrim = new FullQualifiedName(SchemaProvider.nameSpace, "ETTwoPrim");
|
public static final FullQualifiedName nameETTwoPrim = new FullQualifiedName(SchemaProvider.NAMESPACE, "ETTwoPrim");
|
||||||
|
|
||||||
public EntityType getEntityType(final FullQualifiedName entityTypeName) throws ODataException {
|
public EntityType getEntityType(final FullQualifiedName entityTypeName) throws ODataException {
|
||||||
if (entityTypeName.equals(nameETAllPrim)) {
|
if (entityTypeName.equals(nameETAllPrim)) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ import java.util.Arrays;
|
||||||
|
|
||||||
public class EnumTypeProvider {
|
public class EnumTypeProvider {
|
||||||
|
|
||||||
public static final FullQualifiedName nameENString = new FullQualifiedName(SchemaProvider.nameSpace, "ENString");
|
public static final FullQualifiedName nameENString = new FullQualifiedName(SchemaProvider.NAMESPACE, "ENString");
|
||||||
|
|
||||||
public EnumType getEnumType(final FullQualifiedName enumTypeName) throws ODataException {
|
public EnumType getEnumType(final FullQualifiedName enumTypeName) throws ODataException {
|
||||||
if (enumTypeName.equals(nameENString)) {
|
if (enumTypeName.equals(nameENString)) {
|
||||||
|
|
|
@ -32,137 +32,137 @@ public class FunctionProvider {
|
||||||
|
|
||||||
// Bound Functions
|
// Bound Functions
|
||||||
public static final FullQualifiedName nameBFCCollCTPrimCompRTESAllPrim =
|
public static final FullQualifiedName nameBFCCollCTPrimCompRTESAllPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCCollCTPrimCompRTESAllPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCCollCTPrimCompRTESAllPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCCollStringRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCCollStringRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCCollStringRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCCollStringRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCCTPrimCompRTESBaseTwoKeyNav =
|
public static final FullQualifiedName nameBFCCTPrimCompRTESBaseTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCCTPrimCompRTESBaseTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCCTPrimCompRTESBaseTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCCTPrimCompRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCCTPrimCompRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCCTPrimCompRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCCTPrimCompRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCCTPrimCompRTESTwoKeyNavParam =
|
public static final FullQualifiedName nameBFCCTPrimCompRTESTwoKeyNavParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCCTPrimCompRTESTwoKeyNavParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCCTPrimCompRTESTwoKeyNavParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCCTPrimCompRTETTwoKeyNavParam =
|
public static final FullQualifiedName nameBFCCTPrimCompRTETTwoKeyNavParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCCTPrimCompRTETTwoKeyNavParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCCTPrimCompRTETTwoKeyNavParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESAllPrimRTCTAllPrim =
|
public static final FullQualifiedName nameBFCESAllPrimRTCTAllPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESAllPrimRTCTAllPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESAllPrimRTCTAllPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESBaseTwoKeyNavRTESBaseTwoKey =
|
public static final FullQualifiedName nameBFCESBaseTwoKeyNavRTESBaseTwoKey =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESBaseTwoKeyNavRTESBaseTwoKey");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESBaseTwoKeyNavRTESBaseTwoKey");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESKeyNavRTETKeyNav =
|
public static final FullQualifiedName nameBFCESKeyNavRTETKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESKeyNavRTETKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESKeyNavRTETKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESKeyNavRTETKeyNavParam =
|
public static final FullQualifiedName nameBFCESKeyNavRTETKeyNavParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESKeyNavRTETKeyNavParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESKeyNavRTETKeyNavParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTCollCTTwoPrim =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTCollCTTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTCollCTTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTCollCTTwoPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTCollString =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTCollString =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTCollString");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTCollString");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTCTTwoPrim =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTCTTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTCTTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTCTTwoPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTString =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTString =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTString");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTString");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTStringParam =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTStringParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTStringParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTStringParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTTwoKeyNav =
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCESTwoKeyNavRTTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETBaseTwoKeyNavRTESBaseTwoKey =
|
public static final FullQualifiedName nameBFCETBaseTwoKeyNavRTESBaseTwoKey =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETBaseTwoKeyNavRTESBaseTwoKey");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETBaseTwoKeyNavRTESBaseTwoKey");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETBaseTwoKeyNavRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCETBaseTwoKeyNavRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETBaseTwoKeyNavRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETBaseTwoKeyNavRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETBaseTwoKeyNavRTETTwoKeyNav =
|
public static final FullQualifiedName nameBFCETBaseTwoKeyNavRTETTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETBaseTwoKeyNavRTETTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETBaseTwoKeyNavRTETTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETKeyNavRTETKeyNav =
|
public static final FullQualifiedName nameBFCETKeyNavRTETKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETKeyNavRTETKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETKeyNavRTETKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETTwoKeyNavRTCTTwoPrim =
|
public static final FullQualifiedName nameBFCETTwoKeyNavRTCTTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETTwoKeyNavRTCTTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETTwoKeyNavRTCTTwoPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETTwoKeyNavRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCETTwoKeyNavRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETTwoKeyNavRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETTwoKeyNavRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCETTwoKeyNavRTETTwoKeyNav =
|
public static final FullQualifiedName nameBFCETTwoKeyNavRTETTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCETTwoKeyNavRTETTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCETTwoKeyNavRTETTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCSINavRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCSINavRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCSINavRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCSINavRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCStringRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFCStringRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFCStringRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFCStringRTESTwoKeyNav");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFESTwoKeyNavRTESTwoKeyNav =
|
public static final FullQualifiedName nameBFESTwoKeyNavRTESTwoKeyNav =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "BFESTwoKeyNavRTESTwoKeyNav");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "BFESTwoKeyNavRTESTwoKeyNav");
|
||||||
|
|
||||||
// Unbound Functions
|
// Unbound Functions
|
||||||
public static final FullQualifiedName nameUFCRTCollCTTwoPrim =
|
public static final FullQualifiedName nameUFCRTCollCTTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTCollCTTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTCollCTTwoPrim");
|
||||||
public static final FullQualifiedName nameUFCRTCollCTTwoPrimParam =
|
public static final FullQualifiedName nameUFCRTCollCTTwoPrimParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTCollCTTwoPrimParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTCollCTTwoPrimParam");
|
||||||
public static final FullQualifiedName nameUFCRTCollString = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUFCRTCollString = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UFCRTCollString");
|
"UFCRTCollString");
|
||||||
public static final FullQualifiedName nameUFCRTCollStringTwoParam =
|
public static final FullQualifiedName nameUFCRTCollStringTwoParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTCollStringTwoParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTCollStringTwoParam");
|
||||||
public static final FullQualifiedName nameUFCRTCTAllPrimTwoParam =
|
public static final FullQualifiedName nameUFCRTCTAllPrimTwoParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTCTAllPrimTwoParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTCTAllPrimTwoParam");
|
||||||
public static final FullQualifiedName nameUFCRTCTTwoPrim = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUFCRTCTTwoPrim = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UFCRTCTTwoPrim");
|
"UFCRTCTTwoPrim");
|
||||||
public static final FullQualifiedName nameUFCRTCTTwoPrimParam =
|
public static final FullQualifiedName nameUFCRTCTTwoPrimParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTCTTwoPrimParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTCTTwoPrimParam");
|
||||||
public static final FullQualifiedName nameUFCRTESMixPrimCollCompTwoParam =
|
public static final FullQualifiedName nameUFCRTESMixPrimCollCompTwoParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTESMixPrimCollCompTwoParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTESMixPrimCollCompTwoParam");
|
||||||
public static final FullQualifiedName nameUFCRTESTwoKeyNavParam =
|
public static final FullQualifiedName nameUFCRTESTwoKeyNavParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTESTwoKeyNavParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTESTwoKeyNavParam");
|
||||||
public static final FullQualifiedName nameUFCRTETAllPrimTwoParam =
|
public static final FullQualifiedName nameUFCRTETAllPrimTwoParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTETAllPrimTwoParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTETAllPrimTwoParam");
|
||||||
public static final FullQualifiedName nameUFCRTETKeyNav = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUFCRTETKeyNav = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UFCRTETKeyNav");
|
"UFCRTETKeyNav");
|
||||||
public static final FullQualifiedName nameUFCRTETMedia = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUFCRTETMedia = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UFCRTETMedia");
|
"UFCRTETMedia");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUFCRTETTwoKeyNavParam =
|
public static final FullQualifiedName nameUFCRTETTwoKeyNavParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTETTwoKeyNavParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTETTwoKeyNavParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUFCRTETTwoKeyNavParamCTTwoPrim =
|
public static final FullQualifiedName nameUFCRTETTwoKeyNavParamCTTwoPrim =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTETTwoKeyNavParamCTTwoPrim");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTETTwoKeyNavParamCTTwoPrim");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUFCRTString =
|
public static final FullQualifiedName nameUFCRTString =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTString");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTString");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUFCRTStringTwoParam =
|
public static final FullQualifiedName nameUFCRTStringTwoParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFCRTStringTwoParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFCRTStringTwoParam");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUFNRTESMixPrimCollCompTwoParam =
|
public static final FullQualifiedName nameUFNRTESMixPrimCollCompTwoParam =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFNRTESMixPrimCollCompTwoParam");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFNRTESMixPrimCollCompTwoParam");
|
||||||
public static final FullQualifiedName nameUFNRTInt16 =
|
public static final FullQualifiedName nameUFNRTInt16 =
|
||||||
new FullQualifiedName(SchemaProvider.nameSpace, "UFNRTInt16");
|
new FullQualifiedName(SchemaProvider.NAMESPACE, "UFNRTInt16");
|
||||||
|
|
||||||
public static final FullQualifiedName nameUFNRTCollCTNavFiveProp = new FullQualifiedName(SchemaProvider.nameSpace,
|
public static final FullQualifiedName nameUFNRTCollCTNavFiveProp = new FullQualifiedName(SchemaProvider.NAMESPACE,
|
||||||
"UFNRTCollCTNavFiveProp");
|
"UFNRTCollCTNavFiveProp");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTCTNavFiveProp = new FullQualifiedName(
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTCTNavFiveProp = new FullQualifiedName(
|
||||||
SchemaProvider.nameSpace, "BFCESTwoKeyNavRTCTNavFiveProp");
|
SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTCTNavFiveProp");
|
||||||
|
|
||||||
public static final FullQualifiedName nameBFCESTwoKeyNavRTCollCTNavFiveProp = new FullQualifiedName(
|
public static final FullQualifiedName nameBFCESTwoKeyNavRTCollCTNavFiveProp = new FullQualifiedName(
|
||||||
SchemaProvider.nameSpace, "BFCESTwoKeyNavRTCollCTNavFiveProp");
|
SchemaProvider.NAMESPACE, "BFCESTwoKeyNavRTCollCTNavFiveProp");
|
||||||
|
|
||||||
public List<Function> getFunctions(final FullQualifiedName functionName) throws ODataException {
|
public List<Function> getFunctions(final FullQualifiedName functionName) throws ODataException {
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class SchemaProvider {
|
||||||
|
|
||||||
private EdmTechProvider prov;
|
private EdmTechProvider prov;
|
||||||
|
|
||||||
public static final String nameSpace = "com.sap.odata.test1";
|
public static final String NAMESPACE = "olingo.odata.test1";
|
||||||
|
|
||||||
public SchemaProvider(final EdmTechProvider prov) {
|
public SchemaProvider(final EdmTechProvider prov) {
|
||||||
this.prov = prov;
|
this.prov = prov;
|
||||||
|
@ -42,7 +42,7 @@ public class SchemaProvider {
|
||||||
public List<Schema> getSchemas() throws ODataException {
|
public List<Schema> getSchemas() throws ODataException {
|
||||||
List<Schema> schemas = new ArrayList<Schema>();
|
List<Schema> schemas = new ArrayList<Schema>();
|
||||||
Schema schema = new Schema();
|
Schema schema = new Schema();
|
||||||
schema.setNamespace("com.sap.odata.test1");
|
schema.setNamespace(NAMESPACE);
|
||||||
schema.setAlias("Namespace1_Alias");
|
schema.setAlias("Namespace1_Alias");
|
||||||
schemas.add(schema);
|
schemas.add(schema);
|
||||||
// EnumTypes
|
// EnumTypes
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class DataProviderTest {
|
||||||
|
|
||||||
private final Edm edm = OData.newInstance().createEdm(new EdmTechProvider());
|
private final Edm edm = OData.newInstance().createEdm(new EdmTechProvider());
|
||||||
private final EdmEntityContainer entityContainer = edm.getEntityContainer(
|
private final EdmEntityContainer entityContainer = edm.getEntityContainer(
|
||||||
new FullQualifiedName("com.sap.odata.test1", "Container"));
|
new FullQualifiedName("olingo.odata.test1", "Container"));
|
||||||
|
|
||||||
private final EdmEntitySet esAllPrim;
|
private final EdmEntitySet esAllPrim;
|
||||||
private final EdmEntitySet esCompAllPrim;
|
private final EdmEntitySet esCompAllPrim;
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class ODataJsonSerializerTest {
|
||||||
|
|
||||||
private final Edm edm = OData.newInstance().createEdm(new EdmTechProvider());
|
private final Edm edm = OData.newInstance().createEdm(new EdmTechProvider());
|
||||||
private final EdmEntityContainer entityContainer = edm.getEntityContainer(
|
private final EdmEntityContainer entityContainer = edm.getEntityContainer(
|
||||||
new FullQualifiedName("com.sap.odata.test1", "Container"));
|
new FullQualifiedName("olingo.odata.test1", "Container"));
|
||||||
private final DataProvider data = new DataProvider();
|
private final DataProvider data = new DataProvider();
|
||||||
private ODataSerializer serializer = new ODataJsonSerializer(ODataFormat.JSON);
|
private ODataSerializer serializer = new ODataJsonSerializer(ODataFormat.JSON);
|
||||||
|
|
||||||
|
|
|
@ -279,11 +279,11 @@ public class UriResourceImplTest {
|
||||||
impl.setCollectionTypeFilter(entityTypeBaseColl);
|
impl.setCollectionTypeFilter(entityTypeBaseColl);
|
||||||
assertEquals(entityTypeBaseColl, impl.getTypeFilterOnCollection());
|
assertEquals(entityTypeBaseColl, impl.getTypeFilterOnCollection());
|
||||||
assertEquals("mock", impl.toString(false));
|
assertEquals("mock", impl.toString(false));
|
||||||
assertEquals("mock/com.sap.odata.test1.ETBaseTwoKeyNav", impl.toString(true));
|
assertEquals("mock/olingo.odata.test1.ETBaseTwoKeyNav", impl.toString(true));
|
||||||
impl.setEntryTypeFilter(entityTypeBaseEntry);
|
impl.setEntryTypeFilter(entityTypeBaseEntry);
|
||||||
assertEquals(entityTypeBaseEntry, impl.getTypeFilterOnEntry());
|
assertEquals(entityTypeBaseEntry, impl.getTypeFilterOnEntry());
|
||||||
assertEquals("mock", impl.toString(false));
|
assertEquals("mock", impl.toString(false));
|
||||||
assertEquals("mock/com.sap.odata.test1.ETBaseTwoKeyNav/()com.sap.odata.test1.ETTwoBaseTwoKeyNav",
|
assertEquals("mock/olingo.odata.test1.ETBaseTwoKeyNav/()olingo.odata.test1.ETTwoBaseTwoKeyNav",
|
||||||
impl.toString(true));
|
impl.toString(true));
|
||||||
|
|
||||||
// set entry
|
// set entry
|
||||||
|
@ -292,7 +292,7 @@ public class UriResourceImplTest {
|
||||||
impl.setEntryTypeFilter(entityTypeBaseEntry);
|
impl.setEntryTypeFilter(entityTypeBaseEntry);
|
||||||
assertEquals(entityTypeBaseEntry, impl.getTypeFilterOnEntry());
|
assertEquals(entityTypeBaseEntry, impl.getTypeFilterOnEntry());
|
||||||
assertEquals("mock", impl.toString(false));
|
assertEquals("mock", impl.toString(false));
|
||||||
assertEquals("mock/com.sap.odata.test1.ETTwoBaseTwoKeyNav", impl.toString(true));
|
assertEquals("mock/olingo.odata.test1.ETTwoBaseTwoKeyNav", impl.toString(true));
|
||||||
|
|
||||||
// set collection
|
// set collection
|
||||||
impl = new Mock();
|
impl = new Mock();
|
||||||
|
@ -300,7 +300,7 @@ public class UriResourceImplTest {
|
||||||
impl.setCollectionTypeFilter(entityTypeBaseColl);
|
impl.setCollectionTypeFilter(entityTypeBaseColl);
|
||||||
assertEquals(entityTypeBaseColl, impl.getTypeFilterOnCollection());
|
assertEquals(entityTypeBaseColl, impl.getTypeFilterOnCollection());
|
||||||
assertEquals("mock", impl.toString(false));
|
assertEquals("mock", impl.toString(false));
|
||||||
assertEquals("mock/com.sap.odata.test1.ETBaseTwoKeyNav", impl.toString(true));
|
assertEquals("mock/olingo.odata.test1.ETBaseTwoKeyNav", impl.toString(true));
|
||||||
|
|
||||||
impl = new Mock();
|
impl = new Mock();
|
||||||
UriParameterImpl parameter = new UriParameterImpl().setName("ParameterInt16");
|
UriParameterImpl parameter = new UriParameterImpl().setName("ParameterInt16");
|
||||||
|
@ -357,7 +357,7 @@ public class UriResourceImplTest {
|
||||||
impl.setTypeFilter(entityTypeBaseColl);
|
impl.setTypeFilter(entityTypeBaseColl);
|
||||||
assertEquals(entityTypeBaseColl, impl.getTypeFilter());
|
assertEquals(entityTypeBaseColl, impl.getTypeFilter());
|
||||||
assertEquals("mock", impl.toString());
|
assertEquals("mock", impl.toString());
|
||||||
assertEquals("mock/com.sap.odata.test1.ETBaseTwoKeyNav", impl.toString(true));
|
assertEquals("mock/olingo.odata.test1.ETBaseTwoKeyNav", impl.toString(true));
|
||||||
assertEquals("mock", impl.toString(false));
|
assertEquals("mock", impl.toString(false));
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,7 @@ public class UriResourceImplTest {
|
||||||
EdmEntityType entityType = edm.getEntityType(EntityTypeProvider.nameETTwoKeyNav);
|
EdmEntityType entityType = edm.getEntityType(EntityTypeProvider.nameETTwoKeyNav);
|
||||||
|
|
||||||
impl.setType(entityType);
|
impl.setType(entityType);
|
||||||
assertEquals("com.sap.odata.test1.ETTwoKeyNav", impl.toString());
|
assertEquals("olingo.odata.test1.ETTwoKeyNav", impl.toString());
|
||||||
assertEquals(entityType, impl.getType());
|
assertEquals(entityType, impl.getType());
|
||||||
|
|
||||||
UriParameterImpl parameter = new UriParameterImpl().setName("ParameterInt16");
|
UriParameterImpl parameter = new UriParameterImpl().setName("ParameterInt16");
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -76,12 +76,12 @@ public class TestUriParserImpl {
|
||||||
public void testBoundFunctionImport_VarParameters() {
|
public void testBoundFunctionImport_VarParameters() {
|
||||||
|
|
||||||
// no input
|
// no input
|
||||||
testRes.run("ESKeyNav(1)/com.sap.odata.test1.BFCETKeyNavRTETKeyNav()")
|
testRes.run("ESKeyNav(1)/olingo.odata.test1.BFCETKeyNavRTETKeyNav()")
|
||||||
.at(0).isUriPathInfoKind(UriResourceKind.entitySet)
|
.at(0).isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.at(1).isUriPathInfoKind(UriResourceKind.function);
|
.at(1).isUriPathInfoKind(UriResourceKind.function);
|
||||||
|
|
||||||
// one input
|
// one input
|
||||||
testRes.run("ESTwoKeyNav/com.sap.odata.test1.BFCESTwoKeyNavRTESTwoKeyNav(ParameterString='ABC')")
|
testRes.run("ESTwoKeyNav/olingo.odata.test1.BFCESTwoKeyNavRTESTwoKeyNav(ParameterString='ABC')")
|
||||||
.at(0).isUriPathInfoKind(UriResourceKind.entitySet)
|
.at(0).isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.at(1).isUriPathInfoKind(UriResourceKind.function)
|
.at(1).isUriPathInfoKind(UriResourceKind.function)
|
||||||
.isParameter(0, "ParameterString", "'ABC'");
|
.isParameter(0, "ParameterString", "'ABC'");
|
||||||
|
@ -100,7 +100,7 @@ public class TestUriParserImpl {
|
||||||
String esTwoKeyNav = "ESTwoKeyNav(PropertyInt16=1,PropertyString='ABC')";
|
String esTwoKeyNav = "ESTwoKeyNav(PropertyInt16=1,PropertyString='ABC')";
|
||||||
|
|
||||||
// returning primitive
|
// returning primitive
|
||||||
testRes.run("ESTwoKeyNav/com.sap.odata.test1.BFCESTwoKeyNavRTString()")
|
testRes.run("ESTwoKeyNav/olingo.odata.test1.BFCESTwoKeyNavRTString()")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
||||||
|
@ -109,7 +109,7 @@ public class TestUriParserImpl {
|
||||||
.isType(PropertyProvider.nameString, false);
|
.isType(PropertyProvider.nameString, false);
|
||||||
|
|
||||||
// returning collection of primitive
|
// returning collection of primitive
|
||||||
testRes.run("ESTwoKeyNav/com.sap.odata.test1.BFCESTwoKeyNavRTCollString()")
|
testRes.run("ESTwoKeyNav/olingo.odata.test1.BFCESTwoKeyNavRTCollString()")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
||||||
|
@ -118,7 +118,7 @@ public class TestUriParserImpl {
|
||||||
.isType(PropertyProvider.nameString, true);
|
.isType(PropertyProvider.nameString, true);
|
||||||
|
|
||||||
// returning single complex
|
// returning single complex
|
||||||
testRes.run("ESTwoKeyNav/com.sap.odata.test1.BFCESTwoKeyNavRTCTTwoPrim()")
|
testRes.run("ESTwoKeyNav/olingo.odata.test1.BFCESTwoKeyNavRTCTTwoPrim()")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
||||||
|
@ -127,7 +127,7 @@ public class TestUriParserImpl {
|
||||||
.isType(ComplexTypeProvider.nameCTTwoPrim, false);
|
.isType(ComplexTypeProvider.nameCTTwoPrim, false);
|
||||||
|
|
||||||
// returning collection of complex
|
// returning collection of complex
|
||||||
testRes.run("ESTwoKeyNav/com.sap.odata.test1.BFCESTwoKeyNavRTCollCTTwoPrim()")
|
testRes.run("ESTwoKeyNav/olingo.odata.test1.BFCESTwoKeyNavRTCollCTTwoPrim()")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
.isType(EntityTypeProvider.nameETTwoKeyNav, true)
|
||||||
|
@ -137,7 +137,7 @@ public class TestUriParserImpl {
|
||||||
|
|
||||||
// returning single entity
|
// returning single entity
|
||||||
testRes.run(
|
testRes.run(
|
||||||
esTwoKeyNav + "/com.sap.odata.test1.ETBaseTwoKeyNav/com.sap.odata.test1.BFCETBaseTwoKeyNavRTETTwoKeyNav()")
|
esTwoKeyNav + "/olingo.odata.test1.ETBaseTwoKeyNav/olingo.odata.test1.BFCETBaseTwoKeyNavRTETTwoKeyNav()")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, false)
|
.isType(EntityTypeProvider.nameETTwoKeyNav, false)
|
||||||
|
@ -147,7 +147,7 @@ public class TestUriParserImpl {
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, false);
|
.isType(EntityTypeProvider.nameETTwoKeyNav, false);
|
||||||
|
|
||||||
// returning collection of entity (aka entitySet)
|
// returning collection of entity (aka entitySet)
|
||||||
testRes.run(esTwoKeyNav + "/com.sap.odata.test1.BFCSINavRTESTwoKeyNav()")
|
testRes.run(esTwoKeyNav + "/olingo.odata.test1.BFCSINavRTESTwoKeyNav()")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
.isType(EntityTypeProvider.nameETTwoKeyNav, false)
|
.isType(EntityTypeProvider.nameETTwoKeyNav, false)
|
||||||
|
@ -235,7 +235,7 @@ public class TestUriParserImpl {
|
||||||
@Test(expected = UriValidationException.class)
|
@Test(expected = UriValidationException.class)
|
||||||
public void testEntityFailOnValidation1() throws Exception {
|
public void testEntityFailOnValidation1() throws Exception {
|
||||||
// simple entity set; with qualifiedentityTypeName; with filter
|
// simple entity set; with qualifiedentityTypeName; with filter
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETTwoPrim?$filter=PropertyInt16 eq 123&$id=ESAllKey")
|
testUri.run("$entity/olingo.odata.test1.ETTwoPrim?$filter=PropertyInt16 eq 123&$id=ESAllKey")
|
||||||
.isIdText("ESAllKey")
|
.isIdText("ESAllKey")
|
||||||
.goFilter().is("<<PropertyInt16> eq <123>>");
|
.goFilter().is("<<PropertyInt16> eq <123>>");
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ public class TestUriParserImpl {
|
||||||
@Test(expected = UriValidationException.class)
|
@Test(expected = UriValidationException.class)
|
||||||
public void testEntityFailOnValidation2() throws Exception {
|
public void testEntityFailOnValidation2() throws Exception {
|
||||||
// simple entity set; with qualifiedentityTypeName; with 2xformat(before and after), expand, filter
|
// simple entity set; with qualifiedentityTypeName; with 2xformat(before and after), expand, filter
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETTwoPrim?"
|
testUri.run("$entity/olingo.odata.test1.ETTwoPrim?"
|
||||||
+ "$format=xml&$expand=*&abc=123&$id=ESBase&xyz=987&$filter=PropertyInt16 eq 123&$format=atom&$select=*")
|
+ "$format=xml&$expand=*&abc=123&$id=ESBase&xyz=987&$filter=PropertyInt16 eq 123&$format=atom&$select=*")
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isCustomParameter(0, "abc", "123")
|
.isCustomParameter(0, "abc", "123")
|
||||||
|
@ -288,32 +288,32 @@ public class TestUriParserImpl {
|
||||||
.isCustomParameter(0, "abc", "123");
|
.isCustomParameter(0, "abc", "123");
|
||||||
|
|
||||||
// simple entity set; with qualifiedentityTypeName
|
// simple entity set; with qualifiedentityTypeName
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETTwoPrim?$id=ESBase")
|
testUri.run("$entity/olingo.odata.test1.ETTwoPrim?$id=ESBase")
|
||||||
.isEntityType(EntityTypeProvider.nameETTwoPrim)
|
.isEntityType(EntityTypeProvider.nameETTwoPrim)
|
||||||
.isIdText("ESBase");
|
.isIdText("ESBase");
|
||||||
|
|
||||||
// simple entity set; with qualifiedentityTypeName;
|
// simple entity set; with qualifiedentityTypeName;
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETBase?$id=ESTwoPrim")
|
testUri.run("$entity/olingo.odata.test1.ETBase?$id=ESTwoPrim")
|
||||||
.isEntityType(EntityTypeProvider.nameETBase)
|
.isEntityType(EntityTypeProvider.nameETBase)
|
||||||
.isKind(UriInfoKind.entityId)
|
.isKind(UriInfoKind.entityId)
|
||||||
.isIdText("ESTwoPrim");
|
.isIdText("ESTwoPrim");
|
||||||
|
|
||||||
// simple entity set; with qualifiedentityTypeName; with format
|
// simple entity set; with qualifiedentityTypeName; with format
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETBase?$id=ESTwoPrim&$format=atom")
|
testUri.run("$entity/olingo.odata.test1.ETBase?$id=ESTwoPrim&$format=atom")
|
||||||
.isKind(UriInfoKind.entityId)
|
.isKind(UriInfoKind.entityId)
|
||||||
.isEntityType(EntityTypeProvider.nameETBase)
|
.isEntityType(EntityTypeProvider.nameETBase)
|
||||||
.isIdText("ESTwoPrim")
|
.isIdText("ESTwoPrim")
|
||||||
.isFormatText("atom");
|
.isFormatText("atom");
|
||||||
|
|
||||||
// simple entity set; with qualifiedentityTypeName; with select
|
// simple entity set; with qualifiedentityTypeName; with select
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETBase?$id=ESTwoPrim&$select=*")
|
testUri.run("$entity/olingo.odata.test1.ETBase?$id=ESTwoPrim&$select=*")
|
||||||
.isKind(UriInfoKind.entityId)
|
.isKind(UriInfoKind.entityId)
|
||||||
.isEntityType(EntityTypeProvider.nameETBase)
|
.isEntityType(EntityTypeProvider.nameETBase)
|
||||||
.isIdText("ESTwoPrim")
|
.isIdText("ESTwoPrim")
|
||||||
.isSelectItemStar(0);
|
.isSelectItemStar(0);
|
||||||
|
|
||||||
// simple entity set; with qualifiedentityTypeName; with expand
|
// simple entity set; with qualifiedentityTypeName; with expand
|
||||||
testUri.run("$entity/com.sap.odata.test1.ETBase?$id=ESTwoPrim&$expand=*")
|
testUri.run("$entity/olingo.odata.test1.ETBase?$id=ESTwoPrim&$expand=*")
|
||||||
.isKind(UriInfoKind.entityId)
|
.isKind(UriInfoKind.entityId)
|
||||||
.isEntityType(EntityTypeProvider.nameETBase)
|
.isEntityType(EntityTypeProvider.nameETBase)
|
||||||
.isIdText("ESTwoPrim")
|
.isIdText("ESTwoPrim")
|
||||||
|
@ -508,7 +508,7 @@ public class TestUriParserImpl {
|
||||||
public void testEntitySet_TypeFilter() {
|
public void testEntitySet_TypeFilter() {
|
||||||
|
|
||||||
// filter
|
// filter
|
||||||
testRes.run("ESTwoPrim/com.sap.odata.test1.ETBase")
|
testRes.run("ESTwoPrim/olingo.odata.test1.ETBase")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isEntitySet("ESTwoPrim")
|
.isEntitySet("ESTwoPrim")
|
||||||
.isType(EntityTypeProvider.nameETTwoPrim, true)
|
.isType(EntityTypeProvider.nameETTwoPrim, true)
|
||||||
|
@ -516,7 +516,7 @@ public class TestUriParserImpl {
|
||||||
.isTypeFilterOnEntry(null);
|
.isTypeFilterOnEntry(null);
|
||||||
|
|
||||||
// filter before key predicate
|
// filter before key predicate
|
||||||
testRes.run("ESTwoPrim/com.sap.odata.test1.ETBase(PropertyInt16=1)")
|
testRes.run("ESTwoPrim/olingo.odata.test1.ETBase(PropertyInt16=1)")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isEntitySet("ESTwoPrim")
|
.isEntitySet("ESTwoPrim")
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
|
@ -528,7 +528,7 @@ public class TestUriParserImpl {
|
||||||
.isKeyPredicate(0, "PropertyInt16", "1");
|
.isKeyPredicate(0, "PropertyInt16", "1");
|
||||||
|
|
||||||
// filter before key predicate; property of sub type
|
// filter before key predicate; property of sub type
|
||||||
testRes.run("ESTwoPrim/com.sap.odata.test1.ETBase(PropertyInt16=1)/AdditionalPropertyString_5")
|
testRes.run("ESTwoPrim/olingo.odata.test1.ETBase(PropertyInt16=1)/AdditionalPropertyString_5")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isEntitySet("ESTwoPrim")
|
.isEntitySet("ESTwoPrim")
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
|
@ -541,7 +541,7 @@ public class TestUriParserImpl {
|
||||||
.isPrimitiveProperty("AdditionalPropertyString_5", PropertyProvider.nameString, false);
|
.isPrimitiveProperty("AdditionalPropertyString_5", PropertyProvider.nameString, false);
|
||||||
|
|
||||||
// filter after key predicate
|
// filter after key predicate
|
||||||
testRes.run("ESTwoPrim(PropertyInt16=1)/com.sap.odata.test1.ETBase")
|
testRes.run("ESTwoPrim(PropertyInt16=1)/olingo.odata.test1.ETBase")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isEntitySet("ESTwoPrim")
|
.isEntitySet("ESTwoPrim")
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
|
@ -551,7 +551,7 @@ public class TestUriParserImpl {
|
||||||
.isKeyPredicate(0, "PropertyInt16", "1");
|
.isKeyPredicate(0, "PropertyInt16", "1");
|
||||||
|
|
||||||
// filter after key predicate; property of sub type
|
// filter after key predicate; property of sub type
|
||||||
testRes.run("ESTwoPrim(PropertyInt16=1)/com.sap.odata.test1.ETBase/AdditionalPropertyString_5")
|
testRes.run("ESTwoPrim(PropertyInt16=1)/olingo.odata.test1.ETBase/AdditionalPropertyString_5")
|
||||||
.at(0)
|
.at(0)
|
||||||
.isEntitySet("ESTwoPrim")
|
.isEntitySet("ESTwoPrim")
|
||||||
.isUriPathInfoKind(UriResourceKind.entitySet)
|
.isUriPathInfoKind(UriResourceKind.entitySet)
|
||||||
|
@ -770,20 +770,20 @@ public class TestUriParserImpl {
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("SINav/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
.isFragmentText("SINav/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
||||||
|
|
||||||
testUri.run("$metadata?$format=atom#SINav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16")
|
testUri.run("$metadata?$format=atom#SINav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("SINav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16");
|
.isFragmentText("SINav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16");
|
||||||
|
|
||||||
testUri.run("$metadata?$format=atom#SINav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16")
|
testUri.run("$metadata?$format=atom#SINav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("SINav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
.isFragmentText("SINav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
||||||
|
|
||||||
testUri.run("$metadata?$format=atom#com.sap.odata.test1.ETAllKey")
|
testUri.run("$metadata?$format=atom#olingo.odata.test1.ETAllKey")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("com.sap.odata.test1.ETAllKey");
|
.isFragmentText("olingo.odata.test1.ETAllKey");
|
||||||
|
|
||||||
testUri.run("$metadata?$format=atom#ESTwoPrim/$deletedEntity")
|
testUri.run("$metadata?$format=atom#ESTwoPrim/$deletedEntity")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
|
@ -830,16 +830,16 @@ public class TestUriParserImpl {
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("ESKeyNav/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
.isFragmentText("ESKeyNav/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
||||||
|
|
||||||
testUri.run("$metadata?$format=atom#ESKeyNav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16")
|
testUri.run("$metadata?$format=atom#ESKeyNav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("ESKeyNav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16");
|
.isFragmentText("ESKeyNav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavOne/PropertyInt16");
|
||||||
|
|
||||||
testUri.run(
|
testUri.run(
|
||||||
"$metadata?$format=atom#ESKeyNav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16")
|
"$metadata?$format=atom#ESKeyNav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
.isFormatText("atom")
|
.isFormatText("atom")
|
||||||
.isFragmentText("ESKeyNav/com.sap.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
.isFragmentText("ESKeyNav/olingo.odata.test1.ETTwoPrim/NavPropertyETKeyNavMany(1)/PropertyInt16");
|
||||||
|
|
||||||
testUri.run("$metadata?$format=atom#ESKeyNav(PropertyInt16,PropertyString)")
|
testUri.run("$metadata?$format=atom#ESKeyNav(PropertyInt16,PropertyString)")
|
||||||
.isKind(UriInfoKind.metadata)
|
.isKind(UriInfoKind.metadata)
|
||||||
|
@ -995,7 +995,7 @@ public class TestUriParserImpl {
|
||||||
public void testMemberStartingWithCastFailOnValidation1() throws Exception {
|
public void testMemberStartingWithCastFailOnValidation1() throws Exception {
|
||||||
// on EntityType entry
|
// on EntityType entry
|
||||||
testUri.run("ESTwoKeyNav(ParameterInt16=1,PropertyString='ABC')?"
|
testUri.run("ESTwoKeyNav(ParameterInt16=1,PropertyString='ABC')?"
|
||||||
+ "$filter=com.sap.odata.test1.ETBaseTwoKeyNav/PropertyDate")
|
+ "$filter=olingo.odata.test1.ETBaseTwoKeyNav/PropertyDate")
|
||||||
.goFilter().root().isMember()
|
.goFilter().root().isMember()
|
||||||
.isMemberStartType(EntityTypeProvider.nameETBaseTwoKeyNav).goPath()
|
.isMemberStartType(EntityTypeProvider.nameETBaseTwoKeyNav).goPath()
|
||||||
// .at(0)
|
// .at(0)
|
||||||
|
@ -1008,7 +1008,7 @@ public class TestUriParserImpl {
|
||||||
@Test(expected = UriValidationException.class)
|
@Test(expected = UriValidationException.class)
|
||||||
public void testMemberStartingWithCastFailOnValidation2() throws Exception {
|
public void testMemberStartingWithCastFailOnValidation2() throws Exception {
|
||||||
testUri.run("FICRTCTTwoPrimParam(ParameterInt16=1,ParameterString='2')?"
|
testUri.run("FICRTCTTwoPrimParam(ParameterInt16=1,ParameterString='2')?"
|
||||||
+ "$filter=com.sap.odata.test1.CTBase/AdditionalPropString")
|
+ "$filter=olingo.odata.test1.CTBase/AdditionalPropString")
|
||||||
.goFilter().root().isMember()
|
.goFilter().root().isMember()
|
||||||
.isMemberStartType(ComplexTypeProvider.nameCTBase).goPath()
|
.isMemberStartType(ComplexTypeProvider.nameCTBase).goPath()
|
||||||
// .at(0)
|
// .at(0)
|
||||||
|
@ -1022,7 +1022,7 @@ public class TestUriParserImpl {
|
||||||
public void testMemberStartingWithCast() throws Exception {
|
public void testMemberStartingWithCast() throws Exception {
|
||||||
|
|
||||||
// on EntityType collection
|
// on EntityType collection
|
||||||
testUri.run("ESTwoKeyNav?$filter=com.sap.odata.test1.ETBaseTwoKeyNav/PropertyDate")
|
testUri.run("ESTwoKeyNav?$filter=olingo.odata.test1.ETBaseTwoKeyNav/PropertyDate")
|
||||||
.goFilter().root().isMember()
|
.goFilter().root().isMember()
|
||||||
.isMemberStartType(EntityTypeProvider.nameETBaseTwoKeyNav).goPath()
|
.isMemberStartType(EntityTypeProvider.nameETBaseTwoKeyNav).goPath()
|
||||||
// .at(0)
|
// .at(0)
|
||||||
|
@ -1033,7 +1033,7 @@ public class TestUriParserImpl {
|
||||||
|
|
||||||
// on Complex collection
|
// on Complex collection
|
||||||
testUri.run("FICRTCollCTTwoPrimParam(ParameterInt16=1,ParameterString='2')?"
|
testUri.run("FICRTCollCTTwoPrimParam(ParameterInt16=1,ParameterString='2')?"
|
||||||
+ "$filter=com.sap.odata.test1.CTBase/AdditionalPropString")
|
+ "$filter=olingo.odata.test1.CTBase/AdditionalPropString")
|
||||||
.goFilter().root().isMember()
|
.goFilter().root().isMember()
|
||||||
.isMemberStartType(ComplexTypeProvider.nameCTBase).goPath()
|
.isMemberStartType(ComplexTypeProvider.nameCTBase).goPath()
|
||||||
// .at(0)
|
// .at(0)
|
||||||
|
@ -1046,7 +1046,7 @@ public class TestUriParserImpl {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testComplexTypeCastFollowingAsCollection() throws Exception {
|
public void testComplexTypeCastFollowingAsCollection() throws Exception {
|
||||||
testUri.run("FICRTCollCTTwoPrimParam(ParameterInt16=1,ParameterString='2')/com.sap.odata.test1.CTBase");
|
testUri.run("FICRTCollCTTwoPrimParam(ParameterInt16=1,ParameterString='2')/olingo.odata.test1.CTBase");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1094,8 +1094,8 @@ public class TestUriParserImpl {
|
||||||
testUri.run("ESTwoKeyNav?$select=*")
|
testUri.run("ESTwoKeyNav?$select=*")
|
||||||
.isSelectItemStar(0);
|
.isSelectItemStar(0);
|
||||||
|
|
||||||
testUri.run("ESTwoKeyNav?$select=com.sap.odata.test1.*")
|
testUri.run("ESTwoKeyNav?$select=olingo.odata.test1.*")
|
||||||
.isSelectItemAllOp(0, new FullQualifiedName("com.sap.odata.test1", "*"));
|
.isSelectItemAllOp(0, new FullQualifiedName("olingo.odata.test1", "*"));
|
||||||
|
|
||||||
testUri.run("ESTwoKeyNav?$select=PropertyString")
|
testUri.run("ESTwoKeyNav?$select=PropertyString")
|
||||||
.goSelectItemPath(0).isPrimitiveProperty("PropertyString", PropertyProvider.nameString, false);
|
.goSelectItemPath(0).isPrimitiveProperty("PropertyString", PropertyProvider.nameString, false);
|
||||||
|
@ -1117,13 +1117,13 @@ public class TestUriParserImpl {
|
||||||
.n()
|
.n()
|
||||||
.isComplexProperty("PropertyComp", ComplexTypeProvider.nameCTAllPrim, false);
|
.isComplexProperty("PropertyComp", ComplexTypeProvider.nameCTAllPrim, false);
|
||||||
|
|
||||||
testUri.run("ESTwoKeyNav?$select=com.sap.odata.test1.ETBaseTwoKeyNav")
|
testUri.run("ESTwoKeyNav?$select=olingo.odata.test1.ETBaseTwoKeyNav")
|
||||||
.isSelectStartType(0, EntityTypeProvider.nameETBaseTwoKeyNav);
|
.isSelectStartType(0, EntityTypeProvider.nameETBaseTwoKeyNav);
|
||||||
|
|
||||||
testUri.run("ESTwoKeyNav/PropertyCompNav?$select=com.sap.odata.test1.CTTwoBasePrimCompNav")
|
testUri.run("ESTwoKeyNav/PropertyCompNav?$select=olingo.odata.test1.CTTwoBasePrimCompNav")
|
||||||
.isSelectStartType(0, ComplexTypeProvider.nameCTTwoBasePrimCompNav);
|
.isSelectStartType(0, ComplexTypeProvider.nameCTTwoBasePrimCompNav);
|
||||||
|
|
||||||
testUri.run("ESTwoKeyNav?$select=PropertyCompNav/com.sap.odata.test1.CTTwoBasePrimCompNav")
|
testUri.run("ESTwoKeyNav?$select=PropertyCompNav/olingo.odata.test1.CTTwoBasePrimCompNav")
|
||||||
.goSelectItemPath(0)
|
.goSelectItemPath(0)
|
||||||
.first()
|
.first()
|
||||||
.isComplexProperty("PropertyCompNav", ComplexTypeProvider.nameCTBasePrimCompNav, false)
|
.isComplexProperty("PropertyCompNav", ComplexTypeProvider.nameCTBasePrimCompNav, false)
|
||||||
|
|
|
@ -107,7 +107,7 @@ public class ExpressionTest {
|
||||||
expression.addValue("B");
|
expression.addValue("B");
|
||||||
assertEquals("A", expression.getValues().get(0));
|
assertEquals("A", expression.getValues().get(0));
|
||||||
assertEquals("B", expression.getValues().get(1));
|
assertEquals("B", expression.getValues().get(1));
|
||||||
assertEquals("<com.sap.odata.test1.ENString<A,B>>", expression.accept(new FilterTreeToText()));
|
assertEquals("<olingo.odata.test1.ENString<A,B>>", expression.accept(new FilterTreeToText()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -219,7 +219,7 @@ public class ExpressionTest {
|
||||||
expression.setType(entityBaseType);
|
expression.setType(entityBaseType);
|
||||||
|
|
||||||
assertEquals(entityBaseType, expression.getType());
|
assertEquals(entityBaseType, expression.getType());
|
||||||
assertEquals("<com.sap.odata.test1.ETBaseTwoKeyNav>", expression.accept(new FilterTreeToText()));
|
assertEquals("<olingo.odata.test1.ETBaseTwoKeyNav>", expression.accept(new FilterTreeToText()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -40,8 +40,8 @@ import java.util.List;
|
||||||
public class EdmTechTestProvider extends EdmTechProvider {
|
public class EdmTechTestProvider extends EdmTechProvider {
|
||||||
|
|
||||||
private static final FullQualifiedName nameInt16 = EdmPrimitiveTypeKind.Int16.getFullQualifiedName();
|
private static final FullQualifiedName nameInt16 = EdmPrimitiveTypeKind.Int16.getFullQualifiedName();
|
||||||
public static final String nameSpace = "com.sap.odata.test1";
|
public static final String NAMESPACE = "olingo.odata.test1";
|
||||||
public static final FullQualifiedName nameContainer = new FullQualifiedName(nameSpace, "Container");
|
public static final FullQualifiedName nameContainer = new FullQualifiedName(NAMESPACE, "Container");
|
||||||
|
|
||||||
Property propertyAInt16 = new Property().setName("a").setType(nameInt16);
|
Property propertyAInt16 = new Property().setName("a").setType(nameInt16);
|
||||||
Property propertyBInt16 = new Property().setName("b").setType(nameInt16);
|
Property propertyBInt16 = new Property().setName("b").setType(nameInt16);
|
||||||
|
@ -50,8 +50,8 @@ public class EdmTechTestProvider extends EdmTechProvider {
|
||||||
Property propertyEInt16 = new Property().setName("e").setType(nameInt16);
|
Property propertyEInt16 = new Property().setName("e").setType(nameInt16);
|
||||||
Property propertyFInt16 = new Property().setName("f").setType(nameInt16);
|
Property propertyFInt16 = new Property().setName("f").setType(nameInt16);
|
||||||
|
|
||||||
public static final FullQualifiedName nameCTabc = new FullQualifiedName(nameSpace, "CTabc");
|
public static final FullQualifiedName nameCTabc = new FullQualifiedName(NAMESPACE, "CTabc");
|
||||||
public static final FullQualifiedName nameETabc = new FullQualifiedName(nameSpace, "ETabc");
|
public static final FullQualifiedName nameETabc = new FullQualifiedName(NAMESPACE, "ETabc");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException {
|
public ComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException {
|
||||||
|
|
|
@ -151,8 +151,8 @@ public class UriValidatorTest {
|
||||||
{ "FICRTCollCTTwoPrim()" },
|
{ "FICRTCollCTTwoPrim()" },
|
||||||
{ "FICRTETMedia()" },
|
{ "FICRTETMedia()" },
|
||||||
|
|
||||||
{ "ESTwoKeyNav/com.sap.odata.test1.BAESTwoKeyNavRTESTwoKeyNav" },
|
{ "ESTwoKeyNav/olingo.odata.test1.BAESTwoKeyNavRTESTwoKeyNav" },
|
||||||
{ "ESAllPrim/com.sap.odata.test1.BAESAllPrimRTETAllPrim" },
|
{ "ESAllPrim/olingo.odata.test1.BAESAllPrimRTETAllPrim" },
|
||||||
{ "AIRTPrimCollParam" },
|
{ "AIRTPrimCollParam" },
|
||||||
{ "AIRTETParam" },
|
{ "AIRTETParam" },
|
||||||
{ "AIRTPrimParam" },
|
{ "AIRTPrimParam" },
|
||||||
|
|
Loading…
Reference in New Issue