id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
18830102_183
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraint = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraint objJPAEdmReferentialConstraint = null;", "type": "JPAEdmReferentialConstraint", "var_name": "objJPAEdmReferentialConstra...
{ "body": "@Test\n public void testGetEdmReferentialConstraint() {\n assertNotNull(objJPAEdmReferentialConstraint.getEdmReferentialConstraint());\n }", "class_method_signature": "JPAEdmReferentialConstraintTest.testGetEdmReferentialConstraint()", "constructor": false, "full_signature": "@Test public void t...
{ "fields": [ { "declarator": "builder = null", "modifier": "private", "original_string": "private JPAEdmRefConstraintBuilder builder = null;", "type": "JPAEdmRefConstraintBuilder", "var_name": "builder" }, { "declarator": "exists = false", "modifier": "private", ...
{ "body": "@Override\n public ReferentialConstraint getEdmReferentialConstraint() {\n return referentialConstraint;\n }", "class_method_signature": "JPAEdmReferentialConstraint.getEdmReferentialConstraint()", "constructor": false, "full_signature": "@Override public ReferentialConstraint getEdmReferentialC...
{ "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_479
{ "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": "@SuppressWarnings(\"unchecked\")\n @Test\n public void testReadFeed() throws Exception {\n // prepare\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n String content = readFile(\"feed_employees.xml\");\n InputStream contentAsStream ...
{ "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 ODataDeltaFeed readFeed(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\n 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_707
{ "fields": [ { "declarator": "EXPECTED = \"{\"\n + \"\\\"request\\\":{\\\"method\\\":\\\"GET\\\",\\\"uri\\\":\\\"http://test/entity\\\",\\\"protocol\\\":null},\"\n + \"\\\"response\\\":{\\\"status\\\":{\\\"code\\\":200,\\\"info\\\":\\\"OK\\\"}},\"\n + \"\\\"server\\\":{\\\"version\\\":null}}...
{ "body": "@Test\n public void minimal() throws Exception {\n final ODataContext context = mockContext(ODataHttpMethod.PUT);\n final ODataResponse wrappedResponse = mockResponse(HttpStatusCodes.NO_CONTENT, null, null);\n\n ODataResponse response = new ODataDebugResponseWrapper(context, wrappedResponse, mock...
{ "fields": [ { "declarator": "ODATA_DEBUG_QUERY_PARAMETER = \"odata-debug\"", "modifier": "public static final", "original_string": "public static final String ODATA_DEBUG_QUERY_PARAMETER = \"odata-debug\";", "type": "String", "var_name": "ODATA_DEBUG_QUERY_PARAMETER" }, { ...
{ "body": "public ODataResponse wrapResponse() {\n try {\n final List<DebugInfo> parts = createParts();\n ODataResponseBuilder builder = ODataResponse.status(HttpStatusCodes.OK)\n .entity(isJson ? wrapInJson(parts) : wrapInHtml(parts))\n .contentHeader(isJson ? HttpContentType.APPLICATI...
{ "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_357
{ "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 testAssociationSet() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n XmlMetadataDeserializer parser = new XmlMetadataDeserializer();\n InputStream reader = createStreamReader(xmlWithAssociation);\n EdmDataServices result =...
{ "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_642
{ "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 testGetAssociationSets() throws EdmException {\n List<EdmAssociationSet> associationSets = edmEntityContainer.getAssociationSets();\n assertNotNull(associationSets);\n assertEquals(2, associationSets.size());\n\n for (EdmAssociationSet assoSet : associationSets) {\n St...
{ "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 List<EdmAssociationSet> getAssociationSets() throws EdmException {\n try {\n List<EntityContainer> containers = getEntityContainerHierachy();\n List<EdmAssociationSet> edmAssociationSetsList = new ArrayList<EdmAssociationSet>();\n for (EntityContainer entityContainer :...
{ "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_1033
{ "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 writeFeed() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n List<Map<String, Object>> propertiesList = new ArrayList<Map<String, Object>>();\n final ODataResponse result =\n new ProviderF...
{ "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 writeFeed(final String contentType, final EdmEntitySet entitySet,\n final List<Map<String, Object>> data, final EntityProviderWriteProperties properties)\n throws EntityProviderException {\n return create(contentType).writeFeed(entitySet, data, 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_212
{ "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 testFunctionImportNoSuchMethod() {\n VARIANT = 1;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 0);\n\n }", "class_method_signature": "JPAEdmFunctionImportTes...
{ "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 List<FunctionImport> getConsistentFunctionImportList() {\n return consistentFunctionImportList;\n }", "class_method_signature": "JPAEdmFunctionImport.getConsistentFunctionImportList()", "constructor": false, "full_signature": "@Override public List<FunctionImport> getConsisten...
{ "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_838
{ "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\n public void validationOfUnknownPropertyInlineNamespaceSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\"\n +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \"\n +\n \" xmlns:m=\...
{ "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_992
{ "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 testMissingEntityType() throws Exception {\n final String xmlWithInvalidAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataS...
{ "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_584
{ "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 testValidateContentTransferEncoding() throws BatchException {\n List<String> contentTransferEncoding = Arrays.asList(new String[] { BatchHelper.BINARY_ENCODING });\n final Header headers = makeHeaders(BatchHelper.HTTP_CONTENT_TRANSFER_ENCODING, contentTransferEncoding);\n\n Ba...
{ "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 validateContentTransferEncoding(final Header headers, final boolean isChangeRequest)\n throws BatchException {\n final HeaderField contentTransferField = headers.getHeaderField(BatchHelper.HTTP_CONTENT_TRANSFER_ENCODING);\n\n if (contentTransferField != null) {\n final Li...
{ "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_2
{ "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 buildDeleteEntityTest() {\n try {\n assertNotNull(builder.build((DeleteUriInfo) mockURIInfoWithListener(false)));\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART_2);\n }\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_459
{ "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": "@SuppressWarnings(\"unchecked\")\n @Test\n public void readWithDoubleInlineContents() throws Exception {\n // prepare\n String content = readFile(\"double_expanded_team.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntity...
{ "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_1044
{ "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 defaultSupportedContentTypesForEntitySet() throws Exception {\n List<String> types = service.getSupportedContentTypes(EntitySetProcessor.class);\n List<ContentType> convertedTypes = ContentType.convert(types);\n assertTrue(convertedTypes.contains(appendCharset(ContentType.APPL...
{ "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_265
{ "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 convert() throws Exception {\n ConversionProperty cp = new ConversionProperty();\n annotationHelper.setValueForProperty(cp, \"StringProp\", \"42\");\n annotationHelper.setValueForProperty(cp, \"IntegerProp\", \"420\");\n annotationHelper.setValueForProperty(cp, \"LongProp\"...
{ "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": "private Object convert(final Field field, final String propertyValue) {\n Class<?> fieldClass = field.getType();\n try {\n EdmProperty property = field.getAnnotation(EdmProperty.class);\n EdmSimpleTypeKind type = mapTypeKind(property.type());\n return type.getEdmSimpleTypeInstance().va...
{ "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_635
{ "fields": [ { "declarator": "associationProv", "modifier": "private static", "original_string": "private static EdmAssociationImplProv associationProv;", "type": "EdmAssociationImplProv", "var_name": "associationProv" }, { "declarator": "edmProvider", "modifier"...
{ "body": "@Test\n public void getAnnotations() throws Exception {\n EdmAnnotatable annotatable = associationProv;\n EdmAnnotations annotations = annotatable.getAnnotations();\n assertNull(annotations.getAnnotationAttributes());\n assertNull(annotations.getAnnotationElements());\n }", "class_method_si...
{ "fields": [ { "declarator": "association", "modifier": "private", "original_string": "private Association association;", "type": "Association", "var_name": "association" }, { "declarator": "namespace", "modifier": "private", "original_string": "private Str...
{ "body": "@Override\n public EdmAnnotations getAnnotations() throws EdmException {\n if (annotations == null) {\n annotations =\n new EdmAnnotationsImplProv(association.getAnnotationAttributes(), association.getAnnotationElements());\n }\n return annotations;\n }", "class_method_signature"...
{ "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_770
{ "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 collectionSimpleType() throws Exception {\n final String xml = \"<AllUsedRoomIds xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">\"\n + \"<element>1</element>\"\n + \"<element m:null=\\\"true\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" />\"\n + \"<elem...
{ "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_818
{ "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\n public void readDeltaLink() throws Exception {\n // prepare\n String content = readFile(\"feed_with_delta_link.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream reqContent = c...
{ "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 ODataDeltaFeed readFeed(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.crea...
{ "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_398
{ "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 complexPropertyOnOpenReaderWithNoMetadata() throws Exception {\n final String complexPropertyJson = \"{\\\"PostalCode\\\":\\\"69124\\\",\\\"CityName\\\":\\\"Heidelberg\\\"}\";\n JsonReader reader = prepareReader(complexPropertyJson);\n final EdmProperty property =\n (Ed...
{ "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_662
{ "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 testFunctionImportCache() throws EdmException {\n assertEquals(edm.getFunctionImports(), edm.getFunctionImports());\n }", "class_method_signature": "EdmImplTest.testFunctionImportCache()", "constructor": false, "full_signature": "@Test public void testFunctionImportCache()", ...
{ "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<EdmFunctionImport> getFunctionImports() throws EdmException {\n try {\n if (edmFunctionImports == null) {\n edmFunctionImports = createFunctionImports();\n }\n } catch (EdmException e) {\n throw e;\n } catch (ODataException e) {\n throw new EdmEx...
{ "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_1013
{ "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 writeWithPredefinedNamespaces() throws Exception {\n // prepare\n List<Schema> schemas = new ArrayList<Schema>();\n\n List<AnnotationAttribute> attributesElement1 = new ArrayList<AnnotationAttribute>();\n attributesElement1.add(new AnnotationAttribute().setName(\"rel\").set...
{ "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_232
{ "fields": [ { "declarator": "objJPAEdmPropertyTest", "modifier": "private", "original_string": "private JPAEdmPropertyTest objJPAEdmPropertyTest;", "type": "JPAEdmPropertyTest", "var_name": "objJPAEdmPropertyTest" }, { "declarator": "objJPAEdmProperty", "modifie...
{ "body": "@Test\n public void testGetBuilder() {\n setUp();\n assertNotNull(objJPAEdmProperty.getBuilder());\n }", "class_method_signature": "JPAEdmPropertyTest.testGetBuilder()", "constructor": false, "full_signature": "@Test public void testGetBuilder()", "identifier": "testGetBuilder", "invocati...
{ "fields": [ { "declarator": "schemaView", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "entityTypeView", "modifier": "private", "original_string": ...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmPropertyBuilder();\n }\n\n return builder;\n }", "class_method_signature": "JPAEdmProperty.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBuilder getBuilder()...
{ "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_727
{ "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 testBuildODataPathInfo() throws ODataException {\n\t HttpServletRequest req = Mockito.mock(HttpServletRequest.class);\n\t Mockito.when(req.getRequestURI()).thenReturn(\"http://localhost:80/odata/\"\n\t \t\t+ \"catalogSrv/odata.svc;v=1;mo/BookCollection?$top=10\");\n\t Mockito.when(...
{ "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 PathInfo buildODataPathInfo(final HttpServletRequest req, final int pathSplit) throws ODataException {\n PathInfoImpl pathInfo = splitPath(req, pathSplit);\n\n pathInfo.setServiceRoot(buildBaseUri(req, pathInfo.getPrecedingSegments()));\n pathInfo.setRequestUri(buildRequestUri(req));...
{ "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_377
{ "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 testMetadataWithNavigatons() throws XMLStreamException, \n EntityProviderException, EdmException, IOException {\n XmlMetadataDeserializer parser = new XmlMetadataDeserializer();\n String xml = readFile(\"metadataWithNavigations.xml\");\n InputStream reader = createStreamReade...
{ "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_418
{ "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 collectionUnfinished() throws Exception {\n final EntityPropertyInfo info = EntityInfoAggregator.create(\n MockFacade.getMockEdm().getDefaultEntityContainer().getFunctionImport(\"AllUsedRoomIds\"));\n new JsonPropertyDeserializer()...
{ "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 List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,\n final DeserializerProperties readProperties) throws EntityProviderException {\n final Object typeMapping = null ;\n List<Object> result = new ArrayList<Object>();\n String name = null;\n boolean wr...
{ "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_224
{ "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 testFunctionImportParamNoName() {\n VARIANT = 13;\n\n try {\n jpaEdmfunctionImport.getBuilder().build();\n fail(\"Exception Expected\");\n } catch (ODataJPAModelException e) {\n assertEquals(ODataJPAModelException.FUNC_PARAM_NAME_EXP.getKey(), e.getMessageRefere...
{ "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_1005
{ "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 edmxReferences() throws Exception {\n DataServices serviceMetadata = new DataServices();\n List<AnnotationElement> annoElements = new ArrayList<AnnotationElement>();\n annoElements.add(createElementWithoutInclude());\n annoElements.add(createElementWithInclude());\n serv...
{ "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_674
{ "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 parseable() {\n assertTrue(ContentType.isParseable(\"application/xml\"));\n assertTrue(ContentType.isParseable(\"text/plain\"));\n assertTrue(ContentType.isParseable(\"application/atom+xml; charset=UTF-8\"));\n\n assertFalse(ContentType.isParseable(\"application/ atom+xml;...
{ "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 boolean isParseable(final String format) {\n try {\n return ContentType.create(format) != null;\n } catch (IllegalArgumentException e) {\n return false;\n }\n }", "class_method_signature": "ContentType.isParseable(final String format)", "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_361
{ "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 testInvalidRole() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmlWithInvalidAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm....
{ "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_731
{ "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 innerErrorComplex() throws Exception {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_INNER_ERROR_COMPLEX);\n ODataErrorContext error = jedc.readError(in);\n\n assertEquals(\"Wrong content type\", \"application/json\", error.getContentType());\n assertEqual...
{ "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_859
{ "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\n public void testReadEntryRequestObjectMapping() throws Exception {\n XmlEntityConsumer xec = new XmlEntityConsumer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream content = createContentAsStream(EMPLOYEE_1_XML)...
{ "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_623
{ "fields": [ { "declarator": "edmAssociationSet", "modifier": "private static", "original_string": "private static EdmAssociationSet edmAssociationSet;", "type": "EdmAssociationSet", "var_name": "edmAssociationSet" }, { "declarator": "edmProvider", "modifier": "p...
{ "body": "@Test\n public void testAssociationExists() throws Exception {\n EdmAssociationSet associationSet = edmAssociationSet;\n assertNotNull(associationSet.getAssociation());\n }", "class_method_signature": "EdmAssociationSetImplProvTest.testAssociationExists()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "associationSet", "modifier": "private", "original_string": "private AssociationSet associationSet;", "type": "AssociationSet", "var_name": "associationSet" }, { "declarator": "edmEntityContainer", "modifier": "private", "origin...
{ "body": "@Override\n public EdmAssociation getAssociation() throws EdmException {\n EdmAssociation association =\n edm.getAssociation(associationSet.getAssociation().getNamespace(), associationSet.getAssociation().getName());\n if (association == null) {\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_789
{ "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 linksWrongCountNameAtEnd() throws Exception {\n final String links = \"{\\\"results\\\":[],\\\"count\\\":\\\"5\\\"}\";\n JsonReader reader = new JsonReader(new InputStreamReader(createContentAsStream(links)));\n 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_273
{ "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 entityTypePhotoWithTwoKeyProperties() throws Exception {\n // validate team\n EntityType photo = aep.getEntityType(new FullQualifiedName(ModelSharedConstants.NAMESPACE_1, \"Photo\"));\n assertEquals(\"Photo\", photo.getName());\n final List<Property> properties = photo.getP...
{ "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 EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException {\n Schema schema = namespace2Schema.get(edmFQName.getNamespace());\n if (schema != null) {\n List<EntityType> complexTypes = schema.getEntityTypes();\n for (EntityType complexType : comple...
{ "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_1052
{ "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 defaultSupportedContentTypesForEntityLink() throws Exception {\n ContentType ctGif = ContentType.create(\"image\", \"gif\");\n\n List<String> types = service.getSupportedContentTypes(EntityLinkProcessor.class);\n assertTrue(types.contains(APPLICATION_XML));\n assertTrue(typ...
{ "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_766
{ "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 complexPropertyNullValueNotAllowed() throws Exception {\n final String xml = \"<Location xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08\n + \"\\\" m:null=\\\"true\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" />\";\n XMLStreamReade...
{ "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_336
{ "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 ODATAJAVA_77_testMetadataDokumentWithMultiLevelEntityType() 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\\\" xm...
{ "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_822
{ "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\n public void readWithInlineContent() throws Exception {\n // prepare\n String content = readFile(\"expanded_team.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream reqContent = crea...
{ "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_988
{ "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 testInvalidBaseType() throws XMLStreamException, EntityProviderException {\n final String xmlWithInvalidBaseType =\n \"<Schema Namespace=\\\"\" + NAMESPACE + \"\\\" xmlns=\\\"\" + Edm.NAMESPACE_EDM_2008_09 + \"\\\">\"\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 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_121
{ "fields": [ { "declarator": "context = null", "modifier": "", "original_string": "JPQLJoinSelectSingleContextView context = null;", "type": "JPQLJoinSelectSingleContextView", "var_name": "context" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/o...
{ "body": "@Test\n public void testJoinClauseListAsEmpty() throws Exception {\n List<JPAJoinClause> joinClauseList = new ArrayList<JPAJoinClause>();\n setUp(joinClauseList);\n JPQLJoinSelectSingleStatementBuilder jpqlJoinSelectsingleStatementBuilder =\n new JPQLJoinSelectSingleStatementBuilder(contex...
{ "fields": [ { "declarator": "jpqlStatement", "modifier": "", "original_string": "JPQLStatement jpqlStatement;", "type": "JPQLStatement", "var_name": "jpqlStatement" }, { "declarator": "context", "modifier": "private", "original_string": "private JPQLJoinSe...
{ "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": "JPQLJoinSelectSingleStatementBuilder.build()", ...
{ "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_571
{ "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 testRemoveLastEndingCRLFWithWSLong() {\n String line = \"Test \\r\\nTest2 \\r\\n\";\n assertEquals(\"Test \\r\\nTest2 \", BatchParserCommon.removeEndingCRLF(new Line(line,1)).toString());\n }", "class_method_signature": "BatchParserCommonTest.testRe...
{ "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 Line removeEndingCRLF(final Line line) {\n Pattern pattern = PATTERN_LAST_CRLF;\n Matcher matcher = pattern.matcher(line.toString());\n\n if (matcher.matches()) {\n return new Line(matcher.group(1), line.getLineNumber());\n } else {\n return line;\n }\n }", "class_...
{ "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_434
{ "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 resultsNotPresent() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{}}\");\n EntityStream ...
{ "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_967
{ "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 testOtherEdmNamespace() throws XMLStreamException, EntityProviderException {\n int i = 0;\n XmlMetadataConsumer parser = new XmlMetadataConsumer();\n XMLStreamReader reader = createStreamReader(xml2);\n DataServices result = parser.readMetadata(reader, true);\n assertEqu...
{ "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_27
{ "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 buildQueryGetEntitySetTestWithNormalizationWithSubstringof1() {\n EdmMapping mapping = (EdmMapping) mockNormalizedMapping1();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) \n mockURIInfoForEntitySet(mapping, \"substringof_1\")));\n } catch (ODataExc...
{ "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_658
{ "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 testEntityTypeCache() throws EdmException {\n assertEquals(edm.getEntityType(\"foo\", \"bar\"), edm.getEntityType(\"foo\", \"bar\"));\n assertNotSame(edm.getEntityType(\"foo\", \"bar\"), edm.getEntityType(\"bar\", \"foo\"));\n }", "class_method_signature": "EdmImplTest.testEnt...
{ "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 EdmEntityType getEntityType(final String namespaceOrAlias, final String name) throws EdmException {\n String finalNamespace = getNamespaceForAlias(namespaceOrAlias);\n\n FullQualifiedName fqName = new FullQualifiedName(finalNamespace, name);\n if (edmEntityTypes.containsKey(fqN...
{ "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_208
{ "fields": [ { "declarator": "objJPAEdmEntityTypeTest", "modifier": "private static", "original_string": "private static JPAEdmEntityTypeTest objJPAEdmEntityTypeTest;", "type": "JPAEdmEntityTypeTest", "var_name": "objJPAEdmEntityTypeTest" }, { "declarator": "objJPAEdmE...
{ "body": "@Test\n public void testGetJPAEntityType() {\n assertNotNull(objJPAEdmEntityType.getJPAEntityType());\n\n }", "class_method_signature": "JPAEdmEntityTypeTest.testGetJPAEntityType()", "constructor": false, "full_signature": "@Test public void testGetJPAEntityType()", "identifier": "testGetJPAEn...
{ "fields": [ { "declarator": "schemaView = null", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView = null;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "currentEdmEntityType = null", "modifier": "private"...
{ "body": "@Override\n public javax.persistence.metamodel.EntityType<?> getJPAEntityType() {\n return currentJPAEntityType;\n }", "class_method_signature": "JPAEdmEntityType.getJPAEntityType()", "constructor": false, "full_signature": "@Override public javax.persistence.metamodel.EntityType<?> getJPAEntity...
{ "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_1029
{ "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 readLink() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n InputStream content = new ByteArrayInputStream(\"{\\\"d\\\":{\\\"uri\\\":\\\"http://somelink\\\"}}\".getBytes(\"UTF-8\"));\n final Stri...
{ "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 String readLink(final String contentType, final EdmEntitySet entitySet, final InputStream content)\n throws EntityProviderException {\n return create(contentType).readLink(entitySet, content);\n }", "class_method_signature": "ProviderFacadeImpl.readLink(final String contentTy...
{ "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_176
{ "fields": [ { "declarator": "objComplexType = null", "modifier": "private static", "original_string": "private static JPAEdmComplexType objComplexType = null;", "type": "JPAEdmComplexType", "var_name": "objComplexType" }, { "declarator": "localView = null", "mod...
{ "body": "@Test\n public void testSearchComplexTypeFullQualifiedName() {\n assertNotNull(objComplexType.searchEdmComplexType(new FullQualifiedName(\"salesorderprocessing\", \"String\")));\n\n }", "class_method_signature": "JPAEdmComplexTypeTest.testSearchComplexTypeFullQualifiedName()", "constructor": false...
{ "fields": [ { "declarator": "schemaView", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "currentComplexType = null", "modifier": "private", "origina...
{ "body": "@Override\n public ComplexType searchEdmComplexType(final String embeddableTypeName) {\n return searchMap.get(embeddableTypeName);\n }", "class_method_signature": "JPAEdmComplexType.searchEdmComplexType(final String embeddableTypeName)", "constructor": false, "full_signature": "@Override public ...
{ "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_875
{ "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\n public void RoomEntryWithEmptyInlineEmployeeInlineTeam() throws Exception {\n InputStream stream = getFileAsStream(\"Room_EmptyInlineEmployeesToTeam.xml\");\n assertNotNull(stream);\n FeedCallback callback = new FeedCallback();\n\n EntityProviderReadProperties readProperties = EntityPr...
{ "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_70
{ "fields": [ { "declarator": "testCase = \"datetime\"", "modifier": "private static", "original_string": "private static String testCase = \"datetime\";", "type": "String", "var_name": "testCase" }, { "declarator": "edmSimpleKindTypeString", "modifier": "private"...
{ "body": "@Test\n public void testConvertTypeTemporalNull2() {\n testCase = \"temporalnull2\";\n try {\n EdmSimpleTypeKind edmDateType =\n \t\t JPATypeConverter.convertToEdmSimpleType(Calendar.class,new JPASimpleAttribute());\n assertEquals(EdmSimpleTypeKind.DateTime, edmDateType);\n } catch ...
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/model/JPATypeConverter.java", "identifier": "JPATypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "JPATypeConverter.convertToEdmSimpleType(final Class<?> j...
{ "body": "public static EdmSimpleTypeKind\n convertToEdmSimpleType(final Class<?> jpaType, final Attribute<?, ?> currentAttribute)\n throws ODataJPAModelException {\n if (jpaType.equals(String.class) || jpaType.equals(Character.class) || jpaType.equals(char.class)\n || jpaType.equals(char[].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_930
{ "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 complexPropertyOnOpenReader() throws Exception {\n final String complexPropertyJson =\n \"{\\\"__metadata\\\":{\\\"type\\\":\\\"RefScenario.c_City\\\"},\\\"PostalCode\\\":\\\"69124\\\",\\\"CityName\\\":\\\"Heidelberg\\\"}\";\n JsonReader reader = prepareReader(complexPrope...
{ "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_199
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraintRole = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraintRole objJPAEdmReferentialConstraintRole = null;", "type": "JPAEdmReferentialConstraintRole", "var_name": "objJPAEdmRe...
{ "body": "@Test\n public void testGetBuilderIdempotent() {\n JPAEdmBuilder builder1 = objJPAEdmReferentialConstraintRole.getBuilder();\n JPAEdmBuilder builder2 = objJPAEdmReferentialConstraintRole.getBuilder();\n\n assertEquals(builder1.hashCode(), builder2.hashCode());\n }", "class_method_signature": "...
{ "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 JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmRefConstraintRoleBuilder();\n }\n\n return builder;\n }", "class_method_signature": "JPAEdmReferentialConstraintRole.getBuilder()", "constructor": false, "full_signature": "@Override public ...
{ "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_463
{ "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 readWithInlineContentEmployeeNullRoomEntry() throws Exception {\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream reqContent = createContentAsStream(EMPLOYEE_1_NULL_ROOM_XML);\n EntityStream stream = new...
{ "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_863
{ "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\n public void readIncompleteEntry() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n InputStream reqContent = createContentAsStream(ROOM_1_XML);\n final ODataEntry result =\n new XmlEntityConsumer().rea...
{ "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_89
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testMapJPAEmbeddableType() {\n assertEquals(\"SalesOrderLineItemKey\", objJPAEdmMappingModelServiceTest.mapJPAEmbeddableType(\"SalesOrderItemKey\"));\n }", "class_method_signature": "JPAEdmMappingModelServiceTest.testMapJPAEmbeddableType()", "constructor": false, "full_signat...
{ "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 mapJPAEmbeddableType(final String jpaEmbeddableTypeName) {\n JPAEmbeddableTypeMapType jpaEmbeddableType = searchJPAEmbeddableTypeMapType(jpaEmbeddableTypeName);\n if (jpaEmbeddableType != null) {\n return jpaEmbeddableType.getEDMComplexType();\n } else {\n retu...
{ "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_475
{ "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 validationOfDoublePropertyDifferentTagHierachyD_Namespace() throws Exception {\n String room =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \" xmlns:m=\\\"http://schemas.microsoft.com/ado/2...
{ "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_926
{ "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 simplePropertyUnfinished() throws Exception {\n final EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getEntityType(\"RefScenario\", \"Employee\").getProperty(\"Age\");\n JsonReader reader = prepareReader(\"{\\\"Age\...
{ "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_66
{ "fields": [ { "declarator": "testCase = \"datetime\"", "modifier": "private static", "original_string": "private static String testCase = \"datetime\";", "type": "String", "var_name": "testCase" }, { "declarator": "edmSimpleKindTypeString", "modifier": "private"...
{ "body": "@Test\n public void testConvertTypeCalendar() {\n try {\n assertEquals(EdmSimpleTypeKind.DateTime, JPATypeConverter.convertToEdmSimpleType(Calendar.class, null));\n assertEquals(EdmSimpleTypeKind.Time, JPATypeConverter.convertToEdmSimpleType(Time.class, null));\n assertEquals(EdmSimpleTy...
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/model/JPATypeConverter.java", "identifier": "JPATypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "JPATypeConverter.convertToEdmSimpleType(final Class<?> j...
{ "body": "public static EdmSimpleTypeKind\n convertToEdmSimpleType(final Class<?> jpaType, final Attribute<?, ?> currentAttribute)\n throws ODataJPAModelException {\n if (jpaType.equals(String.class) || jpaType.equals(Character.class) || jpaType.equals(char.class)\n || jpaType.equals(char[].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_619
{ "fields": [ { "declarator": "edmEntityType", "modifier": "private static", "original_string": "private static EdmEntityTypeImplProv edmEntityType;", "type": "EdmEntityTypeImplProv", "var_name": "edmEntityType" }, { "declarator": "edmEntityTypeWithBaseType", "mod...
{ "body": "@Test\n public void getNavPropertiesWithBaseType() throws Exception {\n List<String> navProperties = edmEntityTypeWithBaseType.getNavigationPropertyNames();\n assertNotNull(navProperties);\n assertTrue(navProperties.contains(\"barBaseNav\"));\n }", "class_method_signature": "EdmEntityTypeImplP...
{ "fields": [ { "declarator": "entityType", "modifier": "private", "original_string": "private EntityType entityType;", "type": "EntityType", "var_name": "entityType" }, { "declarator": "keyProperties", "modifier": "private", "original_string": "private Map<...
{ "body": "@Override\n public List<String> getNavigationPropertyNames() throws EdmException {\n if (edmNavigationPropertyNames == null) {\n edmNavigationPropertyNames = new ArrayList<String>();\n if (edmBaseType != null) {\n edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavig...
{ "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_249
{ "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 keyMatchPositive() throws ODataException {\n SimpleEntity firstInstance = new SimpleEntity(42l, \"A Name\");\n SimpleEntity secondInstance = new SimpleEntity(42l, \"Another Name\");\n\n boolean result = annotationHelper.keyMatch(firstInstance, secondInstance);\n\n Assert.as...
{ "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 boolean keyMatch(final Object firstInstance, final Object secondInstance) {\n if (firstInstance == null || secondInstance == null) {\n return false;\n } else if (firstInstance.getClass() != secondInstance.getClass()) {\n return false;\n }\n\n Map<String, Object> firstKeyFields ...
{ "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_567
{ "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 testRemoveEndingCRLFNothingToRemove() {\n String line = \"Hallo\\r\\nBla\";\n assertEquals(\"Hallo\\r\\nBla\", BatchParserCommon.removeEndingCRLF(new Line(line,1)).toString());\n }", "class_method_signature": "BatchParserCommonTest.testRemoveEndingCRLFNothingToRemove()", "co...
{ "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 Line removeEndingCRLF(final Line line) {\n Pattern pattern = PATTERN_LAST_CRLF;\n Matcher matcher = pattern.matcher(line.toString());\n\n if (matcher.matches()) {\n return new Line(matcher.group(1), line.getLineNumber());\n } else {\n return line;\n }\n }", "class_...
{ "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_137
{ "fields": [ { "declarator": "objJPAEdmEntityContainer", "modifier": "private", "original_string": "private JPAEdmEntityContainer objJPAEdmEntityContainer;", "type": "JPAEdmEntityContainer", "var_name": "objJPAEdmEntityContainer" }, { "declarator": "objJPAEdmEntityCont...
{ "body": "@Test\n public void testGetConsistentEdmEntityContainerList() {\n assertNotNull(objJPAEdmEntityContainer.getConsistentEdmEntityContainerList());\n assertTrue(objJPAEdmEntityContainer.getConsistentEdmEntityContainerList().size() > 0);\n\n }", "class_method_signature": "JPAEdmEntityContainerTest.te...
{ "fields": [ { "declarator": "entitySetView", "modifier": "private", "original_string": "private JPAEdmEntitySetView entitySetView;", "type": "JPAEdmEntitySetView", "var_name": "entitySetView" }, { "declarator": "schemaView", "modifier": "private", "origina...
{ "body": "@Override\n public List<EntityContainer> getConsistentEdmEntityContainerList() {\n return consistentEntityContainerList;\n }", "class_method_signature": "JPAEdmEntityContainer.getConsistentEdmEntityContainerList()", "constructor": false, "full_signature": "@Override public List<EntityContainer> ...
{ "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_834
{ "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\n public void validationOfNamespaceAtPropertiesSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" xml:base=\\\"http://localhost:19000/test/\\\">\" +\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_31
{ "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 buildQueryCountEntity() {\n EdmMapping mapping = (EdmMapping) mockMapping();\n try {\n assertNotNull(builder.build((GetEntityCountUriInfo) mockURIInfoForEntityCount(mapping)));\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMe...
{ "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_971
{ "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 testComplexTypeWithInvalidBaseType2() throws XMLStreamException, EntityProviderException {\n final String xml =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<edmx:DataS...
{ "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_422
{ "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 collectionWithTrailing() throws Exception {\n final EntityPropertyInfo info = EntityInfoAggregator.create(\n MockFacade.getMockEdm().getDefaultEntityContainer().getFunctionImport(\"AllUsedRoomIds\"));\n new JsonPropertyDeserializer...
{ "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 List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,\n final DeserializerProperties readProperties) throws EntityProviderException {\n final Object typeMapping = null ;\n List<Object> result = new ArrayList<Object>();\n String name = null;\n boolean wr...
{ "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_588
{ "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 testBatchResponse() throws ODataException, IOException {\n List<BatchResponsePart> parts = new ArrayList<BatchResponsePart>();\n ODataResponse response = ODataResponse.entity(\"Walter Winter\")\n .status(HttpStatusCodes.OK)\n .contentHeader(\"application/json\")\n ...
{ "fields": [ { "declarator": "COLON = \":\"", "modifier": "private static final", "original_string": "private static final String COLON = \":\";", "type": "String", "var_name": "COLON" }, { "declarator": "SP = \" \"", "modifier": "private static final", "or...
{ "body": "public ODataResponse writeResponse(final List<BatchResponsePart> batchResponseParts) throws BatchException {\n String boundary = BatchHelper.generateBoundary(\"batch\");\n appendResponsePart(batchResponseParts, boundary);\n final Object batchResponseBody;\n int length = 0;\n if(writeEntityAs...
{ "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_995
{ "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 testMissingTypeAtFunctionImport() throws Exception {\n final String xml =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataServices m:Da...
{ "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_583
{ "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(expected = BatchException.class)\n public void testValidateContentTypeMultipleValues() throws BatchException {\n List<String> contentTypeValues =\n Arrays.asList(new String[] { HttpContentType.APPLICATION_HTTP, HttpContentType.MULTIPART_MIXED });\n final Header headers = makeHeaders(Htt...
{ "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_429
{ "fields": [], "file": "odata2-lib/odata-client-core/src/test/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlFeedDeserializerTest.java", "identifier": "XmlFeedDeserializerTest", "interfaces": "", "superclass": "extends AbstractXmlDeserializerTest" }
{ "body": "@Test\n public void readDeltaFeed() throws Exception {\n // prepare\n String content = readFile(\"feed_with_deleted_entries.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n InputStream reqContent = ...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlFeedDeserializer.java", "identifier": "XmlFeedDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlFeedDeserializer.readFeed(final XMLStreamReader read...
{ "body": "public ODataDeltaFeed readFeed(final XMLStreamReader reader, final EntityInfoAggregator eia,\n final DeserializerProperties readProperties) throws EntityProviderException {\n try {\n // read xml tag\n reader.require(XMLStreamConstants.START_DOCUMENT, null, null);\n reader.nextTag();\...
{ "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_5
{ "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 buildGetEntitySetCountTest() {\n try {\n assertNotNull(builder.build((GetEntitySetCountUriInfo) mockURIInfoWithListener(false)));\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART...
{ "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_350
{ "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 testComplexTypeWithInvalidBaseType2() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xml =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_...
{ "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_645
{ "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 nullAnnotationsAtComplexType() throws Exception {\n Edm edm = createEdm();\n assertNotNull(edm);\n EdmAnnotations annotations = edm.getComplexType(\"Self\", \"c_Location\").getAnnotations();\n checkNullAnnotations(annotations);\n }", "class_method_signature": "EdmxProvid...
{ "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 ComplexType getComplexType(final FullQualifiedName edmFQName) throws ODataException {\n for (Schema schema : dataServices.getSchemas()) {\n if (schema.getNamespace().equals(edmFQName.getNamespace())) {\n for (ComplexType complexType : schema.getComplexTypes()) {\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_1034
{ "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 writeEntry() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n Map<String, Object> properties = new HashMap<String, Object>();\n properties.put(\"Id\", \"42\");\n final ODataResponse result =\n...
{ "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 writeEntry(final String contentType, final EdmEntitySet entitySet,\n final Map<String, Object> data, final EntityProviderWriteProperties properties) throws EntityProviderException {\n return create(contentType).writeEntry(entitySet, data, properties);\n }", "cla...
{ "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_215
{ "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 testNoReturnType() {\n VARIANT = 4;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 0);\n\n }", "class_method_signature": "JPAEdmFunctionImportTest.testNoReturn...
{ "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 List<FunctionImport> getConsistentFunctionImportList() {\n return consistentFunctionImportList;\n }", "class_method_signature": "JPAEdmFunctionImport.getConsistentFunctionImportList()", "constructor": false, "full_signature": "@Override public List<FunctionImport> getConsisten...
{ "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_82
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testMapJPAEntityTypeNegative() {\n assertNull(objJPAEdmMappingModelServiceTest.mapJPAEntityType(ENTITY_TYPE_NAME_JPA_WRONG));// Wrong value to bring\n // null\n }", "class_method_signatur...
{ "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_868
{ "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\n public void testReadIntegerPropertyAsLong() throws Exception {\n final EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getEntityType(\"RefScenario\", \"Employee\").getProperty(\"Age\");\n\n String xml = \"<Age xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">42</Age>\";\...
{ "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 Map<String, Object> readProperty(final EdmProperty edmProperty, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n return readProperty(EntityInfoAggregator.create(edmProperty), content, properties);\n }", "class_method_signature"...
{ "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_491
{ "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(expected = EntityProviderException.class)\n public void testReadEntryRequestInvalidMapping() throws Exception {\n XmlEntityDeserializer xec = new XmlEntityDeserializer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStr...
{ "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_184
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraint = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraint objJPAEdmReferentialConstraint = null;", "type": "JPAEdmReferentialConstraint", "var_name": "objJPAEdmReferentialConstra...
{ "body": "@Test\n public void testGetRelationShipName() {\n assertEquals(\"Assoc_SalesOrderHeader_SalesOrderItem\", objJPAEdmReferentialConstraint.getEdmRelationShipName());\n }", "class_method_signature": "JPAEdmReferentialConstraintTest.testGetRelationShipName()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "builder = null", "modifier": "private", "original_string": "private JPAEdmRefConstraintBuilder builder = null;", "type": "JPAEdmRefConstraintBuilder", "var_name": "builder" }, { "declarator": "exists = false", "modifier": "private", ...
{ "body": "@Override\n public String getEdmRelationShipName() {\n return relationShipName;\n }", "class_method_signature": "JPAEdmReferentialConstraint.getEdmRelationShipName()", "constructor": false, "full_signature": "@Override public String getEdmRelationShipName()", "identifier": "getEdmRelationShipN...
{ "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_887
{ "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 testServiceDocument2() throws IOException, EntityProviderException {\n AtomServiceDocumentConsumer svcDocumentParser = new AtomServiceDocumentConsumer();\n ServiceDocument svcDocument = svcDocumentParser.readServiceDokument(createStreamReader(\"/svcAtomExample.xml\"));\n asser...
{ "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_307
{ "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 setMappingValue() throws Exception {\n\n SimpleEntity data = new SimpleEntity();\n data.myMappedProperty = \"mapped property value\";\n EdmMapping mapping = mockMapping(\"getMyMappedProperty\");\n\n Object value = \"Changed mapped property value\";\n ava.setMappingValue(...
{ "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, V> void setMappingValue(final T data, final EdmMapping mapping, final V value) throws ODataException {\n if (mapping != null && mapping.getMediaResourceMimeTypeKey() != null) {\n setValue(data, getSetterMethodName(mapping.getMediaResourceMimeTypeKey()), value);\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_757
{ "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 readComplexPropertyInvalidMapping() throws Exception {\n String xml =\n \"<Location xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\"\"\n + \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" type=\\\"RefScenario.c_Location\...
{ "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_242
{ "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(expected = ClassFormatError.class)\n public void loadFromSpaceDir() throws Exception {\n URL currentPath = Thread.currentThread().getContextClassLoader().getResource(\".\");\n File folder = new File(currentPath.toURI().getSchemeSpecificPart(), \"space space/package\");\n folder.mkdirs();\n ...
{ "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_612
{ "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 oneEntitySetsOneContainerTwoSchemadForInfo() throws Exception {\n List<EntitySet> entitySets = new ArrayList<EntitySet>();\n EntitySet entitySet = new EntitySet().setName(\"Employees\");\n entitySets.add(entitySet);\n\n List<EntityContainer> entityContainers = new ArrayList...
{ "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_487
{ "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": "@SuppressWarnings(\"unchecked\")\n @Test\n public void testReadEntryWithMergeAndMappings() throws Exception {\n // prepare\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n String content = EMPLOYEE_1_XML.replace(\"<d:Age>52</d:Age>\", ...
{ "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_94
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testCheckExclusionOfJPAAttributeType() {\n assertTrue(!objJPAEdmMappingModelServiceTest.checkExclusionOfJPAAttributeType(ENTITY_TYPE_NAME_JPA,\n ATTRIBUTE_NAME_JPA));\n }", "class_method_signature": "JPAEdmMappingModelServiceTest.testCheckExclusionOfJPAAttributeType()", ...
{ "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 boolean checkExclusionOfJPAAttributeType(final String jpaEntityTypeName, final String jpaAttributeName) {\n JPAEntityTypeMapType type = searchJPAEntityTypeMapType(jpaEntityTypeName);\n if (type != null && type.getJPAAttributes() != null) {\n for (JPAAttribute jpaAttribute : 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_891
{ "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(expected = EntityProviderException.class)\n public void testSvcWithoutWorkspaces() throws IOException, EntityProviderException {\n AtomServiceDocumentConsumer svcDocumentParser = new AtomServiceDocumentConsumer();\n svcDocumentParser.readServiceDokument(createStreamReader(\"/invalidSvcExample....
{ "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_192
{ "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 testGetEdmAssociation() {\n assertNotNull(objAssociation.getEdmAssociation());\n assertEquals(ASSOCIATION_NAME,objAssociation.getEdmAssociation().getName());\n }", "class_method_signature": "JPAEdmAssociationTest.testGetEdmAssociation()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "associationEndView", "modifier": "private", "original_string": "private JPAEdmAssociationEndView associationEndView;", "type": "JPAEdmAssociationEndView", "var_name": "associationEndView" }, { "declarator": "currentAssociation", "mod...
{ "body": "@Override\n public Association getEdmAssociation() {\n return currentAssociation;\n }", "class_method_signature": "JPAEdmAssociation.getEdmAssociation()", "constructor": false, "full_signature": "@Override public Association getEdmAssociation()", "identifier": "getEdmAssociation", "invocatio...
{ "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_468
{ "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 validationOfNamespaceAtPropertiesSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" xml:base=\\\"http://localhost:19000/test/\\\">\" +\n \" ...
{ "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_741
{ "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": "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_604
{ "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(expected = ODataException.class)\n public void errorEdmProviderEntitySet() throws Exception {\n EdmServiceMetadata serviceMetadata = new EdmServiceMetadataImplProv(null);\n serviceMetadata.getEntitySetInfos();\n }", "class_method_signature": "EdmServiceMetadataImplProvTest.errorEdmProviderE...
{ "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_254
{ "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 keyMatchNegativeOneNotAnnotated() throws ODataException {\n NotAnnotatedBean firstInstance = new NotAnnotatedBean();\n SimpleEntity secondInstance = new SimpleEntity(42l, \"A Name\");\n\n boolean result = annotationHelper.keyMatch(firstInstance, secondInstance);\n Assert.as...
{ "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 boolean keyMatch(final Object firstInstance, final Object secondInstance) {\n if (firstInstance == null || secondInstance == null) {\n return false;\n } else if (firstInstance.getClass() != secondInstance.getClass()) {\n return false;\n }\n\n Map<String, Object> firstKeyFields ...
{ "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_983
{ "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 testFunctionImportCollError() throws XMLStreamException, EntityProviderException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\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 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_829
{ "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\n public void readWithInlineContentEmployeeNullRoomEntry() throws Exception {\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream reqContent = createContentAsStream(EMPLOYEE_1_NULL_ROOM_XML);\n\n // execute\n XmlEnti...
{ "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_595
{ "fields": [ { "declarator": "annotationsProvider", "modifier": "private", "original_string": "private EdmAnnotationsImplProv annotationsProvider;", "type": "EdmAnnotationsImplProv", "var_name": "annotationsProvider" }, { "declarator": "annotationsProviderWithNullEemen...
{ "body": "@Test\n public void testAttribute() {\n EdmAnnotationAttribute attribute = annotationsProvider.getAnnotationAttribute(\"attributeName\", \"namespace\");\n assertEquals(\"attributeName\", attribute.getName());\n assertEquals(\"namespace\", attribute.getNamespace());\n assertEquals(\"prefix\", a...
{ "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_346
{ "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 testOtherEdmNamespace() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n int i = 0;\n XmlMetadataDeserializer parser = new XmlMetadataDeserializer();\n InputStream reader = createStreamReader(xml2);\n EdmDataServices res...
{ "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_716
{ "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 jsonInputStreamContent() throws Exception {\n ODataResponse response = mock(ODataResponse.class);\n ByteArrayInputStream in = new ByteArrayInputStream(STRING_CONTENT.getBytes());\n when(response.getEntity()).thenReturn(in);\n when(response.getContentHeader()).thenReturn(Htt...
{ "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_203
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraintRole = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraintRole objJPAEdmReferentialConstraintRole = null;", "type": "JPAEdmReferentialConstraintRole", "var_name": "objJPAEdmRe...
{ "body": "@Test\n public void testGetEdmEntityTypeName() {\n assertNull(objJPAEdmReferentialConstraintRole.getEdmEntityTypeName());\n }", "class_method_signature": "JPAEdmReferentialConstraintRoleTest.testGetEdmEntityTypeName()", "constructor": false, "full_signature": "@Test public void testGetEdmEntityT...
{ "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 String getEdmEntityTypeName() {\n return null;\n }", "class_method_signature": "JPAEdmReferentialConstraintRole.getEdmEntityTypeName()", "constructor": false, "full_signature": "@Override public String getEdmEntityTypeName()", "identifier": "getEdmEntityTypeName", "invocat...
{ "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_1022
{ "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 readFeed() throws Exception {\n final String contentType = ContentType.APPLICATION_ATOM_XML_FEED.toContentTypeString();\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream content = getFileAsStream(\"f...
{ "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 ODataFeed readFeed(final String contentType, final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n return create(contentType).readFeed(entitySet, content, properties);\n }", "class_method_s...
{ "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_653
{ "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 testAssociation() throws Exception {\n Edm edm = createEdm();\n assertNotNull(edm);\n\n FullQualifiedName fqNameAssociation = new FullQualifiedName(\"RefScenario\", \"BuildingRooms\");\n EdmProvider testProvider = new EdmTestProvider();\n EdmImplProv edmImpl = (EdmImplPr...
{ "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 Association getAssociation(final FullQualifiedName edmFQName) throws ODataException {\n for (Schema schema : dataServices.getSchemas()) {\n if (schema.getNamespace().equals(edmFQName.getNamespace())) {\n for (Association association : schema.getAssociations()) {\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_444
{ "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 doubleD() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"d\\\":[]}}\");\n EntityStrea...
{ "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" }