id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
18830102_39
{ "fields": [ { "declarator": "STR_LOCAL_URI = \"http://localhost:8080/org.apache.olingo.odata2.processor.ref.web/\"", "modifier": "private static final", "original_string": "private static final String STR_LOCAL_URI = \"http://localhost:8080/org.apache.olingo.odata2.processor.ref.web/\";", ...
{ "body": "@Test\n public void testProcessGetEntitySetUriInfo() {\n try {\n Assert.assertNotNull(objJPAProcessorImpl.process(getEntitySetUriInfo()));\n } catch (ODataJPAModelException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART_2)...
{ "fields": [ { "declarator": "DELTATOKEN = \"!deltatoken\"", "modifier": "private static final", "original_string": "private static final String DELTATOKEN = \"!deltatoken\";", "type": "String", "var_name": "DELTATOKEN" }, { "declarator": "oDataJPAContext", "modi...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Object> process(final GetFunctionImportUriInfo uriParserResultView)\n throws ODataJPAModelException, ODataJPARuntimeException {\n\n JPAMethodContext jpaMethodContext = JPAMethodContext.createBuilder(\n JPQLContextType.FUNCTION, uri...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_979
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testFunctionImportEntity() throws XMLStreamException, EntityProviderException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataServices m...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_996
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testMissingAssociation() throws Exception {\n final String xmlWithAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataService...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_646
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/provider/EdmxProviderTest.java", "identifier": "EdmxProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void nullAnnotationsAtSimpleProperty() throws Exception {\n Edm edm = createEdm();\n assertNotNull(edm);\n EdmProperty property = (EdmProperty) edm.getEntityType(\"Self\", \"Employee\").getProperty(\"RoomId\");\n EdmAnnotations annotations = property.getAnnotations();\n check...
{ "fields": [ { "declarator": "dataServices", "modifier": "private", "original_string": "private DataServices dataServices;", "type": "DataServices", "var_name": "dataServices" } ], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmxPr...
{ "body": "@Override\n public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException {\n for (Schema schema : dataServices.getSchemas()) {\n if (schema.getNamespace().equals(edmFQName.getNamespace())) {\n for (EntityType entityType : schema.getEntityTypes()) {\n if ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_216
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testNoEntitySet() {\n VARIANT = 5;\n\n try {\n jpaEdmfunctionImport.getBuilder().build();\n fail(\"Exception Expected\");\n } catch (ODataJPAModelException e) {\n assertEquals(ODataJPAModelException.FUNC_RETURN_TYPE_ENTITY_NOT_FOUND.getKey(), e.getMessageReferen...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmFunctionImportBuilder();\n }\n return builder;\n }", "class_method_signature": "JPAEdmFunctionImport.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBuilder ge...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1037
{ "fields": [ { "declarator": "EMPLOYEE_1_XML =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" +\n \"<entry xmlns=\\\"\" + Edm.NAMESPACE_ATOM_2005 + \"\\\"\" +\n \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\"\" +\n \" xmlns:d=\\\"\" + Edm.NAMESPACE_D_2007_08 +...
{ "body": "@Test\n public void writeLinks() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n Map<String, Object> properties = new HashMap<String, Object>();\n properties.put(\"Id\", \"42\");\n List<Map<String, Object>> prop...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/ProviderFacadeImpl.java", "identifier": "ProviderFacadeImpl", "interfaces": "implements EntityProviderInterface", "methods": [ { "class_method_signature": "ProviderFacadeImpl.create()", "constructor":...
{ "body": "@Override\n public ODataResponse writeLinks(final String contentType, final EdmEntitySet entitySet,\n final List<Map<String, Object>> data, final EntityProviderWriteProperties properties)\n throws EntityProviderException {\n return create(contentType).writeLinks(entitySet, data, properties);\...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_353
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testTwoSchemas() throws XMLStreamException, EntityProviderException,\n EdmException, UnsupportedEncodingException {\n int i = 0;\n String schemasNs[] = { NAMESPACE, NAMESPACE2 };\n XmlMetadataDeserializer parser = new XmlMetadataDeserializer();\n InputStream reader = creat...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_884
{ "fields": [ { "declarator": "NAMESPACE = \"http://www.foo.bar/Data\"", "modifier": "private static final", "original_string": "private static final String NAMESPACE = \"http://www.foo.bar/Data\";", "type": "String", "var_name": "NAMESPACE" }, { "declarator": "PREFIX =...
{ "body": "@Test\n public void checkDecodingOfEntitySetNames() throws Exception {\n AtomServiceDocumentConsumer svcDocumentParser = new AtomServiceDocumentConsumer();\n ServiceDocument svcDocument = svcDocumentParser.readServiceDokument(createStreamReader(\"/serviceDocument.xml\"));\n assertNotNull(svcDocum...
{ "fields": [ { "declarator": "currentHandledStartTagName", "modifier": "private", "original_string": "private String currentHandledStartTagName;", "type": "String", "var_name": "currentHandledStartTagName" }, { "declarator": "DEFAULT_PREFIX = \"\"", "modifier": "...
{ "body": "public ServiceDocumentImpl readServiceDokument(final XMLStreamReader reader) throws EntityProviderException {\n AtomInfoImpl atomInfo = new AtomInfoImpl();\n ServiceDocumentImpl serviceDocument = new ServiceDocumentImpl();\n List<Workspace> workspaces = new ArrayList<Workspace>();\n List<Extens...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_187
{ "fields": [ { "declarator": "VARIANT1 = 1", "modifier": "private final static", "original_string": "private final static int VARIANT1 = 1;", "type": "int", "var_name": "VARIANT1" }, { "declarator": "VARIANT2 = 2", "modifier": "private final static", "origi...
{ "body": "@Test\n public void testGetAssociationEnd1() {\n AssociationEnd associationEnd = objJPAEdmAssociationEnd.getEdmAssociationEnd1();\n assertEquals(associationEnd.getType().getName(), \"SOID\");\n }", "class_method_signature": "JPAEdmAssociationEndTest.testGetAssociationEnd1()", "constructor": fal...
{ "fields": [ { "declarator": "entityTypeView = null", "modifier": "private", "original_string": "private JPAEdmEntityTypeView entityTypeView = null;", "type": "JPAEdmEntityTypeView", "var_name": "entityTypeView" }, { "declarator": "propertyView = null", "modifier...
{ "body": "@Override\n public AssociationEnd getEdmAssociationEnd1() {\n return currentAssociationEnd1;\n }", "class_method_signature": "JPAEdmAssociationEnd.getEdmAssociationEnd1()", "constructor": false, "full_signature": "@Override public AssociationEnd getEdmAssociationEnd1()", "identifier": "getEdmA...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_538
{ "fields": [ { "declarator": "DEFAULT_LANGUAGE = new Locale(\"test\", \"foo\")", "modifier": "private static final", "original_string": "private static final Locale DEFAULT_LANGUAGE = new Locale(\"test\", \"foo\");", "type": "Locale", "var_name": "DEFAULT_LANGUAGE" } ], "fil...
{ "body": "@Test\n public void testResourceBundleException() throws Exception {\n MessageReference context = MessageReference.create(ODataMessageException.class, \"COMMON\");\n Message ms = MessageService.getMessage(null, context);\n\n assertEquals(\n \"MessageService could not be created because of ...
{ "fields": [ { "declarator": "BUNDLE_NAME = \"i18n\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_NAME = \"i18n\";", "type": "String", "var_name": "BUNDLE_NAME" }, { "declarator": "resourceBundle", "modifier": "priv...
{ "body": "public static Message getMessage(final Locale language, final MessageReference context) {\n Object[] contentAsArray = context.getContent().toArray(new Object[0]);\n return getMessage(language, context.getKey(), contentAsArray);\n }", "class_method_signature": "MessageService.getMessage(final Local...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_492
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void testReadEntryRequestObjectMapping() throws Exception {\n XmlEntityDeserializer xec = new XmlEntityDeserializer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream content = createContentAsStream(EMPLOYE...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_168
{ "fields": [ { "declarator": "objJPAEdmBaseViewImplTest", "modifier": "private", "original_string": "private JPAEdmBaseViewImplTest objJPAEdmBaseViewImplTest;", "type": "JPAEdmBaseViewImplTest", "var_name": "objJPAEdmBaseViewImplTest" }, { "declarator": "objJPAEdmBaseV...
{ "body": "@Test\n public void testGetJPAMetaModel() {\n assertNotNull(objJPAEdmBaseViewImpl.getJPAMetaModel());\n }", "class_method_signature": "JPAEdmBaseViewImplTest.testGetJPAMetaModel()", "constructor": false, "full_signature": "@Test public void testGetJPAMetaModel()", "identifier": "testGetJPAMeta...
{ "fields": [ { "declarator": "skipDefaultNaming = false", "modifier": "protected", "original_string": "protected boolean skipDefaultNaming = false;", "type": "boolean", "var_name": "skipDefaultNaming" }, { "declarator": "pUnitName = null", "modifier": "protected"...
{ "body": "@Override\n public Metamodel getJPAMetaModel() {\n return metaModel;\n }", "class_method_signature": "JPAEdmBaseViewImpl.getJPAMetaModel()", "constructor": false, "full_signature": "@Override public Metamodel getJPAMetaModel()", "identifier": "getJPAMetaModel", "invocations": [], "modifier...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_81
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testMapJPAEntityType() {\n assertEquals(ENTITY_TYPE_NAME_EDM, objJPAEdmMappingModelServiceTest.mapJPAEntityType(ENTITY_TYPE_NAME_JPA));\n }", "class_method_signature": "JPAEdmMappingModelServiceTest.testMapJPAEntityType()", "constructor": false, "full_signature": "@Test publi...
{ "fields": [ { "declarator": "mappingModelExists = true", "modifier": "", "original_string": "boolean mappingModelExists = true;", "type": "boolean", "var_name": "mappingModelExists" }, { "declarator": "mappingModel", "modifier": "private", "original_string...
{ "body": "@Override\n public String mapJPAEntityType(final String jpaEntityTypeName) {\n\n JPAEntityTypeMapType jpaEntityTypeMap = searchJPAEntityTypeMapType(jpaEntityTypeName);\n if (jpaEntityTypeMap != null) {\n return jpaEntityTypeMap.getEDMEntityType();\n } else {\n return null;\n }\n }",...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_241
{ "fields": [ { "declarator": "annotatedTestEntityInnerClasses = new ClassValidator() {\n @Override\n public boolean isClassValid(final Class<?> c) {\n return c.isAnnotationPresent(EdmEntityType.class)\n && c.getName().contains(ClassHelperTest.class.getSimpleName());\n }\n }", ...
{ "body": "@Test\n public void loadSingleEntity() throws ODataException {\n String packageToScan = ClassHelperTest.class.getPackage().getName();\n\n //\n List<Class<?>> loadedClasses = ClassHelper.loadClasses(packageToScan, annotatedTestEntityInnerClasses);\n\n //\n Assert.assertEquals(1, loadedClasse...
{ "fields": [ { "declarator": "JAR_FILE_ENDING = \"jar\"", "modifier": "private static final", "original_string": "private static final String JAR_FILE_ENDING = \"jar\";", "type": "String", "var_name": "JAR_FILE_ENDING" }, { "declarator": "JAR_RESOURCE_SEPARATOR = \"!\"...
{ "body": "public static List<Class<?>> loadClasses(final String packageToScan, final ClassValidator cv) {\n return loadClasses(packageToScan, CLASSFILE_FILTER, cv);\n }", "class_method_signature": "ClassHelper.loadClasses(final String packageToScan, final ClassValidator cv)", "constructor": false, "full_si...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_611
{ "fields": [ { "declarator": "metadata", "modifier": "private static", "original_string": "private static String metadata;", "type": "String", "var_name": "metadata" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/provider/EdmServiceMetada...
{ "body": "@Test\n public void twoContainersWithOneEntitySetEachForInfo() throws Exception {\n String entitySetUriString = new URI(\"Employees\").toASCIIString();\n String entitySetUriString2 = new URI(\"Container2.Employees\").toASCIIString();\n\n List<EntitySet> entitySets = new ArrayList<EntitySet>();\n ...
{ "fields": [ { "declarator": "EDM_PROVIDER_EXEPTION = \"EdmProvider is not set.\"", "modifier": "private static final", "original_string": "private static final String EDM_PROVIDER_EXEPTION = \"EdmProvider is not set.\";", "type": "String", "var_name": "EDM_PROVIDER_EXEPTION" },...
{ "body": "@Override\n public List<EdmEntitySetInfo> getEntitySetInfos() throws ODataException {\n if(edmProvider == null){\n throw new ODataException(EDM_PROVIDER_EXEPTION);\n }\n if (entitySetInfos == null) {\n entitySetInfos = new ArrayList<EdmEntitySetInfo>();\n\n if (schemas == null) {\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_304
{ "fields": [ { "declarator": "ava", "modifier": "private final", "original_string": "private final BeanPropertyAccess ava;", "type": "BeanPropertyAccess", "var_name": "ava" } ], "file": "odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/od...
{ "body": "@Test\n public void getMappingValue() throws Exception {\n\n SimpleEntity data = new SimpleEntity();\n data.myMappedProperty = \"mapped property value\";\n EdmMapping mapping = mockMapping(\"getMyMappedProperty\");\n\n Object value = ava.getMappingValue(data, mapping);\n\n Assert.assertEqua...
{ "fields": [], "file": "odata2-annotation-processor/annotation-processor-core/src/main/java/org/apache/olingo/odata2/annotation/processor/core/datasource/BeanPropertyAccess.java", "identifier": "BeanPropertyAccess", "interfaces": "implements ValueAccess", "methods": [ { "class_method_signature": "B...
{ "body": "@Override\n public <T> Object getMappingValue(final T data, final EdmMapping mapping) throws ODataException {\n if (mapping != null && mapping.getMediaResourceMimeTypeKey() != null) {\n return getValue(data, mapping.getMediaResourceMimeTypeKey());\n }\n return null;\n }", "class_method_si...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_754
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test\n public void ignoringValidation() throws Exception {\n final String xml = \"<Name xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">TooLongName</Name>\";\n EdmProperty property = (EdmProperty) MockFacade.getMockEdm().getEntityType(\"RefScenario\", \"Team\")\n .getProperty(\"Name\");\n ...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readProperty(reader, EntityInfoAggregator.create(property), readProperties);\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_191
{ "fields": [ { "declarator": "objAssociation = null", "modifier": "private", "original_string": "private JPAEdmAssociation objAssociation = null;", "type": "JPAEdmAssociation", "var_name": "objAssociation" }, { "declarator": "ASSOCIATION_NAME = \"SalesOrderHeader_Strin...
{ "body": "@Test\n public void testGetBuilder() {\n assertNotNull(objAssociation.getBuilder());\n }", "class_method_signature": "JPAEdmAssociationTest.testGetBuilder()", "constructor": false, "full_signature": "@Test public void testGetBuilder()", "identifier": "testGetBuilder", "invocations": [ "a...
{ "fields": [ { "declarator": "associationEndView", "modifier": "private", "original_string": "private JPAEdmAssociationEndView associationEndView;", "type": "JPAEdmAssociationEndView", "var_name": "associationEndView" }, { "declarator": "currentAssociation", "mod...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmAssociationBuilder();\n }\n return builder;\n }", "class_method_signature": "JPAEdmAssociation.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBuilder getBuild...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_78
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testGetJPAEdmMappingModel() {\n assertNotNull(objJPAEdmMappingModelServiceTest.getJPAEdmMappingModel());\n }", "class_method_signature": "JPAEdmMappingModelServiceTest.testGetJPAEdmMappingModel()", "constructor": false, "full_signature": "@Test public void testGetJPAEdmMappin...
{ "fields": [ { "declarator": "mappingModelExists = true", "modifier": "", "original_string": "boolean mappingModelExists = true;", "type": "boolean", "var_name": "mappingModelExists" }, { "declarator": "mappingModel", "modifier": "private", "original_string...
{ "body": "@Override\n public JPAEdmMappingModel getJPAEdmMappingModel() {\n return mappingModel;\n }", "class_method_signature": "JPAEdmMappingModelService.getJPAEdmMappingModel()", "constructor": false, "full_signature": "@Override public JPAEdmMappingModel getJPAEdmMappingModel()", "identifier": "getJ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_938
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test\n public void complexPropertyNull() throws Exception {\n final String locationProperty = \"{\\\"Location\\\":null}\";\n JsonReader reader = prepareReader(locationProperty);\n final EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties);\n }", "clas...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_892
{ "fields": [ { "declarator": "NAMESPACE = \"http://www.foo.bar/Data\"", "modifier": "private static final", "original_string": "private static final String NAMESPACE = \"http://www.foo.bar/Data\";", "type": "String", "var_name": "NAMESPACE" }, { "declarator": "PREFIX =...
{ "body": "@Test\n public void testServiceDocument3() throws IOException, EntityProviderException {\n AtomServiceDocumentConsumer svcDocumentParser = new AtomServiceDocumentConsumer();\n ServiceDocument svcDocument = svcDocumentParser.readServiceDokument(createStreamReader(\"/serviceDocExample.xml\"));\n as...
{ "fields": [ { "declarator": "currentHandledStartTagName", "modifier": "private", "original_string": "private String currentHandledStartTagName;", "type": "String", "var_name": "currentHandledStartTagName" }, { "declarator": "DEFAULT_PREFIX = \"\"", "modifier": "...
{ "body": "public ServiceDocumentImpl readServiceDokument(final XMLStreamReader reader) throws EntityProviderException {\n AtomInfoImpl atomInfo = new AtomInfoImpl();\n ServiceDocumentImpl serviceDocument = new ServiceDocumentImpl();\n List<Workspace> workspaces = new ArrayList<Workspace>();\n List<Extens...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_97
{ "fields": [ { "declarator": "edmProvider", "modifier": "private static", "original_string": "private static ODataJPAEdmProvider edmProvider;", "type": "ODataJPAEdmProvider", "var_name": "edmProvider" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/oling...
{ "body": "@Test\n public void testGetODataJPAContext() {\n String pUnitName = edmProvider.getODataJPAContext().getPersistenceUnitName();\n assertEquals(\"salesorderprocessing\", pUnitName);\n }", "class_method_signature": "ODataJPAEdmProviderTest.testGetODataJPAContext()", "constructor": false, "full_s...
{ "fields": [ { "declarator": "oDataJPAContext", "modifier": "private", "original_string": "private ODataJPAContext oDataJPAContext;", "type": "ODataJPAContext", "var_name": "oDataJPAContext" }, { "declarator": "jpaEdmModel", "modifier": "private", "original...
{ "body": "public ODataJPAContext getODataJPAContext() {\n return oDataJPAContext;\n }", "class_method_signature": "ODataJPAEdmProvider.getODataJPAContext()", "constructor": false, "full_signature": "public ODataJPAContext getODataJPAContext()", "identifier": "getODataJPAContext", "invocations": [], "...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_484
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readEntryNullProperty() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n final String content = EMPLOYEE_1_XML.replace(\"<d:EntryDate>1999-01-01T00:00:00</d:EntryDate>\",\n \"<d:EntryDate...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_607
{ "fields": [ { "declarator": "metadata", "modifier": "private static", "original_string": "private static String metadata;", "type": "String", "var_name": "metadata" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/provider/EdmServiceMetada...
{ "body": "@Test\n public void getEntitySetInfosForEmptyEdmProviderSchemas() throws Exception {\n List<Schema> schemas = new ArrayList<Schema>();\n\n EdmProvider edmProvider = mock(EdmProvider.class);\n when(edmProvider.getSchemas()).thenReturn(schemas);\n\n EdmServiceMetadata serviceMetadata = new EdmSe...
{ "fields": [ { "declarator": "EDM_PROVIDER_EXEPTION = \"EdmProvider is not set.\"", "modifier": "private static final", "original_string": "private static final String EDM_PROVIDER_EXEPTION = \"EdmProvider is not set.\";", "type": "String", "var_name": "EDM_PROVIDER_EXEPTION" },...
{ "body": "@Override\n public List<EdmEntitySetInfo> getEntitySetInfos() throws ODataException {\n if(edmProvider == null){\n throw new ODataException(EDM_PROVIDER_EXEPTION);\n }\n if (entitySetInfos == null) {\n entitySetInfos = new ArrayList<EdmEntitySetInfo>();\n\n if (schemas == null) {\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_257
{ "fields": [ { "declarator": "annotationHelper", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper;", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "odata2-annotation-processor/annotation-processor-core...
{ "body": "@Test\n public void extractEntityTypeNameViaNavigationField() throws Exception {\n Field field = NavigationAnnotated.class.getDeclaredField(\"navigationPropertyDefault\");\n EdmNavigationProperty enp = field.getAnnotation(EdmNavigationProperty.class);\n\n String name = annotationHelper.extractEnt...
{ "fields": [ { "declarator": "DEFAULT_CONTAINER_NAME = \"DefaultContainer\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_CONTAINER_NAME = \"DefaultContainer\";", "type": "String", "var_name": "DEFAULT_CONTAINER_NAME" } ], "file"...
{ "body": "public String extractEntityTypeName(final EdmNavigationProperty enp, final Class<?> fallbackClass) {\n Class<?> entityTypeClass = enp.toType();\n return extractEntityTypeName(entityTypeClass == Object.class ? fallbackClass : entityTypeClass);\n }", "class_method_signature": "AnnotationHelper.extra...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_742
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test\n public void readIntegerProperty() throws Exception {\n String xml = \"<Age xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">67</Age>\";\n XMLStreamReader reader = createReaderForTest(xml, true);\n final EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getEntityType(\"R...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readProperty(reader, EntityInfoAggregator.create(property), readProperties);\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_596
{ "fields": [ { "declarator": "annotationsProvider", "modifier": "private", "original_string": "private EdmAnnotationsImplProv annotationsProvider;", "type": "EdmAnnotationsImplProv", "var_name": "annotationsProvider" }, { "declarator": "annotationsProviderWithNullEemen...
{ "body": "@Test\n public void testAttributeNull() {\n EdmAnnotationAttribute attribute =\n annotationsProvider.getAnnotationAttribute(\"attributeNameWrong\", \"namespaceWrong\");\n assertNull(attribute);\n }", "class_method_signature": "EdmAnnotationsImplProvTest.testAttributeNull()", "constructor...
{ "fields": [ { "declarator": "annotationAttributes", "modifier": "private", "original_string": "private List<EdmAnnotationAttribute> annotationAttributes;", "type": "List<EdmAnnotationAttribute>", "var_name": "annotationAttributes" }, { "declarator": "annotationElement...
{ "body": "@Override\n public EdmAnnotationAttribute getAnnotationAttribute(final String name, final String namespace) {\n if (annotationAttributes != null) {\n for (EdmAnnotationAttribute attribute : annotationAttributes) {\n if (attribute.getName().equals(name) && attribute.getNamespace().equals(nam...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_579
{ "fields": [ { "declarator": "BASE64_ENCODING = \"BASE64\"", "modifier": "private static final", "original_string": "private static final String BASE64_ENCODING = \"BASE64\";", "type": "String", "var_name": "BASE64_ENCODING" } ], "file": "odata2-lib/odata-core/src/test/java/...
{ "body": "@Test\n public void testValidateContentTypeMultipartMixed() throws BatchException {\n List<String> contentTypeValues =\n Arrays.asList(new String[] { HttpContentType.MULTIPART_MIXED + \"; boundary=batch_32332_32323_fdsf\" });\n final Header headers = makeHeaders(HttpHeaders.CONTENT_TYPE, cont...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/batch/v2/BatchTransformatorCommon.java", "identifier": "BatchTransformatorCommon", "interfaces": "", "methods": [ { "class_method_signature": "BatchTransformatorCommon.validateContentType(final Header headers)...
{ "body": "public static void validateContentType(final Header headers) throws BatchException {\n List<String> contentTypes = headers.getHeaders(HttpHeaders.CONTENT_TYPE);\n\n if (contentTypes.isEmpty()) {\n throw new BatchException(BatchException.MISSING_CONTENT_TYPE);\n }\n if (!headers.isHeaderMat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_129
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private ODataEntityParser parser;", "type": "ODataEntityParser", "var_name": "parser" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/OData...
{ "body": "@Test\n public void testParseURISegmentInvalidEntityType() {\n try {\n parser = new ODataEntityParser(mock(\"JPATypeMockInvalid(2)\"));\n parser.parseURISegment(0, 1);\n fail(\"Exception Expected\");\n } catch (ODataJPARuntimeException e) {\n assertEquals(true, true);\n }\n }...
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ODataJPAContext context;", "type": "ODataJPAContext", "var_name": "context" }, { "declarator": "edm", "modifier": "private", "original_string": "private Edm edm;", ...
{ "body": "public final UriInfo parseURISegment(final int segmentFromIndex, final int segmentToIndex)\n throws ODataJPARuntimeException {\n UriInfo uriInfo = null;\n if (segmentFromIndex == segmentToIndex || segmentFromIndex > segmentToIndex || segmentFromIndex < 0) {\n return uriInfo;\n }\n try...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_980
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testFunctionImportEntityOrderChange() throws XMLStreamException, EntityProviderException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:Dat...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1021
{ "fields": [ { "declarator": "EMPLOYEE_1_XML =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" +\n \"<entry xmlns=\\\"\" + Edm.NAMESPACE_ATOM_2005 + \"\\\"\" +\n \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\"\" +\n \" xmlns:d=\\\"\" + Edm.NAMESPACE_D_2007_08 +...
{ "body": "@Test\n public void readDeltaFeed() throws Exception {\n\n final String contentType = ContentType.APPLICATION_ATOM_XML_FEED.toContentTypeString();\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n InputStream content = getFileAsStream(...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/ProviderFacadeImpl.java", "identifier": "ProviderFacadeImpl", "interfaces": "implements EntityProviderInterface", "methods": [ { "class_method_signature": "ProviderFacadeImpl.create()", "constructor":...
{ "body": "@Override\n public ODataDeltaFeed readDeltaFeed(final String contentType, final EdmEntitySet entitySet,\n final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n return create(contentType).readDeltaFeed(entitySet, content, properties);\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_200
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraintRole = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraintRole objJPAEdmReferentialConstraintRole = null;", "type": "JPAEdmReferentialConstraintRole", "var_name": "objJPAEdmRe...
{ "body": "@Test\n public void testGetRoleTypePrincipal() {\n assertEquals(objJPAEdmReferentialConstraintRole.getRoleType(), RoleType.PRINCIPAL);\n }", "class_method_signature": "JPAEdmReferentialConstraintRoleTest.testGetRoleTypePrincipal()", "constructor": false, "full_signature": "@Test public void test...
{ "fields": [ { "declarator": "firstBuild = true", "modifier": "private", "original_string": "private boolean firstBuild = true;", "type": "boolean", "var_name": "firstBuild" }, { "declarator": "entityTypeView", "modifier": "private", "original_string": "pri...
{ "body": "@Override\n public RoleType getRoleType() {\n return roleType;\n }", "class_method_signature": "JPAEdmReferentialConstraintRole.getRoleType()", "constructor": false, "full_signature": "@Override public RoleType getRoleType()", "identifier": "getRoleType", "invocations": [], "modifiers": "@...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_650
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/provider/EdmxProviderTest.java", "identifier": "EdmxProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void nullAnnotationsAtFunctionImportParameter() throws Exception {\n Edm edm = createEdm();\n assertNotNull(edm);\n EdmAnnotations annotations =\n edm.getDefaultEntityContainer().getFunctionImport(\"EmployeeSearch\").getParameter(\"q\").getAnnotations();\n checkNullAnnota...
{ "fields": [ { "declarator": "dataServices", "modifier": "private", "original_string": "private DataServices dataServices;", "type": "DataServices", "var_name": "dataServices" } ], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmxPr...
{ "body": "@Override\n public FunctionImport getFunctionImport(final String entityContainer, final String name) throws ODataException {\n for (Schema schema : dataServices.getSchemas()) {\n for (EntityContainer container : schema.getEntityContainers()) {\n if (container.getName().equals(entityContaine...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_345
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testCustom() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n XmlMetadataDeserializer parser = new XmlMetadataDeserializer();\n InputStream reader = createStreamReader(customxml);\n EdmDataServices result = parser.readMetad...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_715
{ "fields": [ { "declarator": "STRING_CONTENT = \"StringContent\"", "modifier": "private static final", "original_string": "private static final String STRING_CONTENT = \"StringContent\";", "type": "String", "var_name": "STRING_CONTENT" }, { "declarator": "STRING_CONTEN...
{ "body": "@Test\n public void jsonStringContent() throws Exception {\n ODataResponse response = mock(ODataResponse.class);\n when(response.getEntity()).thenReturn(STRING_CONTENT);\n when(response.getContentHeader()).thenReturn(HttpContentType.APPLICATION_OCTET_STREAM);\n assertEquals(STRING_CONTENT_JSON...
{ "fields": [ { "declarator": "response", "modifier": "private final", "original_string": "private final ODataResponse response;", "type": "ODataResponse", "var_name": "response" }, { "declarator": "serviceRoot", "modifier": "private final", "original_string...
{ "body": "@Override\n public void appendJson(final JsonStreamWriter jsonStreamWriter) throws IOException {\n if (isJson) {\n jsonStreamWriter.unquotedValue(getContentString());\n } else if (isText) {\n jsonStreamWriter.stringValue(getContentString());\n } else {\n jsonStreamWriter.stringValu...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_502
{ "fields": [ { "declarator": "JSON_ERROR_DOCUMENT_SIMPLE = \"{\\\"error\\\":{\\\"code\\\":\\\"ErrorCode\\\",\" +\n \"\\\"message\\\":{\\\"lang\\\":\\\"en-US\\\",\\\"value\\\":\\\"Message\\\"}}}\"", "modifier": "private static final", "original_string": "private static final String JSON_ERR...
{ "body": "@Test(expected = EntityProviderException.class)\n public void invalidJson() throws EntityProviderException {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_INVALID_JSON);\n try {\n jedc.readError(in);\n fail(\"Expected exception was not thrown\");\n } catch (EntityProvi...
{ "fields": [ { "declarator": "DEFAULT_CHARSET = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_CHARSET = \"UTF-8\";", "type": "String", "var_name": "DEFAULT_CHARSET" }, { "declarator": "FOUND = \"' found.\"", ...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n JsonReader reader = createJsonReader(errorDocument);\n try {\n return parseJson(reader);\n } catch (IOException e) {\n throw new EntityProviderException(\n EntityProviderExcept...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_152
{ "fields": [ { "declarator": "objJPAEdmEntitySet", "modifier": "private static", "original_string": "private static JPAEdmEntitySet objJPAEdmEntitySet;", "type": "JPAEdmEntitySet", "var_name": "objJPAEdmEntitySet" }, { "declarator": "objJPAEdmEntitySetTest", "mod...
{ "body": "@Test\n public void testGetConsistentEntitySetList() {\n assertTrue(objJPAEdmEntitySet.getConsistentEdmEntitySetList().size() > 0);\n }", "class_method_signature": "JPAEdmEntitySetTest.testGetConsistentEntitySetList()", "constructor": false, "full_signature": "@Test public void testGetConsistent...
{ "fields": [ { "declarator": "currentEntitySet = null", "modifier": "private", "original_string": "private EntitySet currentEntitySet = null;", "type": "EntitySet", "var_name": "currentEntitySet" }, { "declarator": "consistentEntitySetList = null", "modifier": "p...
{ "body": "@Override\n public List<EntitySet> getConsistentEdmEntitySetList() {\n return consistentEntitySetList;\n }", "class_method_signature": "JPAEdmEntitySet.getConsistentEdmEntitySetList()", "constructor": false, "full_signature": "@Override public List<EntitySet> getConsistentEdmEntitySetList()", ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_851
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test(expected = EntityProviderException.class)\n public void readEntryNullId() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n final String content = EMPLOYEE_1_XML.replace(\"<d:EmployeeId>1</d:EmployeeId>\",\n ...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_914
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test\n public void simplePropertyOnOpenReader() throws Exception {\n String simplePropertyJson = \"{\\\"Name\\\":\\\"Team 1\\\"}\";\n JsonReader reader = prepareReader(simplePropertyJson);\n EdmProperty edmProperty =\n (EdmProperty) MockFacade.getMockEdm().getDefaultEntityContainer().getE...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "protected Object readPropertyValue(final JsonReader reader, final EntityPropertyInfo entityPropertyInfo,\n final Object typeMapping, final EntityProviderReadProperties readProperties) throws EntityProviderException {\n try {\n return entityPropertyInfo.isComplex() ?\n readComplexPrope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_54
{ "fields": [ { "declarator": "jpaEntity = null", "modifier": "private", "original_string": "private JPAEntity jpaEntity = null;", "type": "JPAEntity", "var_name": "jpaEntity" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/cor...
{ "body": "@Test\n public void testCreateODataEntryPropertyWithOutCallBack() {\n try {\n EdmEntitySet edmEntitySet = EdmMockUtilV2.mockEdmEntitySet(JPATypeMock.ENTITY_NAME, false);\n EdmEntityType edmEntityType = edmEntitySet.getEntityType();\n\n jpaEntity = new JPAEntity(edmEntityType, edmEntitySe...
{ "fields": [ { "declarator": "jpaEntity = null", "modifier": "private", "original_string": "private Object jpaEntity = null;", "type": "Object", "var_name": "jpaEntity" }, { "declarator": "parentJPAEntity = null", "modifier": "private", "original_string": "...
{ "body": "public void create(final ODataEntry oDataEntry) throws ODataJPARuntimeException {\n\n if (oDataEntry == null) {\n throw ODataJPARuntimeException\n .throwException(ODataJPARuntimeException.GENERAL, null);\n }\n try {\n EntryMetadata entryMetadata = oDataEntry.getMetadata();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_447
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readContentOnlyEmployee() throws Exception {\n // prepare\n String content = readFile(\"EmployeeContentOnly.xml\");\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream contentBody = createContentAsStream(...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_294
{ "fields": [], "file": "odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationValueAccessTest.java", "identifier": "AnnotationValueAccessTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void setMappingValueNullValue() throws Exception {\n AnnotationValueAccess ava = new AnnotationValueAccess();\n SimpleEntity data = new SimpleEntity();\n data.myMappedProperty = \"mapped property value\";\n EdmMapping mapping = mockMapping(\"MyMappedProperty\");\n\n Object va...
{ "fields": [ { "declarator": "annotationHelper = new AnnotationHelper()", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "oda...
{ "body": "@Override\n public <T, V> void setMappingValue(final T data, final EdmMapping mapping, final V value) throws ODataException {\n if (mapping != null && mapping.getMediaResourceMimeTypeKey() != null) {\n annotationHelper.setValueForProperty(data, mapping.getMediaResourceMimeTypeKey(), value);\n }...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_781
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonLinkConsumerTest.java", "identifier": "JsonLinkConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test\n public void linksWithD() throws Exception {\n final String links = \"{\\\"d\\\":[{\\\"uri\\\":\\\"http://somelink\\\"}]}\";\n JsonReader reader = new JsonReader(new InputStreamReader(createContentAsStream(links)));\n assertEquals(Arrays.asList(\"http://somelink\"), new JsonLinkConsumer()....
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonLinkConsumer.java", "identifier": "JsonLinkConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonLinkConsumer.readLink(final JsonReader reader, final EdmEntitySet entitySet...
{ "body": "public List<String> readLinks(final JsonReader reader, final EdmEntitySet entitySet) throws EntityProviderException {\n List<String> links = null;\n int openedObjects = 0;\n\n try {\n String nextName;\n if (reader.peek() == JsonToken.BEGIN_ARRAY) {\n nextName = FormatJson.RESULTS;...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_806
{ "fields": [ { "declarator": "XML_ERROR_DOCUMENT_SIMPLE =\n \"<?xml version='1.0' encoding='UTF-8'?>\\n\" +\n \"<error xmlns=\\\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\\\">\\n\" +\n \"\\t<code>ErrorCode</code>\\n\" +\n \"\\t<message xml:lang=\\\"en-US...
{ "body": "@Test\n public void innerErrorComplexMoreCharacters() throws Exception {\n String innerErrorText = \"\\n\\t<firstTag>tagText</firstTag>\\n<secondTag>secondText</secondTag>\\n\";\n String innerError = \"<innererror>\" + innerErrorText + \"</innererror>\";\n String errorDocument = XML_ERROR_DOCUMEN...
{ "fields": [ { "declarator": "AVAILABLE_LOCALES = new HashMap<String, Locale>()", "modifier": "private final static", "original_string": "private final static Map<String, Locale> AVAILABLE_LOCALES = new HashMap<String, Locale>();", "type": "Map<String, Locale>", "var_name": "AVAILAB...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(errorDocument);\n return parserError(reader);\n } c...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_105
{ "fields": [ { "declarator": "edmProvider", "modifier": "private static", "original_string": "private static ODataJPAEdmProvider edmProvider;", "type": "ODataJPAEdmProvider", "var_name": "edmProvider" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/oling...
{ "body": "@Test\n public void testGetFunctionImport() {\n String functionImportName = null;\n try {\n functionImportName =\n edmProvider.getFunctionImport(\"salesorderprocessingContainer\", \"SalesOrder_FunctionImport1\").getName();\n } catch (ODataException e) {\n fail(ODataJPATestConst...
{ "fields": [ { "declarator": "oDataJPAContext", "modifier": "private", "original_string": "private ODataJPAContext oDataJPAContext;", "type": "ODataJPAContext", "var_name": "oDataJPAContext" }, { "declarator": "jpaEdmModel", "modifier": "private", "original...
{ "body": "@Override\n public FunctionImport getFunctionImport(final String entityContainer, final String name) throws ODataException {\n\n if (functionImports.containsKey(name)) {\n return functionImports.get(name);\n }\n\n EntityContainer container = null;\n if (!entityContainerInfos.containsKey(e...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_555
{ "fields": [ { "declarator": "CRLF = \"\\r\\n\"", "modifier": "private static final", "original_string": "private static final String CRLF = \"\\r\\n\";", "type": "String", "var_name": "CRLF" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/bat...
{ "body": "@Test\n public void testMultipleHeader() throws BatchException {\n String[] messageRaw = new String[] {\n \"Content-Id: 1\" + CRLF,\n \"Content-Id: 2\" + CRLF,\n \"content-type: Application/http\" + CRLF,\n \"content-transfer-encoding: Binary\" + CRLF\n };\n List<Lin...
{ "fields": [ { "declarator": "PATTERN_LAST_CRLF = Pattern.compile(\"(.*)(\\r\\n){1}( *)\", Pattern.DOTALL)", "modifier": "private static final", "original_string": "private static final Pattern PATTERN_LAST_CRLF = Pattern.compile(\"(.*)(\\r\\n){1}( *)\", Pattern.DOTALL);", "type": "Patter...
{ "body": "public static Header consumeHeaders(final List<Line> remainingMessage) throws BatchException {\n final int headerLineNumber = !remainingMessage.isEmpty() ? remainingMessage.get(0).getLineNumber() : 0;\n final Header headers = new Header(headerLineNumber);\n final Iterator<Line> iter = remainingMes...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_410
{ "fields": [ { "declarator": "expectedEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedEx" } ], "file": "odata2-lib/...
{ "body": "@Test(expected = EntityProviderException.class)\n public void complexPropertyMetadataInvalidTypeContent() throws Exception {\n String complexPropertyJson =\n \"{\\\"__metadata\\\":{\\\"type\\\":\\\"Invalid\\\"},\\\"PostalCode\\\":\\\"69124\\\",\\\"CityName\\\":\\\"Heidelberg\\\"}\";\n JsonRea...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonPropertyDeserializer.java", "identifier": "JsonPropertyDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyDeserializer.readPropertyStandalo...
{ "body": "protected Object readPropertyValue(final JsonReader reader, final EntityPropertyInfo entityPropertyInfo,\n final Object typeMapping, final DeserializerProperties readProperties)\n throws EntityProviderException {\n try {\n return entityPropertyInfo.isComplex() ?\n readComplex...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_943
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void complexPropertyMetadataInvalidTypeContent() throws Exception {\n String complexPropertyJson =\n \"{\\\"__metadata\\\":{\\\"type\\\":\\\"Invalid\\\"},\\\"PostalCode\\\":\\\"69124\\\",\\\"CityName\\\":\\\"Heidelberg\\\"}\";\n JsonRea...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "protected Object readPropertyValue(final JsonReader reader, final EntityPropertyInfo entityPropertyInfo,\n final Object typeMapping, final EntityProviderReadProperties readProperties) throws EntityProviderException {\n try {\n return entityPropertyInfo.isComplex() ?\n readComplexPrope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_739
{ "fields": [ { "declarator": "JSON_ERROR_DOCUMENT_SIMPLE = \"{\\\"error\\\":{\\\"code\\\":\\\"ErrorCode\\\",\" +\n \"\\\"message\\\":{\\\"lang\\\":\\\"en-US\\\",\\\"value\\\":\\\"Message\\\"}}}\"", "modifier": "private static final", "original_string": "private static final String JSON_ERR...
{ "body": "@Test(expected = EntityProviderException.class)\n public void invalidErrorDocumentMissingError() throws EntityProviderException {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_MISSING_ERROR);\n try {\n jedc.readError(in);\n fail(\"Expected exception was not thrown\");\n ...
{ "fields": [ { "declarator": "DEFAULT_CHARSET = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_CHARSET = \"UTF-8\";", "type": "String", "var_name": "DEFAULT_CHARSET" }, { "declarator": "AVAILABLE_LOCALES = new Ha...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n JsonReader reader = createJsonReader(errorDocument);\n try {\n return parseJson(reader);\n } catch (IOException e) {\n throw new EntityProviderException(\n EntityProviderExcept...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_693
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/commons/ContentTypeTest.java", "identifier": "ContentTypeTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test\n public void testHasWildcard() {\n assertFalse(ContentType.create(\"aaa/bbb;x=y;a\").hasWildcard());\n assertTrue(ContentType.create(\"aaa/*;x=y;a\").hasWildcard());\n assertTrue(ContentType.create(\"*/*;x=y;a\").hasWildcard());\n assertTrue(ContentType.create(\"*/*\").hasWildcard());\n...
{ "fields": [ { "declarator": "KNOWN_MIME_TYPES = new HashSet<String>()", "modifier": "private static final", "original_string": "private static final Set<String> KNOWN_MIME_TYPES = new HashSet<String>();", "type": "Set<String>", "var_name": "KNOWN_MIME_TYPES" }, { "dec...
{ "body": "public boolean hasWildcard() {\n return (MEDIA_TYPE_WILDCARD.equals(type) || MEDIA_TYPE_WILDCARD.equals(subtype));\n }", "class_method_signature": "ContentType.hasWildcard()", "constructor": false, "full_signature": "public boolean hasWildcard()", "identifier": "hasWildcard", "invocations": [...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_369
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EdmException.class)\n public void testInvalidAssociation() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmlWithInvalidAssociationSet =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.N...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_386
{ "fields": [ { "declarator": "expectedEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedEx" } ], "file": "odata2-lib/...
{ "body": "@Test(expected = EntityProviderException.class)\n public void simplePropertyNullValueNotAllowed() throws Exception {\n JsonReader reader = prepareReader(\"{\\\"Age\\\":null}\");\n EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getEntityType(\"RefScenario\", \"Employee\").getPr...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonPropertyDeserializer.java", "identifier": "JsonPropertyDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyDeserializer.readPropertyStandalo...
{ "body": "public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,\n final DeserializerProperties readProperties) throws EntityProviderException {\n return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties);\n }", "class_meth...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_543
{ "fields": [ { "declarator": "DEFAULT_LANGUAGE = new Locale(\"test\", \"foo\")", "modifier": "private static final", "original_string": "private static final Locale DEFAULT_LANGUAGE = new Locale(\"test\", \"foo\");", "type": "Locale", "var_name": "DEFAULT_LANGUAGE" } ], "fil...
{ "body": "@Test\n public void testTwoParametersWithTwoAddContent() throws Exception {\n MessageReference context =\n MessageReference.create(ODataMessageException.class, \"TWO_REPLACEMENTS\").addContent(\"first\").addContent(\n \"second\");\n Message ms = MessageService.getMessage(DEFAULT_LA...
{ "fields": [ { "declarator": "BUNDLE_NAME = \"i18n\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_NAME = \"i18n\";", "type": "String", "var_name": "BUNDLE_NAME" }, { "declarator": "resourceBundle", "modifier": "priv...
{ "body": "public static Message getMessage(final Locale language, final MessageReference context) {\n Object[] contentAsArray = context.getContent().toArray(new Object[0]);\n return getMessage(language, context.getKey(), contentAsArray);\n }", "class_method_signature": "MessageService.getMessage(final Local...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_113
{ "fields": [ { "declarator": "jpqlSelectStatementBuilder", "modifier": "private", "original_string": "private JPQLSelectStatementBuilder jpqlSelectStatementBuilder;", "type": "JPQLSelectStatementBuilder", "var_name": "jpqlSelectStatementBuilder" } ], "file": "odata2-jpa-proc...
{ "body": "@Test\n public void testBuildSimpleQuery() throws EdmException, ODataJPARuntimeException {\n OrderByExpression orderByExpression = EasyMock.createMock(OrderByExpression.class);\n JPQLSelectContext jpqlSelectContextImpl = createSelectContext(orderByExpression, null);\n jpqlSelectStatementBuilder =...
{ "fields": [ { "declarator": "jpqlStatement", "modifier": "", "original_string": "JPQLStatement jpqlStatement;", "type": "JPQLStatement", "var_name": "jpqlStatement" }, { "declarator": "context", "modifier": "private", "original_string": "private JPQLSelect...
{ "body": "@Override\n public JPQLStatement build() throws ODataJPARuntimeException {\n jpqlStatement = createStatement(createJPQLQuery());\n this.context.setJPQLStatement(jpqlStatement.toString());\n return jpqlStatement;\n\n }", "class_method_signature": "JPQLSelectStatementBuilder.build()", "constru...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_810
{ "fields": [ { "declarator": "XML_ERROR_DOCUMENT_SIMPLE =\n \"<?xml version='1.0' encoding='UTF-8'?>\\n\" +\n \"<error xmlns=\\\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\\\">\\n\" +\n \"\\t<code>ErrorCode</code>\\n\" +\n \"\\t<message xml:lang=\\\"en-US...
{ "body": "@Test(expected = EntityProviderException.class)\n public void invalidErrorDocumentUnknown() throws EntityProviderException {\n InputStream in = StringHelper.encapsulate(XML_ERROR_DOCUMENT_UNKNOWN_CONTENT);\n try {\n xedc.readError(in);\n fail(\"Expected exception was not thrown\");\n } ...
{ "fields": [ { "declarator": "AVAILABLE_LOCALES = new HashMap<String, Locale>()", "modifier": "private final static", "original_string": "private final static Map<String, Locale> AVAILABLE_LOCALES = new HashMap<String, Locale>();", "type": "Map<String, Locale>", "var_name": "AVAILAB...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(errorDocument);\n return parserError(reader);\n } c...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_955
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void collectionWithTrailing() throws Exception {\n final EntityPropertyInfo info = EntityInfoAggregator.create(\n MockFacade.getMockEdm().getDefaultEntityContainer().getFunctionImport(\"AllUsedRoomIds\"));\n new JsonPropertyConsumer().r...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "public List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n final Object typeMapping = readProperties == null ? null :\n readProperties.getTypeMappings().get(propertyInfo.getNa...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_15
{ "fields": [ { "declarator": "builder = null", "modifier": "", "original_string": "JPAQueryBuilder builder = null;", "type": "JPAQueryBuilder", "var_name": "builder" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/...
{ "body": "@Test\n public void buildQueryGetEntitySetTestWithNoNormalizationWithSubstringof() {\n EdmMapping mapping = (EdmMapping) mockNormalizedValueMapping();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) mockURIInfoForEntitySet(mapping, \"substringof\")));\n } catch (ODataException e)...
{ "fields": [ { "declarator": "em = null", "modifier": "private", "original_string": "private EntityManager em = null;", "type": "EntityManager", "var_name": "em" }, { "declarator": "pageSize = 0", "modifier": "private", "original_string": "private int pageS...
{ "body": "public JPAQueryInfo build(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n try {\n ODataJPATombstoneEntityListener listener = getODataJPATombstoneEntityListener((UriInfo) uriInfo);\n if (listener != null...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_406
{ "fields": [ { "declarator": "expectedEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedEx" } ], "file": "odata2-lib/...
{ "body": "@Test(expected = EntityProviderException.class)\n public void complexPropertyNullValueNotAllowed() throws Exception {\n final String locationProperty = \"{\\\"Location\\\":null}\";\n JsonReader reader = prepareReader(locationProperty);\n EdmProperty property =\n (EdmProperty) MockFacade.ge...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonPropertyDeserializer.java", "identifier": "JsonPropertyDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyDeserializer.readPropertyStandalo...
{ "body": "public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,\n final DeserializerProperties readProperties) throws EntityProviderException {\n return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties);\n }", "class_meth...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_685
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/commons/ContentTypeTest.java", "identifier": "ContentTypeTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testFormatParserInvalidParameterWithLineFeed() {\n ContentType.create(\"aaa/bbb;x=\\ny;a\");\n }", "class_method_signature": "ContentTypeTest.testFormatParserInvalidParameterWithLineFeed()", "constructor": false, "full_signature": "@...
{ "fields": [ { "declarator": "KNOWN_MIME_TYPES = new HashSet<String>()", "modifier": "private static final", "original_string": "private static final Set<String> KNOWN_MIME_TYPES = new HashSet<String>();", "type": "Set<String>", "var_name": "KNOWN_MIME_TYPES" }, { "dec...
{ "body": "public static ContentType create(final String type, final String subtype) {\n return new ContentType(type, subtype, mapToODataFormat(type, subtype), null);\n }", "class_method_signature": "ContentType.create(final String type, final String subtype)", "constructor": false, "full_signature": "publi...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_390
{ "fields": [ { "declarator": "expectedEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedEx" } ], "file": "odata2-lib/...
{ "body": "@Test\n public void simplePropertyWithStringToLongMappingStandalone() throws Exception {\n String simplePropertyJson = \"{\\\"d\\\":{\\\"Age\\\":67}}\";\n JsonReader reader = prepareReader(simplePropertyJson);\n final EdmProperty edmProperty =\n (EdmProperty) MockFacade.getMockEdm().getEnt...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonPropertyDeserializer.java", "identifier": "JsonPropertyDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyDeserializer.readPropertyStandalo...
{ "body": "public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,\n final DeserializerProperties readProperties) throws EntityProviderException {\n return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties);\n }", "class_meth...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_847
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void testReadEntry() throws Exception {\n // prepare\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream contentBody = createContentAsStream(EMPLOYEE_1_XML);\n\n // execute\...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_144
{ "fields": [ { "declarator": "objJPAEdmSchemaTest", "modifier": "private", "original_string": "private JPAEdmSchemaTest objJPAEdmSchemaTest;", "type": "JPAEdmSchemaTest", "var_name": "objJPAEdmSchemaTest" }, { "declarator": "objJPAEdmSchema", "modifier": "private...
{ "body": "@Test\n public void testGetJPAEdmEntityContainerView() {\n assertNull(objJPAEdmSchema.getJPAEdmEntityContainerView());\n }", "class_method_signature": "JPAEdmSchemaTest.testGetJPAEdmEntityContainerView()", "constructor": false, "full_signature": "@Test public void testGetJPAEdmEntityContainerVie...
{ "fields": [ { "declarator": "schema", "modifier": "private", "original_string": "private Schema schema;", "type": "Schema", "var_name": "schema" }, { "declarator": "complexTypeView", "modifier": "private", "original_string": "private JPAEdmComplexTypeView ...
{ "body": "@Override\n public JPAEdmEntityContainerView getJPAEdmEntityContainerView() {\n return entityContainerView;\n }", "class_method_signature": "JPAEdmSchema.getJPAEdmEntityContainerView()", "constructor": false, "full_signature": "@Override public JPAEdmEntityContainerView getJPAEdmEntityContainerV...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_514
{ "fields": [ { "declarator": "exceptionMapper", "modifier": "", "original_string": "ODataExceptionMapperImpl exceptionMapper;", "type": "ODataExceptionMapperImpl", "var_name": "exceptionMapper" }, { "declarator": "uri", "modifier": "", "original_string": "U...
{ "body": "@Test\n public void dollarFormatAtom() throws Exception {\n MultivaluedMap<String, String> queryParameters = new MultivaluedHashMap<String, String>();\n queryParameters.putSingle(\"$format\", \"xml\");\n when(exceptionMapper.uriInfo.getQueryParameters()).thenReturn(queryParameters);\n\n Respon...
{ "fields": [ { "declarator": "DOLLAR_FORMAT = \"$format\"", "modifier": "private static final", "original_string": "private static final String DOLLAR_FORMAT = \"$format\";", "type": "String", "var_name": "DOLLAR_FORMAT" }, { "declarator": "DOLLAR_FORMAT_JSON = \"json\...
{ "body": "@Override\n public Response toResponse(final Exception exception) {\n ODataResponse response;\n try {\n if (exception instanceof WebApplicationException) {\n response = handleWebApplicationException(exception);\n } else {\n response = handleException(exception);\n }\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_451
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readContentOnlyEmployeeWithNavigationLink() throws Exception {\n // prepare\n String content = readFile(\"EmployeeContentOnlyWithNavigationLink.xml\");\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream ...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_42
{ "fields": [ { "declarator": "STR_LOCAL_URI = \"http://localhost:8080/org.apache.olingo.odata2.processor.ref.web/\"", "modifier": "private static final", "original_string": "private static final String STR_LOCAL_URI = \"http://localhost:8080/org.apache.olingo.odata2.processor.ref.web/\";", ...
{ "body": "@Test\n public void testProcessGetEntitySetLinksUriInfo() {\n try {\n Assert.assertNotNull(objJPAProcessorImpl.process(getEntitySetLinksUriInfo()));\n } catch (ODataJPAModelException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_M...
{ "fields": [ { "declarator": "DELTATOKEN = \"!deltatoken\"", "modifier": "private static final", "original_string": "private static final String DELTATOKEN = \"!deltatoken\";", "type": "String", "var_name": "DELTATOKEN" }, { "declarator": "oDataJPAContext", "modi...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Object> process(final GetFunctionImportUriInfo uriParserResultView)\n throws ODataJPAModelException, ODataJPARuntimeException {\n\n JPAMethodContext jpaMethodContext = JPAMethodContext.createBuilder(\n JPQLContextType.FUNCTION, uri...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_902
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonFeedConsumerTest.java", "identifier": "JsonFeedConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void countButNoResults() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"__count\\\":\\\"1\\\"...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_282
{ "fields": [], "file": "odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationValueAccessTest.java", "identifier": "AnnotationValueAccessTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getPropertyValue() throws ODataException {\n AnnotationValueAccess ava = new AnnotationValueAccess();\n SimpleEntity data = new SimpleEntity();\n data.name = \"A Name\";\n EdmProperty property = mockProperty(\"Name\");\n\n Object value = ava.getPropertyValue(data, proper...
{ "fields": [ { "declarator": "annotationHelper = new AnnotationHelper()", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "oda...
{ "body": "@Override\n public <T> Object getPropertyValue(final T data, final EdmProperty property) throws ODataException {\n if (data == null) {\n return null;\n } else if (annotationHelper.isEdmAnnotated(data)) {\n return annotationHelper.getValueForProperty(data, property.getName());\n }\n t...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_778
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonLinkConsumerTest.java", "identifier": "JsonLinkConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void trailingGarbage() throws Exception {\n final String link = \"{\\\"uri\\\":\\\"http://somelink\\\"},{\\\"a\\\":null}\";\n JsonReader reader = new JsonReader(new InputStreamReader(createContentAsStream(link)));\n new JsonLinkConsumer().r...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonLinkConsumer.java", "identifier": "JsonLinkConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonLinkConsumer.readLink(final JsonReader reader, final EdmEntitySet entitySet...
{ "body": "public String readLink(final JsonReader reader, final EdmEntitySet entitySet) throws EntityProviderException {\n try {\n String result;\n reader.beginObject();\n String nextName = reader.nextName();\n final boolean wrapped = FormatJson.D.equals(nextName);\n if (wrapped) {\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_328
{ "fields": [ { "declarator": "listsProcessor", "modifier": "private", "original_string": "private ListsProcessor listsProcessor;", "type": "ListsProcessor", "var_name": "listsProcessor" } ], "file": "odata2-lib/odata-ref/src/test/java/org/apache/olingo/odata2/ref/processor/L...
{ "body": "@Test\n public void testSkipAndSkiptoken() {\n String url1 = \"Rooms?$orderby=Seats%20desc&$skiptoken=12&$skip=000000&$top=200\";\n String result = listsProcessor.percentEncodeNextLink(url1);\n Assert.assertEquals(\"Rooms?$orderby=Seats%20desc&$top=200\", result);\n\n String url2 = \"Rooms?$or...
{ "fields": [ { "declarator": "SERVER_PAGING_SIZE = 100", "modifier": "private static final", "original_string": "private static final int SERVER_PAGING_SIZE = 100;", "type": "int", "var_name": "SERVER_PAGING_SIZE" }, { "declarator": "valueAccess", "modifier": "pr...
{ "body": "String percentEncodeNextLink(final String link) {\n if (link == null) {\n return null;\n }\n\n return link.replaceAll(\"\\\\$skiptoken=.+?(?:&|$)\", \"\")\n .replaceAll(\"\\\\$skip=.+?(?:&|$)\", \"\")\n .replaceFirst(\"(?:\\\\?|&)$\", \"\"); // Remove potentially trailing \"?\" ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_797
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlFeedConsumerTest.java", "identifier": "XmlFeedConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void readEmployeesFeedWithInlineCountNegative() throws Exception {\n // prepare\n String content = readFile(\"feed_employees_full.xml\").replace(\"<m:count>6</m:count>\", \"<m:count>-1</m:count>\");\n assertNotNull(content);\n\n EdmEntit...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlFeedConsumer.java", "identifier": "XmlFeedConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlFeedConsumer.readFeed(final XMLStreamReader reader, final EntityInfoAggregator...
{ "body": "public ODataDeltaFeed readFeed(final XMLStreamReader reader, final EntityInfoAggregator eia,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n try {\n // read xml tag\n reader.require(XMLStreamConstants.START_DOCUMENT, null, null);\n reader.nextT...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_49
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParserTest.java", "identifier": "JPAEntityParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testparse2EdmPropertyListMapWithVirtualAccess() {\n JPAEntityParser resultParser = new JPAEntityParser();\n Map<String, Object> edmEntity = new HashMap<String, Object>();\n edmEntity.put(\"SoId\", 1);\n DemoRelatedEntity relatedEntity = new DemoRelatedEntity(\"NewOrder\");\...
{ "fields": [ { "declarator": "MAX_SIZE = 10", "modifier": "private static", "original_string": "private static short MAX_SIZE = 10;", "type": "short", "var_name": "MAX_SIZE" }, { "declarator": "ACCESS_MODIFIER_GET = \"get\"", "modifier": "public static final", ...
{ "body": "public final HashMap<String, Object> parse2EdmNavigationValueMap(\n final Object jpaEntity, final List<EdmNavigationProperty> navigationPropertyList)\n throws ODataJPARuntimeException {\n Object result = null;\n String methodName = null;\n HashMap<String, Object> navigationMap = new Hash...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_909
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonFeedConsumerTest.java", "identifier": "JsonFeedConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void doubleNext() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"results\\\":[],\\\"__next\\\...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_289
{ "fields": [], "file": "odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationValueAccessTest.java", "identifier": "AnnotationValueAccessTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void setPropertyDataNull() throws ODataException {\n AnnotationValueAccess ava = new AnnotationValueAccess();\n SimpleEntity data = null;\n EdmProperty property = mockProperty(\"Name\");\n\n ava.setPropertyValue(data, property, null);\n\n // no exception is thrown, all fine\n...
{ "fields": [ { "declarator": "annotationHelper = new AnnotationHelper()", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "oda...
{ "body": "@Override\n public <T, V> void setPropertyValue(final T data, final EdmProperty property, final V value) throws ODataException {\n if (data != null) {\n if (annotationHelper.isEdmAnnotated(data)) {\n annotationHelper.setValueForProperty(data, property.getName(), value);\n } else {\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_773
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void collectionSimpleTypeWrongXml() throws Exception {\n final String xml = \"<AllUsedRoomIds xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\"><element>1</element>\";\n new XmlPropertyConsumer().readCollection(createReaderForTest(xml, true),\n ...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public List<?> readCollection(XMLStreamReader reader, final EntityPropertyInfo info,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n final String collectionName = info.getName();\n final EntityTypeMapping typeMappings = EntityTypeMapping.create(\n prope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_266
{ "fields": [ { "declarator": "TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\"", "modifier": "private static final", "original_string": "private static final String TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\";", "type"...
{ "body": "@Test\n public void defaultNamespaceGenerationComplexType() throws ODataException {\n Collection<Class<?>> localAnnotatedClasses = new ArrayList<Class<?>>();\n localAnnotatedClasses.add(GeneratedNamesComplexTestClass.class);\n AnnotationEdmProvider localAep = new AnnotationEdmProvider(localAnnota...
{ "fields": [ { "declarator": "ANNOTATION_HELPER = new AnnotationHelper()", "modifier": "private static final", "original_string": "private static final AnnotationHelper ANNOTATION_HELPER = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "ANNOTATION_HELPER" }, ...
{ "body": "@Override\n public ComplexType getComplexType(final FullQualifiedName edmFQName) throws ODataException {\n Schema schema = namespace2Schema.get(edmFQName.getNamespace());\n if (schema != null) {\n List<ComplexType> complexTypes = schema.getComplexTypes();\n for (ComplexType complexType : c...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1047
{ "fields": [ { "declarator": "APPLICATION_XML = createConstant(ContentType.APPLICATION_XML)", "modifier": "private static final", "original_string": "private static final String APPLICATION_XML = createConstant(ContentType.APPLICATION_XML);", "type": "String", "var_name": "APPLICATI...
{ "body": "@Test\n public void defaultSupportedContentTypesForMetadata() throws Exception {\n List<String> types = service.getSupportedContentTypes(MetadataProcessor.class);\n assertTrue(types.contains(APPLICATION_XML));\n }", "class_method_signature": "ODataSingleProcessorServiceTest.defaultSupportedConten...
{ "fields": [ { "declarator": "processor", "modifier": "private final", "original_string": "private final ODataSingleProcessor processor;", "type": "ODataSingleProcessor", "var_name": "processor" }, { "declarator": "edm", "modifier": "private final", "origin...
{ "body": "@Override\n public List<String> getSupportedContentTypes(final Class<? extends ODataProcessor> processorFeature)\n throws ODataException {\n List<String> result = new ArrayList<String>();\n\n if (processor instanceof CustomContentType) {\n result.addAll(((CustomContentType) processor).getC...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_636
{ "fields": [ { "declarator": "edmEntityContainer", "modifier": "private", "original_string": "private EdmEntityContainer edmEntityContainer;", "type": "EdmEntityContainer", "var_name": "edmEntityContainer" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/o...
{ "body": "@Test\n public void testEntityContainerName() throws EdmException {\n assertEquals(\"Container\", edmEntityContainer.getName());\n }", "class_method_signature": "EdmEntityContainerImplProvTest.testEntityContainerName()", "constructor": false, "full_signature": "@Test public void testEntityContai...
{ "fields": [ { "declarator": "edm", "modifier": "private", "original_string": "private EdmImplProv edm;", "type": "EdmImplProv", "var_name": "edm" }, { "declarator": "entityContainerHierachy", "modifier": "private", "original_string": "private List<EntityCo...
{ "body": "@Override\n public String getName() throws EdmException {\n return entityContainerInfo.getName();\n }", "class_method_signature": "EdmEntityContainerImplProv.getName()", "constructor": false, "full_signature": "@Override public String getName()", "identifier": "getName", "invocations": [ ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_118
{ "fields": [ { "declarator": "context = null", "modifier": "", "original_string": "JPQLJoinContextView context = null;", "type": "JPQLJoinContextView", "var_name": "context" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core...
{ "body": "@Test\n public void testJoinClauseListAsEmpty() throws Exception {\n setUp(new ArrayList<JPAJoinClause>());\n JPQLJoinStatementBuilder jpqlJoinStatementBuilder = new JPQLJoinStatementBuilder(context);\n try {\n jpqlJoinStatementBuilder.build();\n fail(\"Should not have come here\");\n ...
{ "fields": [ { "declarator": "jpqlStatement", "modifier": "", "original_string": "JPQLStatement jpqlStatement;", "type": "JPQLStatement", "var_name": "jpqlStatement" }, { "declarator": "context", "modifier": "private", "original_string": "private JPQLJoinCo...
{ "body": "@Override\n public JPQLStatement build() throws ODataJPARuntimeException {\n jpqlStatement = createStatement(createJPQLQuery());\n this.context.setJPQLStatement(jpqlStatement.toString());\n return jpqlStatement;\n\n }", "class_method_signature": "JPQLJoinStatementBuilder.build()", "construct...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_548
{ "fields": [ { "declarator": "POST = \"POST\"", "modifier": "private static final", "original_string": "private static final String POST = \"POST\";", "type": "String", "var_name": "POST" }, { "declarator": "GET = \"GET\"", "modifier": "private static final", ...
{ "body": "@Test\n public void testBatchChangeSet() throws IOException, BatchException {\n List<BatchPart> batch = new ArrayList<BatchPart>();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"content-type\", \"application/json\");\n BatchChangeSetPart request = BatchChangeSe...
{ "fields": [ { "declarator": "REG_EX_BOUNDARY =\n \"([a-zA-Z0-9_\\\\-\\\\.'\\\\+]{1,70})|\\\"([a-zA-Z0-9_\\\\-\\\\.'\\\\+\\\\s\\\\\" +\n \"(\\\\),/:=\\\\?]{1,69}[a-zA-Z0-9_\\\\-\\\\.'\\\\+\\\\(\\\\),/:=\\\\?])\\\"\"", "modifier": "private static final", "original_string": "private...
{ "body": "public InputStream writeBatchRequest(final List<BatchPart> batchParts, final String boundary) {\n if (boundary.matches(REG_EX_BOUNDARY)) {\n batchBoundary = boundary;\n } else {\n throw new IllegalArgumentException();\n }\n for (BatchPart batchPart : batchParts) {\n writer.append...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_724
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/servlet/RestUtilTest.java", "identifier": "RestUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExtractQueryParameters() throws Exception {\n Map<String, String> result = RestUtil.extractQueryParameters(\"some=value\");\n Assert.assertEquals(\"value\", result.get(\"some\"));\n\n result = RestUtil.extractQueryParameters(\"some=value&another=v\");\n Assert.assertEqu...
{ "fields": [ { "declarator": "REG_EX_OPTIONAL_WHITESPACE = \"\\\\s*\"", "modifier": "private static final", "original_string": "private static final String REG_EX_OPTIONAL_WHITESPACE = \"\\\\s*\";", "type": "String", "var_name": "REG_EX_OPTIONAL_WHITESPACE" }, { "decla...
{ "body": "public static Map<String, String> extractQueryParameters(final String queryString) {\n Map<String, String> queryParametersMap = new HashMap<String, String>();\n if (queryString != null && queryString.length() > 0) {\n // At first the queryString will be decoded.\n List<String> queryParamete...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_374
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testMultipleSchemas() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<ed...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_661
{ "fields": [ { "declarator": "edm", "modifier": "private", "original_string": "private ForEdmImplTest edm;", "type": "ForEdmImplTest", "var_name": "edm" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmImplTest.java", "identifier": "Ed...
{ "body": "@Test\n public void testEntitySetsCache() throws EdmException {\n assertEquals(edm.getEntitySets(), edm.getEntitySets());\n }", "class_method_signature": "EdmImplTest.testEntitySetsCache()", "constructor": false, "full_signature": "@Test public void testEntitySetsCache()", "identifier": "testE...
{ "fields": [ { "declarator": "edmEntityContainers", "modifier": "private", "original_string": "private Map<String, EdmEntityContainer> edmEntityContainers;", "type": "Map<String, EdmEntityContainer>", "var_name": "edmEntityContainers" }, { "declarator": "edmEntityTypes...
{ "body": "@Override\n public List<EdmEntitySet> getEntitySets() throws EdmException {\n try {\n if (edmEntitySets == null) {\n edmEntitySets = createEntitySets();\n }\n } catch (EdmException e) {\n throw e;\n } catch (ODataException e) {\n throw new EdmException(EdmException.COMM...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_231
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testGetBuilderIdempotent() {\n JPAEdmFunctionImport jpaEdmfunctionImport = new JPAEdmFunctionImport(this);\n\n JPAEdmBuilder builder1 = jpaEdmfunctionImport.getBuilder();\n JPAEdmBuilder builder2 = jpaEdmfunctionImport.getBuilder();\n\n assertEquals(builder1.hashCode(), bui...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmFunctionImportBuilder();\n }\n return builder;\n }", "class_method_signature": "JPAEdmFunctionImport.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBuilder ge...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1010
{ "fields": [ { "declarator": "xmlStreamWriterFactory", "modifier": "private", "original_string": "private XMLOutputFactory xmlStreamWriterFactory;", "type": "XMLOutputFactory", "var_name": "xmlStreamWriterFactory" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/...
{ "body": "@Test\n public void writeValidMetadata5() throws Exception {\n\n List<Schema> schemas = new ArrayList<Schema>();\n\n List<AnnotationAttribute> attributesElement1 = new ArrayList<AnnotationAttribute>();\n attributesElement1.add(new AnnotationAttribute().setName(\"rel\").setText(\"self\").setPrefix...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/XmlMetadataProducer.java", "identifier": "XmlMetadataProducer", "interfaces": "", "methods": [ { "class_method_signature": "XmlMetadataProducer.writeMetadata(final DataServices metadata, final XMLS...
{ "body": "public static void writeMetadata(final DataServices metadata, final XMLStreamWriter xmlStreamWriter,\n Map<String, String> predefinedNamespaces) throws EntityProviderException {\n\n try {\n String edmxNamespace = Edm.NAMESPACE_EDMX_2007_06;\n String defaultNamespace = Edm.NAMESPACE_EDM_20...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_948
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test\n public void collectionSimpleWithMetadata() throws Exception {\n final EntityPropertyInfo info = EntityInfoAggregator.create(\n MockFacade.getMockEdm().getDefaultEntityContainer().getFunctionImport(\"AllUsedRoomIds\"));\n List<?> collection = new JsonPropertyConsumer().readCollection(p...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "public List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n final Object typeMapping = readProperties == null ? null :\n readProperties.getTypeMappings().get(propertyInfo.getNa...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_362
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testInvalidRelationship() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmlWithInvalidAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n ...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_732
{ "fields": [ { "declarator": "JSON_ERROR_DOCUMENT_SIMPLE = \"{\\\"error\\\":{\\\"code\\\":\\\"ErrorCode\\\",\" +\n \"\\\"message\\\":{\\\"lang\\\":\\\"en-US\\\",\\\"value\\\":\\\"Message\\\"}}}\"", "modifier": "private static final", "original_string": "private static final String JSON_ERR...
{ "body": "@Test\n public void innerErrorComplexObject() throws Exception {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_INNER_ERROR_COMPLEX_OBJECT);\n ODataErrorContext error = jedc.readError(in);\n\n assertEquals(\"Wrong content type\", \"application/json\", error.getContentType());\n ...
{ "fields": [ { "declarator": "DEFAULT_CHARSET = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_CHARSET = \"UTF-8\";", "type": "String", "var_name": "DEFAULT_CHARSET" }, { "declarator": "AVAILABLE_LOCALES = new Ha...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n JsonReader reader = createJsonReader(errorDocument);\n try {\n return parseJson(reader);\n } catch (IOException e) {\n throw new EntityProviderException(\n EntityProviderExcept...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1006
{ "fields": [ { "declarator": "xmlStreamWriterFactory", "modifier": "private", "original_string": "private XMLOutputFactory xmlStreamWriterFactory;", "type": "XMLOutputFactory", "var_name": "xmlStreamWriterFactory" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/...
{ "body": "@Test\n public void writeValidMetadata() throws Exception {\n List<Schema> schemas = new ArrayList<Schema>();\n\n List<AnnotationElement> annotationElements = new ArrayList<AnnotationElement>();\n annotationElements.add(new AnnotationElement().setName(\"test\").setText(\"hallo\"));\n Schema sc...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/XmlMetadataProducer.java", "identifier": "XmlMetadataProducer", "interfaces": "", "methods": [ { "class_method_signature": "XmlMetadataProducer.writeMetadata(final DataServices metadata, final XMLS...
{ "body": "public static void writeMetadata(final DataServices metadata, final XMLStreamWriter xmlStreamWriter,\n Map<String, String> predefinedNamespaces) throws EntityProviderException {\n\n try {\n String edmxNamespace = Edm.NAMESPACE_EDMX_2007_06;\n String defaultNamespace = Edm.NAMESPACE_EDM_20...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_227
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testWrongReturnTypeScalar() {\n VARIANT = 16;\n\n try {\n jpaEdmfunctionImport.getBuilder().build();\n fail(\"Exception Expected\");\n } catch (ODataJPAModelException e) {\n assertEquals(ODataJPAModelException.FUNC_RETURN_TYPE_EXP.getKey(), e.getMessageReference...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmFunctionImportBuilder();\n }\n return builder;\n }", "class_method_signature": "JPAEdmFunctionImport.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBuilder ge...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_677
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/commons/ContentTypeTest.java", "identifier": "ContentTypeTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testContentTypeCreationFromStringsFail() {\n List<ContentType> types =\n ContentType.create(Arrays.asList(\"type/subtype\", \"application/xml\", \"application/json/FAIL;key=value\"));\n\n assertEquals(3, types.size());\n }", "c...
{ "fields": [ { "declarator": "KNOWN_MIME_TYPES = new HashSet<String>()", "modifier": "private static final", "original_string": "private static final Set<String> KNOWN_MIME_TYPES = new HashSet<String>();", "type": "Set<String>", "var_name": "KNOWN_MIME_TYPES" }, { "dec...
{ "body": "public static ContentType create(final String type, final String subtype) {\n return new ContentType(type, subtype, mapToODataFormat(type, subtype), null);\n }", "class_method_signature": "ContentType.create(final String type, final String subtype)", "constructor": false, "full_signature": "publi...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_159
{ "fields": [ { "declarator": "objNavigationProperty", "modifier": "private static", "original_string": "private static JPAEdmNavigationProperty objNavigationProperty;", "type": "JPAEdmNavigationProperty", "var_name": "objNavigationProperty" }, { "declarator": "navPropV...
{ "body": "@Test\n public void testAddJPAEdmNavigationPropertyView() {\n JPAEdmNavigationPropertyTest localView = new JPAEdmNavigationPropertyTest();\n navPropView = new JPAEdmNavigationPropertyTest();\n objNavigationProperty = new JPAEdmNavigationProperty(localView,\n localView, 1);\n try {\n ...
{ "fields": [ { "declarator": "associationView = null", "modifier": "private", "original_string": "private JPAEdmAssociationView associationView = null;", "type": "JPAEdmAssociationView", "var_name": "associationView" }, { "declarator": "currentNavigationProperty = null...
{ "body": "@Override\n public void addJPAEdmNavigationPropertyView(final JPAEdmNavigationPropertyView view) {\n if (view != null && view.isConsistent()) {\n currentNavigationProperty = view.getEdmNavigationProperty();\n consistentNavigationProperties.add(currentNavigationProperty);\n\n }\n }", "cl...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_509
{ "fields": [ { "declarator": "JSON_ERROR_DOCUMENT_SIMPLE = \"{\\\"error\\\":{\\\"code\\\":\\\"ErrorCode\\\",\" +\n \"\\\"message\\\":{\\\"lang\\\":\\\"en-US\\\",\\\"value\\\":\\\"Message\\\"}}}\"", "modifier": "private static final", "original_string": "private static final String JSON_ERR...
{ "body": "@Test(expected = EntityProviderException.class)\n public void invalidErrorDocumentMissingMessage() throws EntityProviderException {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_MISSING_MESSAGE);\n try {\n jedc.readError(in);\n fail(\"Expected exception was not thrown\");...
{ "fields": [ { "declarator": "DEFAULT_CHARSET = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_CHARSET = \"UTF-8\";", "type": "String", "var_name": "DEFAULT_CHARSET" }, { "declarator": "FOUND = \"' found.\"", ...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n JsonReader reader = createJsonReader(errorDocument);\n try {\n return parseJson(reader);\n } catch (IOException e) {\n throw new EntityProviderException(\n EntityProviderExcept...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_765
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test\n public void complexPropertyNull() throws Exception {\n String xml = \"<Location xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08\n + \"\\\" m:null=\\\"true\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" />\";\n XMLStreamReader reader = createReaderForTest(xml, true);\n final EdmProper...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readProperty(reader, EntityInfoAggregator.create(property), readProperties);\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_335
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testMetadataDokumentWithWhitepaces2() throws Exception {\n final String metadata = \"\"\n + \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \" <edmx:DataServices m:DataServiceVersion=\\\"2.0\\\" xmlns:m=\\\"\" + Edm.NAM...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_620
{ "fields": [ { "declarator": "edmProvider", "modifier": "private static", "original_string": "private static EdmProvider edmProvider;", "type": "EdmProvider", "var_name": "edmProvider" }, { "declarator": "navPropertyProvider", "modifier": "private static", ...
{ "body": "@Test\n public void getAnnotations() throws Exception {\n EdmAnnotatable annotatable = navPropertyProvider;\n EdmAnnotations annotations = annotatable.getAnnotations();\n assertNull(annotations.getAnnotationAttributes());\n assertNull(annotations.getAnnotationElements());\n }", "class_metho...
{ "fields": [ { "declarator": "navigationProperty", "modifier": "private", "original_string": "private NavigationProperty navigationProperty;", "type": "NavigationProperty", "var_name": "navigationProperty" }, { "declarator": "annotations", "modifier": "private", ...
{ "body": "@Override\n public EdmAnnotations getAnnotations() throws EdmException {\n if (annotations == null) {\n annotations = new EdmAnnotationsImplProv(navigationProperty.getAnnotationAttributes(),\n navigationProperty.getAnnotationElements());\n }\n return annotations;\n }", "class_met...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1051
{ "fields": [ { "declarator": "APPLICATION_XML = createConstant(ContentType.APPLICATION_XML)", "modifier": "private static final", "original_string": "private static final String APPLICATION_XML = createConstant(ContentType.APPLICATION_XML);", "type": "String", "var_name": "APPLICATI...
{ "body": "@Test\n public void defaultSupportedContentTypesForEntityLinks() throws Exception {\n List<String> types = service.getSupportedContentTypes(EntityLinksProcessor.class);\n assertTrue(types.contains(APPLICATION_XML));\n assertTrue(types.contains(APPLICATION_JSON));\n }", "class_method_signature"...
{ "fields": [ { "declarator": "processor", "modifier": "private final", "original_string": "private final ODataSingleProcessor processor;", "type": "ODataSingleProcessor", "var_name": "processor" }, { "declarator": "edm", "modifier": "private final", "origin...
{ "body": "@Override\n public List<String> getSupportedContentTypes(final Class<? extends ODataProcessor> processorFeature)\n throws ODataException {\n List<String> result = new ArrayList<String>();\n\n if (processor instanceof CustomContentType) {\n result.addAll(((CustomContentType) processor).getC...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_270
{ "fields": [ { "declarator": "TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\"", "modifier": "private static final", "original_string": "private static final String TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\";", "type"...
{ "body": "@Test\n public void schemaBasic() throws Exception {\n assertNotNull(aep);\n\n List<Schema> schemas = aep.getSchemas();\n assertEquals(1, schemas.size());\n\n Schema schema = schemas.get(0);\n List<EntityContainer> containers = schema.getEntityContainers();\n assertEquals(1, containers.s...
{ "fields": [ { "declarator": "ANNOTATION_HELPER = new AnnotationHelper()", "modifier": "private static final", "original_string": "private static final AnnotationHelper ANNOTATION_HELPER = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "ANNOTATION_HELPER" }, ...
{ "body": "@Override\n public List<Schema> getSchemas() throws ODataException {\n return new ArrayList<Schema>(namespace2Schema.values());\n }", "class_method_signature": "AnnotationEdmProvider.getSchemas()", "constructor": false, "full_signature": "@Override public List<Schema> getSchemas()", "identifie...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_964
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected=EntityProviderException.class)\n public void ODATAJAVA_77_ExceptionScenario() throws Exception {\n final String metadata = \"\"\n + \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \" <edmx:DataServices m:DataServiceVersion=\...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_24
{ "fields": [ { "declarator": "builder = null", "modifier": "", "original_string": "JPAQueryBuilder builder = null;", "type": "JPAQueryBuilder", "var_name": "builder" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/...
{ "body": "@Test\n public void buildQueryGetEntitySetTestWithNoNormalizationWithtoLower() {\n EdmMapping mapping = (EdmMapping) mockNormalizedValueMapping();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) \n mockURIInfoForEntitySetWithBinaryFilterExpression(mapping, \"toLower\")));\n...
{ "fields": [ { "declarator": "em = null", "modifier": "private", "original_string": "private EntityManager em = null;", "type": "EntityManager", "var_name": "em" }, { "declarator": "pageSize = 0", "modifier": "private", "original_string": "private int pageS...
{ "body": "public JPAQueryInfo build(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n try {\n ODataJPATombstoneEntityListener listener = getODataJPATombstoneEntityListener((UriInfo) uriInfo);\n if (listener != null...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_437
{ "fields": [], "file": "odata2-lib/odata-client-core/src/test/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonFeedDeserializerTest.java", "identifier": "JsonFeedDeserializerTest", "interfaces": "", "superclass": "extends AbstractDeserializerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void wrongCountContent() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"__count\\\":\\\"one\\...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }