id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
18644701_307
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/ModelDiffTest.java", "identifier": "ModelDiffTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetUpdateMaqls() throws Exception {\n final ModelDiff diff = new ModelDiff(new UpdateScript(true, false, \"maql1\", \"maql2\"));\n\n assertThat(diff.getUpdateMaql(), hasSize(2));\n assertThat(diff.getUpdateMaql(), contains(\"maql1\", \"maql2\"));\n }", "...
{ "fields": [ { "declarator": "updateScripts", "modifier": "private final", "original_string": "private final List<UpdateScript> updateScripts;", "type": "List<UpdateScript>", "var_name": "updateScripts" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/p...
{ "body": "public List<String> getUpdateMaql() {\n if (updateScripts.isEmpty()) {\n return emptyList();\n }\n\n UpdateScript chosenScript;\n if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) {\n return unmodifiableList(chosenScript.getMaqlChunks());\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_83
{ "fields": [ { "declarator": "PROJECT_ID = \"TEST_PROJ_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "USER_ID = \"TEST_USER_ID\""...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateSubscriptionNullProject() throws Exception {\n notificationService.createSubscription(null, account, subscription);\n }", "class_method_signature": "NotificationServiceTest.testCreateSubscriptionNullProject()"...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java", "identifier": "NotificationService", "interfaces": "", "methods": [ { "class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa...
{ "body": "public Subscription createSubscription(final Project project, final Account account, final Subscription subscription) {\n notNull(project, \"project\");\n notNull(account, \"account\");\n notNull(subscription, \"subscription\");\n notEmpty(project.getId(), \"project.id\");\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_215
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java", "identifier": "Zendesk4ProcessExecutionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShouldSerializeIncremental() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n execution.setIncremental(true);\n assertThat(execution, jsonEquals(resource(\"connector/process-execution-incremental.json\")));\n }", "class_me...
{ "fields": [ { "declarator": "incremental", "modifier": "private", "original_string": "private Boolean incremental;", "type": "Boolean", "var_name": "incremental" }, { "declarator": "reload", "modifier": "private", "original_string": "private Boolean reload...
{ "body": "public void setIncremental(final Boolean incremental) {\n this.incremental = incremental;\n }", "class_method_signature": "Zendesk4ProcessExecution.setIncremental(final Boolean incremental)", "constructor": false, "full_signature": "public void setIncremental(final Boolean incremental)", ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_147
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test\n public void testGetProjectById() {\n when(restTemplate.getForObject(URI, Project.class)).thenReturn(project);\n\n final Project result = service.getProjectById(ID);\n assertThat(result, is(project));\n }", "class_method_signature": "ProjectServiceTest.testGetProjectById...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public Project getProjectById(String id) {\n notEmpty(id, \"id\");\n return getProjectByUri(PROJECT_TEMPLATE.expand(id).toString());\n }", "class_method_signature": "ProjectService.getProjectById(String id)", "constructor": false, "full_signature": "public Project getProjectById(Stri...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_281
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/AttributeSortTest.java", "identifier": "AttributeSortTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final AttributeSort attributeSort = new AttributeSort(\"/gdc/md/PROJECT_ID/obj/1806\", true);\n\n assertThat(attributeSort.toString(), matchesPattern(AttributeSort.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": ...
{ "fields": [ { "declarator": "serialVersionUID = -7415504020870223701L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -7415504020870223701L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "PK ...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "AttributeSort.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "def...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_40
{ "fields": [ { "declarator": "PROJECT_ID = \"PROJECT_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"", ...
{ "body": "@Test(expectedExceptions = ScheduleExecutionException.class)\n public void testExecuteScheduleExceptionDuringPolling() {\n final ScheduleExecution execution = mock(ScheduleExecution.class);\n when(execution.getUri()).thenReturn(SCHEDULE_EXECUTION_URI);\n\n final Schedule schedule = ...
{ "fields": [ { "declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);", "type": "UriTemplate", "var_name": "SCHEDULE_TEMPLATE" },...
{ "body": "public FutureResult<ScheduleExecution> executeSchedule(final Schedule schedule) {\n notNull(schedule, \"schedule\");\n notNull(schedule.getExecutionsUri(), \"schedule.executionsUri\");\n\n ScheduleExecution scheduleExecution;\n try {\n scheduleExecution = restTemplate...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_110
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test\n public void testGetObjByUri() {\n final Obj resultObj = mock(Obj.class);\n when(restTemplate.getForObject(URI, Obj.class)).thenReturn(resultObj);\n\n final Obj result = service.getObjByUri(URI, Obj.class);\n assertThat(result, is(resultObj));\n }", "class_method_...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_239
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFailedOnUserError() throws Exception {\n assertThat(new Status(USER_ERROR.name(), \"\", \"\").isFailed(), is(true));\n }", "class_method_signature": "StatusTest.testIsFailedOnUserError()", "constructor": false, "full_signature": "@Test public void testIsFailedOn...
{ "fields": [ { "declarator": "code", "modifier": "private final", "original_string": "private final String code;", "type": "String", "var_name": "code" }, { "declarator": "detail", "modifier": "private final", "original_string": "private final String detail...
{ "body": "@JsonIgnore\n public boolean isFailed() {\n return ERROR.name().equalsIgnoreCase(code) || USER_ERROR.name().equalsIgnoreCase(code);\n }", "class_method_signature": "Status.isFailed()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFailed()", "identifier": "isFai...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_17
{ "fields": [ { "declarator": "PROJECT_ID = \"11\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"11\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "FLAG_NAME = \"flag1\"", "modifier": "priv...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullFlagThenDeleteProjectFeatureFlagShouldThrow() throws Exception {\n service.deleteProjectFeatureFlag(null);\n }", "class_method_signature": "FeatureFlagServiceTest.whenNullFlagThenDeleteProjectFeatureFlagShouldTh...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_...
{ "body": "public void deleteProjectFeatureFlag(final ProjectFeatureFlag flag) {\n notNull(flag, \"flag\");\n notEmpty(flag.getUri(), \"flag URI\");\n\n try {\n restTemplate.delete(flag.getUri());\n } catch (GoodDataException | RestClientException e) {\n throw new Goo...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_106
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetObjsByUrisWithNoResponseFromAPI() {\n service.getObjsByUris(project, Collections.emptyList());\n }", "class_method_signature": "MetadataServiceTest.testGetObjsByUrisWithNoResponseFromAPI()", "constructor": false, "f...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public Collection<Obj> getObjsByUris(Project project, Collection<String> uris) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(uris, \"uris\");\n\n try {\n final BulkGet result = restTemplate.postForObject(BulkGet.URI, new Bulk...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_2
{ "fields": [ { "declarator": "PROJECT_ID = \"11\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"11\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "FLAG_NAME = \"flag1\"", "modifier": "priv...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void whenClientErrorResponseThenGetFeatureFlagsShouldThrow() throws Exception {\n when(restTemplate.getForObject(new URI(FEATURE_FLAGS_URI), FeatureFlags.class))\n .thenThrow(new RestClientException(\"\"));\n servi...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_...
{ "body": "public FeatureFlags listFeatureFlags(final Project project) {\n notNull(project, \"project\");\n try {\n final FeatureFlags featureFlags = restTemplate\n .getForObject(AGGREGATED_FEATURE_FLAGS_TEMPLATE.expand(project.getId()), FeatureFlags.class);\n\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_151
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testUpdateUserInProjectNullProject() {\n service.updateUserInProject(null, mock(User.class));\n }", "class_method_signature": "ProjectServiceTest.testUpdateUserInProjectNullProject()", "constructor": false, "full_si...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public void updateUserInProject(final Project project, final User... users) {\n notNull(project, \"project\");\n notNull(users, \"users\");\n notEmpty(project.getId(), \"project.id\");\n\n doPostProjectUsersUpdate(project, users);\n }", "class_method_signature": "ProjectSer...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_297
{ "fields": [ { "declarator": "URI = \"/URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"/URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ALIAS = \"ALIAS\"", "modifier": "private static final", ...
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final AttributeInGrid attr = readObjectFromResource(\"/md/report/attributeInGrid.json\", AttributeInGrid.class);\n\n assertThat(attr.toString(), matchesPattern(AttributeInGrid.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",...
{ "fields": [ { "declarator": "serialVersionUID = 9061580138440068825L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 9061580138440068825L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "uri",...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "AttributeInGrid.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "d...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_278
{ "fields": [ { "declarator": "DATA = \"/gdc/md/PROJECT_ID/obj/PK_ID\"", "modifier": "public static final", "original_string": "public static final String DATA = \"/gdc/md/PROJECT_ID/obj/PK_ID\";", "type": "String", "var_name": "DATA" }, { "declarator": "TYPE = \"col\""...
{ "body": "@Test\n public void testToStringFormat() {\n final Key key = new Key(DATA, TYPE);\n\n assertThat(key.toString(), matchesPattern(Key.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "KeyTest.testToStringFormat()", "constructor": false, "full_signature": "...
{ "fields": [ { "declarator": "serialVersionUID = -2014349746875945306L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2014349746875945306L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "dat...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Key.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultToStri...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_56
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = DatasetException.class)\n public void testGetDatasetManifestWhenRestClientError() {\n when(restTemplate.getForObject(DatasetManifest.URI, DatasetManifest.class, PROJECT_ID, DATASET_ID))\n .thenThrow(new RestClientException(\"\"));\n service.getData...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public DatasetManifest getDatasetManifest(Project project, String datasetId) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notEmpty(datasetId, \"datasetId\");\n try {\n return restTemplate.getForObject(DatasetManifest.URI, DatasetMan...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_296
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/report/OneNumberReportDefinitionContentTest.java", "identifier": "OneNumberReportDefinitionContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final OneNumberReportDefinitionContent def = (OneNumberReportDefinitionContent)\n readObjectFromResource(\"/md/report/oneNumberReportDefinitionContent.json\", ReportDefinitionContent.class);\n assertThat(def, is(notN...
{ "fields": [ { "declarator": "serialVersionUID = 5479509323034916986L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 5479509323034916986L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "FORMA...
{ "body": "public String getFormat() {\n return FORMAT;\n }", "class_method_signature": "OneNumberReportDefinitionContent.getFormat()", "constructor": false, "full_signature": "public String getFormat()", "identifier": "getFormat", "invocations": [], "modifiers": "public", "parameters": "()", ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_279
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/AttributeSortTest.java", "identifier": "AttributeSortTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserializePlain() throws Exception {\n final AttributeSort attributeSort = OBJECT_MAPPER.readValue(\"\\\"pk\\\"\", AttributeSort.class);\n assertThat(attributeSort, is(notNullValue()));\n assertThat(attributeSort.getValue(), is(\"pk\"));\n }", "class_me...
{ "fields": [ { "declarator": "serialVersionUID = -7415504020870223701L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -7415504020870223701L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "PK ...
{ "body": "String getValue() {\n return value;\n }", "class_method_signature": "AttributeSort.getValue()", "constructor": false, "full_signature": " String getValue()", "identifier": "getValue", "invocations": [], "modifiers": "", "parameters": "()", "return": "String", "signature": "Strin...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_57
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = DatasetException.class)\n public void testGetDatasetManifestWhenOtherError() {\n when(restTemplate.getForObject(DatasetManifest.URI, DatasetManifest.class, PROJECT_ID, DATASET_ID))\n .thenThrow(new GoodDataRestException(500, \"\", \"\", \"\", \"\"));\n ...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public DatasetManifest getDatasetManifest(Project project, String datasetId) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notEmpty(datasetId, \"datasetId\");\n try {\n return restTemplate.getForObject(DatasetManifest.URI, DatasetMan...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_150
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testAddUserToProjectNullAccountUri() {\n service.addUserToProject(mock(Project.class), mock(Account.class));\n }", "class_method_signature": "ProjectServiceTest.testAddUserToProjectNullAccountUri()", "constructor": fa...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public User addUserToProject(final Project project, final Account account, final Role... userRoles) {\n notNull(project, \"project\");\n notNull(account, \"account\");\n notEmpty(account.getUri(), \"account.uri\");\n notNull(userRoles, \"userRoles\");\n validateRoleURIs(u...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_107
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetObjByUriNullUri() {\n service.getObjByUri(null, Obj.class);\n }", "class_method_signature": "MetadataServiceTest.testGetObjByUriNullUri()", "constructor": false, "full_signature": "@Test(expectedExceptions = ...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_3
{ "fields": [ { "declarator": "PROJECT_ID = \"11\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"11\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "FLAG_NAME = \"flag1\"", "modifier": "priv...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullArgThenGetProjectFeatureFlagsShouldThrow() throws Exception {\n service.listProjectFeatureFlags(null);\n }", "class_method_signature": "FeatureFlagServiceTest.whenNullArgThenGetProjectFeatureFlagsShouldThrow()",...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_...
{ "body": "public ProjectFeatureFlags listProjectFeatureFlags(final Project project) {\n notNull(project, \"project\");\n try {\n final ProjectFeatureFlags projectFeatureFlags = restTemplate\n .getForObject(PROJECT_FEATURE_FLAGS_TEMPLATE.expand(project.getId()), ProjectFeat...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_238
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFailedOnError() throws Exception {\n assertThat(new Status(ERROR.name(), \"\", \"\").isFailed(), is(true));\n }", "class_method_signature": "StatusTest.testIsFailedOnError()", "constructor": false, "full_signature": "@Test public void testIsFailedOnError()", "...
{ "fields": [ { "declarator": "code", "modifier": "private final", "original_string": "private final String code;", "type": "String", "var_name": "code" }, { "declarator": "detail", "modifier": "private final", "original_string": "private final String detail...
{ "body": "@JsonIgnore\n public boolean isFailed() {\n return ERROR.name().equalsIgnoreCase(code) || USER_ERROR.name().equalsIgnoreCase(code);\n }", "class_method_signature": "Status.isFailed()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFailed()", "identifier": "isFai...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_16
{ "fields": [ { "declarator": "PROJECT_ID = \"11\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"11\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "FLAG_NAME = \"flag1\"", "modifier": "priv...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void whenClientErrorResponseThenUpdateProjectFeatureFlagShouldThrow() throws Exception {\n when(projectFeatureFlag.getUri()).thenReturn(PROJECT_FEATURE_FLAG_URI);\n when(restTemplate.getForObject(PROJECT_FEATURE_FLAG_URI, Project...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_...
{ "body": "public ProjectFeatureFlag updateProjectFeatureFlag(final ProjectFeatureFlag flag) {\n notNull(flag, \"flag\");\n notEmpty(flag.getUri(), \"flag.uri\");\n\n try {\n restTemplate.put(flag.getUri(), flag);\n return getProjectFeatureFlag(flag.getUri());\n } cat...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_111
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetObjByUriWithClientSideHTTPError() {\n when(restTemplate.getForObject(URI, Obj.class)).thenThrow(new RestClientException(\"\"));\n service.getObjByUri(URI, Queryable.class);\n }", "class_method_signature": "Metada...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_280
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/AttributeSortTest.java", "identifier": "AttributeSortTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserializeLink() {\n final AttributeSort attributeSort = readObjectFromResource(\"/md/attributeSort.json\", AttributeSort.class);\n assertThat(attributeSort, is(notNullValue()));\n assertThat(attributeSort.getValue(), is(\"/gdc/md/PROJECT_ID/obj/1806\"));\n ...
{ "fields": [ { "declarator": "serialVersionUID = -7415504020870223701L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -7415504020870223701L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "PK ...
{ "body": "String getValue() {\n return value;\n }", "class_method_signature": "AttributeSort.getValue()", "constructor": false, "full_signature": " String getValue()", "identifier": "getValue", "invocations": [], "modifiers": "", "parameters": "()", "return": "String", "signature": "Strin...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_41
{ "fields": [ { "declarator": "service", "modifier": "private", "original_string": "private AuditEventService service;", "type": "AuditEventService", "var_name": "service" } ], "file": "gooddata-java/src/test/java/com/gooddata/sdk/service/auditevent/AuditEventServiceTest.java...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = \".*account.*\")\n public void shouldFailOnNullAccount() throws Exception {\n service.listAuditEvents((Account) null);\n }", "class_method_signature": "AuditEventServiceTest.shouldFailOnNullAccount()...
{ "fields": [ { "declarator": "ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI);", "type": "UriTemplate", "var_name": "ADMIN_U...
{ "body": "public PageBrowser<AuditEvent> listAuditEvents(final String domainId) {\n return listAuditEvents(domainId, new AuditEventPageRequest());\n }", "class_method_signature": "AuditEventService.listAuditEvents(final String domainId)", "constructor": false, "full_signature": "public PageBrowser<Au...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_146
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetProjectByUriWithNullId() {\n service.getProjectById(null);\n }", "class_method_signature": "ProjectServiceTest.testGetProjectByUriWithNullId()", "constructor": false, "full_signature": "@Test(expectedExceptio...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public Project getProjectById(String id) {\n notEmpty(id, \"id\");\n return getProjectByUri(PROJECT_TEMPLATE.expand(id).toString());\n }", "class_method_signature": "ProjectService.getProjectById(String id)", "constructor": false, "full_signature": "public Project getProjectById(Stri...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_214
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationTest.java", "identifier": "IntegrationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Integration integration = new Integration(\"template\");\n\n assertThat(integration.toString(), matchesPattern(Integration.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "IntegrationTest.testToStringFormat...
{ "fields": [ { "declarator": "URL = \"/gdc/projects/{project}/connectors/{connector}/integration\"", "modifier": "public static final", "original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/{connector}/integration\";", "type": "String", "var_name"...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Integration.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defau...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_243
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Status status = new Status(\"unknown code\", \"\", \"\");\n\n assertThat(status.toString(), matchesPattern(Status.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "StatusTest.testToStringFormat()", "constr...
{ "fields": [ { "declarator": "code", "modifier": "private final", "original_string": "private final String code;", "type": "String", "var_name": "code" }, { "declarator": "detail", "modifier": "private final", "original_string": "private final String detail...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Status.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultToS...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_82
{ "fields": [ { "declarator": "PROJECT_ID = \"TEST_PROJ_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "USER_ID = \"TEST_USER_ID\""...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateChannelEmptyAccountId() throws Exception {\n notificationService.createChannel(mock(Account.class), channel);\n }", "class_method_signature": "NotificationServiceTest.testCreateChannelEmptyAccountId()", "con...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java", "identifier": "NotificationService", "interfaces": "", "methods": [ { "class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa...
{ "body": "public Channel createChannel(final Account account, final Channel channel) {\n notNull(account, \"account\");\n notNull(channel, \"channel\");\n notEmpty(account.getId(), \"account.id\");\n\n try {\n return restTemplate.postForObject(Channel.URI, channel, Channel.clas...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_306
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/MaqlDdlLinksTest.java", "identifier": "MaqlDdlLinksTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"deprecation\")\n @Test\n public void testDeserialization() throws Exception {\n final MaqlDdlLinks maqlDdlLinks = readObjectFromResource(\"/model/maqlDdlLinks.json\", MaqlDdlLinks.class);\n\n assertThat(maqlDdlLinks, is(notNullValue()));\n assertThat(maqlDdlLi...
{ "fields": [ { "declarator": "TASKS_STATUS = \"tasks-status\"", "modifier": "private static final", "original_string": "private static final String TASKS_STATUS = \"tasks-status\";", "type": "String", "var_name": "TASKS_STATUS" } ], "file": "gooddata-java-model/src/main/java...
{ "body": "public String getStatusUri() {\n for (LinkEntry linkEntry : getEntries()) {\n if (TASKS_STATUS.equals(linkEntry.getCategory())) {\n return linkEntry.getUri();\n }\n }\n return null;\n }", "class_method_signature": "MaqlDdlLinks.getStatusUri()",...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_185
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataload/processes/DataloadProcessTest.java", "identifier": "DataloadProcessTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final DataloadProcess process = new DataloadProcess(\"testProcess\", \"GROOVY\");\n\n assertThat(process.toString(), matchesPattern(DataloadProcess.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "DataloadProcess...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/dataload/processes/{processId}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/dataload/processes/{processId}\";", "type": "String", "var_name": "U...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "DataloadProcess.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "d...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_255
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/notification/MessageTemplateTest.java", "identifier": "MessageTemplateTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final MessageTemplate template = readObjectFromResource(\"/notification/template.json\", MessageTemplate.class);\n\n assertThat(template.getExpression(), is(\"test message\"));\n }", "class_method_signature": "MessageTempl...
{ "fields": [ { "declarator": "expression", "modifier": "private final", "original_string": "private final String expression;", "type": "String", "var_name": "expression" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/notification/MessageTemplate.java"...
{ "body": "public String getExpression() {\n return expression;\n }", "class_method_signature": "MessageTemplate.getExpression()", "constructor": false, "full_signature": "public String getExpression()", "identifier": "getExpression", "invocations": [], "modifiers": "public", "parameters": "()...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_310
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/ModelDiffTest.java", "identifier": "ModelDiffTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetUpdateMaqlsNoPreserveData() throws Exception {\n final ModelDiff diff = new ModelDiff(new UpdateScript(false, false, \"maql\"));\n\n assertThat(diff.getUpdateMaql(), hasSize(1));\n assertThat(diff.getUpdateMaql().get(0), equalTo(\"maql\"));\n }", "cla...
{ "fields": [ { "declarator": "updateScripts", "modifier": "private final", "original_string": "private final List<UpdateScript> updateScripts;", "type": "List<UpdateScript>", "var_name": "updateScripts" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/p...
{ "body": "public List<String> getUpdateMaql() {\n if (updateScripts.isEmpty()) {\n return emptyList();\n }\n\n UpdateScript chosenScript;\n if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) {\n return unmodifiableList(chosenScript.getMaqlChunks());\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_94
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = ObjCreateException.class)\n public void testCreateObjNullResponse() {\n final Obj obj = mock(Obj.class);\n service.createObj(project, obj);\n }", "class_method_signature": "MetadataServiceTest.testCreateObjNullResponse()", "constructor": false, "full_sig...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "@SuppressWarnings(\"unchecked\")\n public <T extends Obj> T createObj(Project project, T obj) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(obj, \"obj\");\n\n final T response;\n try {\n response = restTemplate.post...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_193
{ "fields": [ { "declarator": "ROLE = \"admin\"", "modifier": "public static final", "original_string": "public static final String ROLE = \"admin\";", "type": "String", "var_name": "ROLE" }, { "declarator": "PROFILE = \"/gdc/account/profile/{profile-id}\"", "modi...
{ "body": "@Test\n public void testCreateWithProfile() throws Exception {\n final Account account = readObjectFromResource(\"/account/account.json\", Account.class);\n\n final WarehouseUser user = WarehouseUser.createWithProfile(account, WarehouseUserRole.ADMIN);\n assertThat(user.getRole(), i...
{ "fields": [ { "declarator": "URI = WarehouseUsers.URI + \"/{userId}\"", "modifier": "public static final", "original_string": "public static final String URI = WarehouseUsers.URI + \"/{userId}\";", "type": "String", "var_name": "URI" }, { "declarator": "SELF_LINK = \"...
{ "body": "public static WarehouseUser createWithProfile(final Account profile, final WarehouseUserRole role) {\n notNull(role, \"role cannot be null\");\n notNull(profile, \"profile cannot be null\");\n return new WarehouseUser(role.getRoleName(), profile.getId(), null);\n }", "class_method...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_202
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadsTest.java", "identifier": "UploadsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final Uploads uploads = readObjectFromResource(\"/dataset/uploads/uploads.json\", Uploads.class);\n\n assertThat(uploads.toString(), matchesPattern(Uploads.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_sig...
{ "fields": [ { "declarator": "uploads", "modifier": "private final", "original_string": "private final Collection<Upload> uploads;", "type": "Collection<Upload>", "var_name": "uploads" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/dataset/Uploads.jav...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Uploads.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultTo...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_275
{ "fields": [ { "declarator": "AUTHOR = \"/gdc/account/profile/USER_ID\"", "modifier": "public static final", "original_string": "public static final String AUTHOR = \"/gdc/account/profile/USER_ID\";", "type": "String", "var_name": "AUTHOR" }, { "declarator": "CONTRIBUT...
{ "body": "@Test\n public void testToStringFormat() {\n final Meta meta = new Meta(AUTHOR, CONTRIBUTOR, CREATED, UPDATED, SUMMARY, TITLE, CATEGORY, TAGS, URI, IDENTIFIER,\n DEPRECATED, PRODUCTION, LOCKED, UNLISTED, SHARED_WITH_SOMEONE, FLAGS);\n\n assertThat(meta.toString(), matchesPat...
{ "fields": [ { "declarator": "serialVersionUID = -8102041850487115166L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8102041850487115166L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "SUM...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Meta.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultToStr...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_222
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnError() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(ERROR.name(), \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFinished(), is(true));\n }", "class_method_signatu...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\";", ...
{ "body": "@JsonIgnore\n public boolean isFinished() {\n return status != null && status.isFinished();\n }", "class_method_signature": "IntegrationProcessStatus.isFinished()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFinished()", "identifier": "isFinished", "invocat...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_234
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnSynchronized() throws Exception {\n assertThat(new Status(SYNCHRONIZED.name(), \"\", \"\").isFinished(), is(true));\n }", "class_method_signature": "StatusTest.testIsFinishedOnSynchronized()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [ { "declarator": "code", "modifier": "private final", "original_string": "private final String code;", "type": "String", "var_name": "code" }, { "declarator": "detail", "modifier": "private final", "original_string": "private final String detail...
{ "body": "@JsonIgnore\n public boolean isFinished() {\n return SYNCHRONIZED.name().equalsIgnoreCase(code) || isFailed();\n }", "class_method_signature": "Status.isFinished()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFinished()", "identifier": "isFinished", "invoca...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_263
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/MetricTest.java", "identifier": "MetricTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final Metric metric = readObjectFromResource(\"/md/metric-out.json\", Metric.class);\n\n assertThat(metric.toString(), matchesPattern(Metric.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "Metri...
{ "fields": [ { "declarator": "serialVersionUID = -1666713447809179661L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -1666713447809179661L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "con...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Metric.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultToS...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_131
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test\n public void testFindIrregularQueryTypeNames() {\n when(restTemplate.getForObject(anyString(), any(), anyString(), anyString())).thenReturn(mock(Query.class));\n\n service.find(project, ReportDefinition.class);\n verify(restTemplate).getForObject(Query.URI, Query.class, proje...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Queryable> Collection<Entry> find(Project project, Class<T> cls, Restriction... restrictions) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(cls, \"cls\");\n\n final String type = getQueryType(cls);\n try {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_218
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java", "identifier": "Zendesk4ProcessExecutionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShouldSerializeRecoverable() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n execution.setRecoverable(true);\n assertThat(execution, jsonEquals(resource(\"connector/process-execution-recoverable.json\")));\n }", "class_me...
{ "fields": [ { "declarator": "incremental", "modifier": "private", "original_string": "private Boolean incremental;", "type": "Boolean", "var_name": "incremental" }, { "declarator": "reload", "modifier": "private", "original_string": "private Boolean reload...
{ "body": "public void setRecoverable(final Boolean recoverable) {\n this.recoverable = recoverable;\n }", "class_method_signature": "Zendesk4ProcessExecution.setRecoverable(final Boolean recoverable)", "constructor": false, "full_signature": "public void setRecoverable(final Boolean recoverable)", ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_36
{ "fields": [ { "declarator": "PROJECT_ID = \"PROJECT_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"", ...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testListUserProcessesWithNullResponse() {\n when(restTemplate.getForObject(create(USER_PROCESS_URI), DataloadProcesses.class)).thenReturn(null);\n processService.listUserProcesses();\n }", "class_method_signature": "Pro...
{ "fields": [ { "declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);", "type": "UriTemplate", "var_name": "SCHEDULE_TEMPLATE" },...
{ "body": "public Collection<DataloadProcess> listUserProcesses() {\n return listProcesses(USER_PROCESSES_TEMPLATE.expand(accountService.getCurrent().getId()));\n }", "class_method_signature": "ProcessService.listUserProcesses()", "constructor": false, "full_signature": "public Collection<DataloadProc...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_189
{ "fields": [ { "declarator": "TITLE = \"Test\"", "modifier": "public static final", "original_string": "public static final String TITLE = \"Test\";", "type": "String", "var_name": "TITLE" }, { "declarator": "TOKEN = \"{Token}\"", "modifier": "public static final...
{ "body": "@Test\n public void testToStringFormat() {\n final Warehouse warehouse = new Warehouse(TITLE, null, DESCRIPTION, CREATED, UPDATED, CREATED_BY, UPDATED_BY, STATUS, ENVIRONMENT, CONNECTION_URL, LINKS);\n\n assertThat(warehouse.toString(), matchesPattern(Warehouse.class.getSimpleName() + \"\\...
{ "fields": [ { "declarator": "ID_PARAM = \"id\"", "modifier": "private static final", "original_string": "private static final String ID_PARAM = \"id\";", "type": "String", "var_name": "ID_PARAM" }, { "declarator": "URI = Warehouses.URI + \"/{\" + ID_PARAM + \"}\"", ...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Warehouse.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "default...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_166
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/ProjectFeatureFlagTest.java", "identifier": "ProjectFeatureFlagTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final ProjectFeatureFlag flag = new ProjectFeatureFlag(\"test\", false);\n\n assertThat(flag.toString(), matchesPattern(ProjectFeatureFlag.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "ProjectFeatureFlagTest.t...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_URI = ProjectFeatureFlags.PROJECT_FEATURE_FLAGS_URI + \"/{featureFlag}\"", "modifier": "public static final", "original_string": "public static final String PROJECT_FEATURE_FLAG_URI = ProjectFeatureFlags.PROJECT_FEATURE_FLAGS_URI + \"/{featureF...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "ProjectFeatureFlag.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_61
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = DatasetException.class)\n public void testLoadDatasetWhenUploadFails() {\n doThrow(DataStoreException.class).when(dataStoreService).upload(anyString(), eq(stream));\n when(manifest.getFile()).thenReturn(\"\");\n when(manifest.getSource()).thenReturn(stream...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public FutureResult<Void> loadDatasets(final Project project, DatasetManifest... datasets) {\n return loadDatasets(project, asList(datasets));\n }", "class_method_signature": "DatasetService.loadDatasets(final Project project, DatasetManifest... datasets)", "constructor": false, "full_signa...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_170
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/gdc/AsyncTaskTest.java", "identifier": "AsyncTaskTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final AsyncTask asyncTask = readObjectFromResource(\"/gdc/asyncTask.json\", AsyncTask.class);\n\n assertThat(asyncTask.getUri(), is(\"POLL-URI\"));\n }", "class_method_signature": "AsyncTaskTest.testDeserialization()", "...
{ "fields": [ { "declarator": "link", "modifier": "@JsonProperty\n private final", "original_string": "@JsonProperty\n private final Link link;", "type": "Link", "var_name": "link" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/gdc/AsyncTask.java...
{ "body": "@JsonIgnore\n public String getUri() {\n return link.getPoll();\n }", "class_method_signature": "AsyncTask.getUri()", "constructor": false, "full_signature": "@JsonIgnore public String getUri()", "identifier": "getUri", "invocations": [ "getPoll" ], "modifiers": "@JsonIgnore ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_259
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/DimensionTest.java", "identifier": "DimensionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldDeserialize() throws Exception {\n final Dimension dimension = readObjectFromResource(\"/md/dimension.json\", Dimension.class);\n assertThat(dimension, is(notNullValue()));\n\n final Collection<NestedAttribute> attributes = dimension.getAttributes();\n ...
{ "fields": [ { "declarator": "serialVersionUID = -6667238416764957848L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -6667238416764957848L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "con...
{ "body": "@JsonIgnore\n public Collection<NestedAttribute> getAttributes() {\n return content.getAttributes();\n }", "class_method_signature": "Dimension.getAttributes()", "constructor": false, "full_signature": "@JsonIgnore public Collection<NestedAttribute> getAttributes()", "identifier": "get...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_77
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetUploadStatisticsWhenRestClientError() {\n when(restTemplate.getForObject(UploadStatistics.URI, UploadStatistics.class, PROJECT_ID))\n .thenThrow(new RestClientException(\"\"));\n\n service.getUploadStat...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public UploadStatistics getUploadStatistics(Project project) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n\n try {\n return restTemplate.getForObject(UploadStatistics.URI, UploadStatistics.class, project.getId());\n } catch (RestClie...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_98
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test\n public void testUpdateObj() {\n final Updatable obj = mock(Updatable.class);\n final Updatable resultObj = mock(Updatable.class);\n\n when(obj.getUri()).thenReturn(URI);\n final Updatable forObject = restTemplate.getForObject(URI, obj.getClass());\n when(forObj...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "@SuppressWarnings(\"unchecked\")\n public <T extends Updatable> T updateObj(T obj) {\n notNull(obj, \"obj\");\n notNull(obj.getUri(), \"obj.uri\");\n try {\n restTemplate.put(obj.getUri(), obj);\n return getObjByUri(obj.getUri(), (Class<T>) obj.getClass());\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_127
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test\n public void testGetObjToFindOneObjById() {\n final Queryable intendedResult = mock(Queryable.class);\n final Query queryResult = mock(Query.class);\n final Entry resultEntry = mock(Entry.class);\n final String uri = \"myURI\";\n final String id = \"myId\";\n ...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Queryable> T getObj(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } else if (re...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_20
{ "fields": [ { "declarator": "SOME_FILE = \"someFile.txt\"", "modifier": "private static final", "original_string": "private static final String SOME_FILE = \"someFile.txt\";", "type": "String", "var_name": "SOME_FILE" }, { "declarator": "SOME_FILE_PATH = Paths.get(\"a...
{ "body": "@Test\n public void shouldZipSingleFile() throws Exception {\n final File file = temporaryFolder.resolve(SOME_FILE).toFile();\n file.createNewFile();\n try (ByteArrayOutputStream output = new ByteArrayOutputStream()) {\n ZipHelper.zip(file, output);\n output.cl...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/util/ZipHelper.java", "identifier": "ZipHelper", "interfaces": "", "methods": [ { "class_method_signature": "ZipHelper.zip(File file, OutputStream output)", "constructor": false, "full_signature": "public stati...
{ "body": "public static void zip(File file, OutputStream output) throws IOException {\n zip(file, output, false);\n }", "class_method_signature": "ZipHelper.zip(File file, OutputStream output)", "constructor": false, "full_signature": "public static void zip(File file, OutputStream output)", "ident...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_58
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testLoadDatasetWithNullProject() {\n service.loadDataset(null, manifest, stream);\n }", "class_method_signature": "DatasetServiceTest.testLoadDatasetWithNullProject()", "constructor": false, "full_signature": "@Test...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,\n final InputStream dataset) {\n notNull(project, \"project\");\n notNull(dataset, \"dataset\");\n notNull(manifest, \"manifest\");\n manifest.se...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_276
{ "fields": [ { "declarator": "rp1 = new ReportAttachment(\n \"/gdc/md/PROJ_ID/obj/OBJECT_ID1\",\n Collections.singletonMap(\"pageOrientation\", \"landscape\"),\n ExportFormat.PDF, ExportFormat.XLS\n )", "modifier": "private final", "original_string": "private...
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final ScheduledMail scheduledMail = readObjectFromResource(\"/md/scheduledMail.json\", ScheduledMail.class);\n\n assertThat(scheduledMail.toString(), matchesPattern(ScheduledMail.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n ...
{ "fields": [ { "declarator": "serialVersionUID = -4433891105896592638L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -4433891105896592638L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "con...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "ScheduledMail.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "def...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_299
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/FactTest.java", "identifier": "FactTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Fact fact = new Fact(\"Person Shoe Size\", \"/gdc/md/PROJECT_ID/obj/COL_ID\", \"col\", \"/gdc/md/PROJECT_ID/obj/FOLDER_ID\");\n\n assertThat(fact.toString(), matchesPattern(Fact.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class...
{ "fields": [ { "declarator": "serialVersionUID = 1394960609414171940L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1394960609414171940L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "conte...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Fact.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultToStr...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_108
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetObjByUriNullCls() {\n service.getObjByUri(URI, null);\n }", "class_method_signature": "MetadataServiceTest.testGetObjByUriNullCls()", "constructor": false, "full_signature": "@Test(expectedExceptions = Illega...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_221
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java", "identifier": "Zendesk4ProcessExecutionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n\n assertThat(execution.toString(), matchesPattern(Zendesk4ProcessExecution.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "Zendesk4Pro...
{ "fields": [ { "declarator": "incremental", "modifier": "private", "original_string": "private Boolean incremental;", "type": "Boolean", "var_name": "incremental" }, { "declarator": "reload", "modifier": "private", "original_string": "private Boolean reload...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Zendesk4ProcessExecution.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations":...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_19
{ "fields": [ { "declarator": "HOST = \"HOST\"", "modifier": "private static final", "original_string": "private static final String HOST = \"HOST\";", "type": "String", "var_name": "HOST" }, { "declarator": "PORT = 1", "modifier": "private static final", "o...
{ "body": "@Test\n public void testToUri() {\n assertThat(endpoint.toUri(), is(\"http://HOST:1\"));\n }", "class_method_signature": "GoodDataEndpointTest.testToUri()", "constructor": false, "full_signature": "@Test public void testToUri()", "identifier": "testToUri", "invocations": [ "asser...
{ "fields": [ { "declarator": "PROTOCOL = \"https\"", "modifier": "public static final", "original_string": "public static final String PROTOCOL = \"https\";", "type": "String", "var_name": "PROTOCOL" }, { "declarator": "PORT = 443", "modifier": "public static fin...
{ "body": "public String toUri() {\n return new HttpHost(hostname, port, protocol).toURI();\n }", "class_method_signature": "GoodDataEndpoint.toUri()", "constructor": false, "full_signature": "public String toUri()", "identifier": "toUri", "invocations": [ "toURI" ], "modifiers": "public",...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_237
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnUnknownCode() throws Exception {\n assertThat(new Status(\"unknown code\", \"\", \"\").isFinished(), is(false));\n }", "class_method_signature": "StatusTest.testIsFinishedOnUnknownCode()", "constructor": false, "full_signature": "@Test public void test...
{ "fields": [ { "declarator": "code", "modifier": "private final", "original_string": "private final String code;", "type": "String", "var_name": "code" }, { "declarator": "detail", "modifier": "private final", "original_string": "private final String detail...
{ "body": "@JsonIgnore\n public boolean isFinished() {\n return SYNCHRONIZED.name().equalsIgnoreCase(code) || isFailed();\n }", "class_method_signature": "Status.isFinished()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFinished()", "identifier": "isFinished", "invoca...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_149
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testAddUserToProjectNullAccount() {\n service.addUserToProject(mock(Project.class), null);\n }", "class_method_signature": "ProjectServiceTest.testAddUserToProjectNullAccount()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public User addUserToProject(final Project project, final Account account, final Role... userRoles) {\n notNull(project, \"project\");\n notNull(account, \"account\");\n notEmpty(account.getUri(), \"account.uri\");\n notNull(userRoles, \"userRoles\");\n validateRoleURIs(u...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_260
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/DimensionTest.java", "identifier": "DimensionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Dimension dimension = new Dimension(\"Dimension\");\n\n assertThat(dimension.toString(), matchesPattern(Dimension.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "DimensionTest.testToStringFormat()", "con...
{ "fields": [ { "declarator": "serialVersionUID = -6667238416764957848L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -6667238416764957848L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "con...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Dimension.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "default...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_132
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testFindWithWithClientSideHTTPError() {\n when(restTemplate.getForObject(Query.URI, Query.class, project.getId(), \"queryables\")).thenThrow(new RestClientException(\"\"));\n service.find(project, Queryable.class);\n }", ...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Queryable> Collection<Entry> find(Project project, Class<T> cls, Restriction... restrictions) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(cls, \"cls\");\n\n final String type = getQueryType(cls);\n try {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_35
{ "fields": [ { "declarator": "PROJECT_ID = \"PROJECT_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"", ...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testListUserProcessesWithRestClientError() {\n when(restTemplate.getForObject(create(USER_PROCESS_URI), DataloadProcesses.class))\n .thenThrow(new RestClientException(\"\"));\n processService.listUserProcesses...
{ "fields": [ { "declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);", "type": "UriTemplate", "var_name": "SCHEDULE_TEMPLATE" },...
{ "body": "public Collection<DataloadProcess> listUserProcesses() {\n return listProcesses(USER_PROCESSES_TEMPLATE.expand(accountService.getCurrent().getId()));\n }", "class_method_signature": "ProcessService.listUserProcesses()", "constructor": false, "full_signature": "public Collection<DataloadProc...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_165
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/ProjectFeatureFlagTest.java", "identifier": "ProjectFeatureFlagTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCustomValue() throws Exception {\n final ProjectFeatureFlag flag = new ProjectFeatureFlag(\"test\", false);\n assertThat(flag.isEnabled(), is(false));\n }", "class_method_signature": "ProjectFeatureFlagTest.testCustomValue()", "constructor": false, "full_si...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_URI = ProjectFeatureFlags.PROJECT_FEATURE_FLAGS_URI + \"/{featureFlag}\"", "modifier": "public static final", "original_string": "public static final String PROJECT_FEATURE_FLAG_URI = ProjectFeatureFlags.PROJECT_FEATURE_FLAGS_URI + \"/{featureF...
{ "body": "@JsonProperty(\"value\")\n public boolean isEnabled() {\n return enabled;\n }", "class_method_signature": "ProjectFeatureFlag.isEnabled()", "constructor": false, "full_signature": "@JsonProperty(\"value\") public boolean isEnabled()", "identifier": "isEnabled", "invocations": [], "...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_309
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/ModelDiffTest.java", "identifier": "ModelDiffTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetUpdateMaqlsReturnsNotWorst() throws Exception {\n final ModelDiff diff = new ModelDiff(\n new UpdateScript(false, true, \"maql1\"),\n new UpdateScript(false, false, \"maql2\")\n );\n\n assertThat(diff.getUpdateMaql(), hasSize(...
{ "fields": [ { "declarator": "updateScripts", "modifier": "private final", "original_string": "private final List<UpdateScript> updateScripts;", "type": "List<UpdateScript>", "var_name": "updateScripts" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/p...
{ "body": "public List<String> getUpdateMaql() {\n if (updateScripts.isEmpty()) {\n return emptyList();\n }\n\n UpdateScript chosenScript;\n if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) {\n return unmodifiableList(chosenScript.getMaqlChunks());\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_62
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testLoadDatasetByIdWithNullProject() {\n service.loadDataset(null, DATASET_ID, stream);\n }", "class_method_signature": "DatasetServiceTest.testLoadDatasetByIdWithNullProject()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,\n final InputStream dataset) {\n notNull(project, \"project\");\n notNull(dataset, \"dataset\");\n notNull(manifest, \"manifest\");\n manifest.se...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_173
{ "fields": [ { "declarator": "MAIL = \"fake@gooddata.com\"", "modifier": "private static final", "original_string": "private static final String MAIL = \"fake@gooddata.com\";", "type": "String", "var_name": "MAIL" }, { "declarator": "FIRST_NAME = \"Blah\"", "modi...
{ "body": "@Test\n public void testToStringFormat() {\n final Account account = new Account(FIRST_NAME, LAST_NAME, null);\n\n assertThat(account.toString(), matchesPattern(Account.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "AccountTest.testToStringFormat()", "c...
{ "fields": [ { "declarator": "URI = \"/gdc/account/profile/{id}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/account/profile/{id}\";", "type": "String", "var_name": "URI" }, { "declarator": "ACCOUNTS_URI = \"/gdc/ac...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this, \"password\", \"verifyPassword\");\n }", "class_method_signature": "Account.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString",...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_74
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test\n public void testListUploadsForDatasetEmptyResponseBody() throws Exception {\n mockDataSetInfo(DATASET_UPLOADS_URI, null);\n\n when(restTemplate.getForObject(DATASET_UPLOADS_URI, Uploads.class))\n .thenReturn(OBJECT_MAPPER.readValue(\"{\\\"dataUploads\\\":{}}\", Uploa...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public Collection<Upload> listUploadsForDataset(Project project, String datasetId) {\n final UploadsInfo.DataSet dataSet = getDataSetInfo(project, datasetId);\n\n if (isEmpty(dataSet.getUploadsUri())) {\n return emptyList();\n }\n\n try {\n final Uploads re...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_124
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test\n public void testGetObjUriToFindOneObjByTitle() {\n final Query queryResult = mock(Query.class);\n final Entry resultEntry = mock(Entry.class);\n final String uri = \"myURI\";\n final String title = \"myTitle\";\n when(restTemplate.getForObject(Query.URI, Query....
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Queryable> String getObjUri(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } els...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_23
{ "fields": [ { "declarator": "SOME_FILE = \"someFile.txt\"", "modifier": "private static final", "original_string": "private static final String SOME_FILE = \"someFile.txt\";", "type": "String", "var_name": "SOME_FILE" }, { "declarator": "SOME_FILE_PATH = Paths.get(\"a...
{ "body": "@Test\n public void shouldNotZipAlreadyZipped() throws Exception {\n // first prepare zipped file\n final File file = temporaryFolder.resolve(SOME_FILE).toFile();\n file.createNewFile();\n final File zipped = temporaryFolder.resolve(\"zipped.zip\").toFile();\n try (Fil...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/util/ZipHelper.java", "identifier": "ZipHelper", "interfaces": "", "methods": [ { "class_method_signature": "ZipHelper.zip(File file, OutputStream output)", "constructor": false, "full_signature": "public stati...
{ "body": "public static void zip(File file, OutputStream output) throws IOException {\n zip(file, output, false);\n }", "class_method_signature": "ZipHelper.zip(File file, OutputStream output)", "constructor": false, "full_signature": "public static void zip(File file, OutputStream output)", "ident...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_54
{ "fields": [ { "declarator": "PROJECT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"17\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "DATASET_ID = \"11\"", "modifier": "privat...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetDatasetManifestWithEmptyId() {\n service.getDatasetManifest(project, \"\");\n }", "class_method_signature": "DatasetServiceTest.testGetDatasetManifestWithEmptyId()", "constructor": false, "full_signature": "@...
{ "fields": [ { "declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);", "type": "UriTemplate", "var_name": "UPLOADS_INF...
{ "body": "public DatasetManifest getDatasetManifest(Project project, String datasetId) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notEmpty(datasetId, \"datasetId\");\n try {\n return restTemplate.getForObject(DatasetManifest.URI, DatasetMan...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_295
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/report/GridReportDefinitionContentTest.java", "identifier": "GridReportDefinitionContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final GridReportDefinitionContent def = (GridReportDefinitionContent)\n readObjectFromResource(\"/md/report/gridReportDefinitionContent.json\", ReportDefinitionContent.class);\n assertThat(def, is(notNullValue())...
{ "fields": [ { "declarator": "serialVersionUID = 1296467241365069724L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1296467241365069724L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "FORMA...
{ "body": "public String getFormat() {\n return FORMAT;\n }", "class_method_signature": "GridReportDefinitionContent.getFormat()", "constructor": false, "full_signature": "public String getFormat()", "identifier": "getFormat", "invocations": [], "modifiers": "public", "parameters": "()", "re...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_153
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetUserInProjectNullProject() {\n service.getUser(null, mock(Account.class));\n }", "class_method_signature": "ProjectServiceTest.testGetUserInProjectNullProject()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public User getUser(final Project project, final Account account) {\n notNull(account, \"account\");\n notEmpty(account.getId(), \"account.id\");\n notNull(project, \"project\");\n\n try {\n return restTemplate.getForObject(getUserUri(project, account), User.class);\n...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_0
{ "fields": [ { "declarator": "PROJECT_ID = \"11\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"11\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "FLAG_NAME = \"flag1\"", "modifier": "priv...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullArgThenGetFeatureFlagsShouldThrow() throws Exception {\n service.listFeatureFlags(null);\n }", "class_method_signature": "FeatureFlagServiceTest.whenNullArgThenGetFeatureFlagsShouldThrow()", "constructor": fal...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_...
{ "body": "public FeatureFlags listFeatureFlags(final Project project) {\n notNull(project, \"project\");\n try {\n final FeatureFlags featureFlags = restTemplate\n .getForObject(AGGREGATED_FEATURE_FLAGS_TEMPLATE.expand(project.getId()), FeatureFlags.class);\n\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_104
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetObjsByUrisWithClientSideHTTPError() {\n final BulkGetUris request = new BulkGetUris(Collections.singletonList(\"\"));\n when(restTemplate.postForObject(BulkGet.URI, request, BulkGet.class, PROJECT_ID)).thenThrow(new R...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public Collection<Obj> getObjsByUris(Project project, Collection<String> uris) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(uris, \"uris\");\n\n try {\n final BulkGet result = restTemplate.postForObject(BulkGet.URI, new Bulk...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_15
{ "fields": [ { "declarator": "PROJECT_ID = \"11\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"11\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "FLAG_NAME = \"flag1\"", "modifier": "priv...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void whenEmptyResponseThenUpdateProjectFeatureFlagShouldThrow() throws Exception {\n when(projectFeatureFlag.getUri()).thenReturn(PROJECT_FEATURE_FLAG_URI);\n when(restTemplate.getForObject(PROJECT_FEATURE_FLAG_URI, ProjectFeatur...
{ "fields": [ { "declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_...
{ "body": "public ProjectFeatureFlag updateProjectFeatureFlag(final ProjectFeatureFlag flag) {\n notNull(flag, \"flag\");\n notEmpty(flag.getUri(), \"flag.uri\");\n\n try {\n restTemplate.put(flag.getUri(), flag);\n return getProjectFeatureFlag(flag.getUri());\n } cat...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_112
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = GoodDataRestException.class)\n public void testGetObjByUriWithServerSideHTTPError() {\n when(restTemplate.getForObject(URI, Obj.class)).thenThrow(new GoodDataRestException(500, \"\", \"\", \"\", \"\"));\n service.getObjByUri(URI, Obj.class);\n }", "class_met...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_42
{ "fields": [ { "declarator": "service", "modifier": "private", "original_string": "private AuditEventService service;", "type": "AuditEventService", "var_name": "service" } ], "file": "gooddata-java/src/test/java/com/gooddata/sdk/service/auditevent/AuditEventServiceTest.java...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = \".*account.*\")\n public void shouldFailOnNullAccountButPage() throws Exception {\n service.listAuditEvents((Account) null, new CustomPageRequest());\n }", "class_method_signature": "AuditEventServi...
{ "fields": [ { "declarator": "ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI);", "type": "UriTemplate", "var_name": "ADMIN_U...
{ "body": "public PageBrowser<AuditEvent> listAuditEvents(final String domainId) {\n return listAuditEvents(domainId, new AuditEventPageRequest());\n }", "class_method_signature": "AuditEventService.listAuditEvents(final String domainId)", "constructor": false, "full_signature": "public PageBrowser<Au...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_283
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/RestrictionTest.java", "identifier": "RestrictionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIdentifier() {\n final Restriction id = Restriction.identifier(\"my id\");\n assertThat(id, is(notNullValue()));\n assertThat(id.getType(), is(Restriction.Type.IDENTIFIER));\n assertThat(id.getValue(), is(\"my id\"));\n }", "class_method_signature...
{ "fields": [ { "declarator": "type", "modifier": "private final", "original_string": "private final Type type;", "type": "Type", "var_name": "type" }, { "declarator": "value", "modifier": "private final", "original_string": "private final String value;", ...
{ "body": "public static Restriction identifier(String value) {\n return new Restriction(Type.IDENTIFIER, value);\n }", "class_method_signature": "Restriction.identifier(String value)", "constructor": false, "full_signature": "public static Restriction identifier(String value)", "identifier": "ident...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_145
{ "fields": [ { "declarator": "ACCOUNT_ID = \"17\"", "modifier": "private static final", "original_string": "private static final String ACCOUNT_ID = \"17\";", "type": "String", "var_name": "ACCOUNT_ID" }, { "declarator": "ID = \"11\"", "modifier": "private static...
{ "body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetProjectByUriClientError() {\n when(restTemplate.getForObject(URI, Project.class)).thenThrow(new RestClientException(\"\"));\n service.getProjectByUri(URI);\n }", "class_method_signature": "ProjectServiceTest.test...
{ "fields": [ { "declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);", "type": "UriTemplate", "var_name": "PROJECT_TEMPLATE" }, ...
{ "body": "public Project getProjectByUri(final String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, Project.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\n throw new...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_39
{ "fields": [ { "declarator": "PROJECT_ID = \"PROJECT_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"", ...
{ "body": "@Test(expectedExceptions = ScheduleExecutionException.class)\n public void testExecuteScheduleException() {\n when(restTemplate.postForObject(eq(SCHEDULE_EXECUTIONS_URI), any(ScheduleExecution.class), eq(ScheduleExecution.class)))\n .thenThrow(new RestClientException(\"\"));\n\n ...
{ "fields": [ { "declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);", "type": "UriTemplate", "var_name": "SCHEDULE_TEMPLATE" },...
{ "body": "public FutureResult<ScheduleExecution> executeSchedule(final Schedule schedule) {\n notNull(schedule, \"schedule\");\n notNull(schedule.getExecutionsUri(), \"schedule.executionsUri\");\n\n ScheduleExecution scheduleExecution;\n try {\n scheduleExecution = restTemplate...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_217
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java", "identifier": "Zendesk4ProcessExecutionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShouldSerializeReload() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n execution.setReload(true);\n assertThat(execution, jsonEquals(resource(\"connector/process-execution-reload.json\")));\n }", "class_method_signature"...
{ "fields": [ { "declarator": "incremental", "modifier": "private", "original_string": "private Boolean incremental;", "type": "Boolean", "var_name": "incremental" }, { "declarator": "reload", "modifier": "private", "original_string": "private Boolean reload...
{ "body": "public void setReload(final Boolean reload) {\n this.reload = reload;\n }", "class_method_signature": "Zendesk4ProcessExecution.setReload(final Boolean reload)", "constructor": false, "full_signature": "public void setReload(final Boolean reload)", "identifier": "setReload", "invocation...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_81
{ "fields": [ { "declarator": "PROJECT_ID = \"TEST_PROJ_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "USER_ID = \"TEST_USER_ID\""...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateChannelNullChannel() throws Exception {\n notificationService.createChannel(mock(Account.class), null);\n }", "class_method_signature": "NotificationServiceTest.testCreateChannelNullChannel()", "constructor"...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java", "identifier": "NotificationService", "interfaces": "", "methods": [ { "class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa...
{ "body": "public Channel createChannel(final Account account, final Channel channel) {\n notNull(account, \"account\");\n notNull(channel, \"channel\");\n notEmpty(account.getId(), \"account.id\");\n\n try {\n return restTemplate.postForObject(Channel.URI, channel, Channel.clas...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_305
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationResultTest.java", "identifier": "ProjectValidationResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final ProjectValidationResult log = readObjectFromResource(\"/project/project-validationResultLog.json\", ProjectValidationResult.class);\n\n assertThat(log.toString(), matchesPattern(ProjectValidationResult.class.getSimpleName(...
{ "fields": [ { "declarator": "category", "modifier": "private final", "original_string": "private final String category;", "type": "String", "var_name": "category" }, { "declarator": "level", "modifier": "private final", "original_string": "private final St...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "ProjectValidationResult.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_240
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFailedOnSynchronized() throws Exception {\n assertThat(new Status(SYNCHRONIZED.name(), \"\", \"\").isFailed(), is(false));\n }", "class_method_signature": "StatusTest.testIsFailedOnSynchronized()", "constructor": false, "full_signature": "@Test public void testI...
{ "fields": [ { "declarator": "code", "modifier": "private final", "original_string": "private final String code;", "type": "String", "var_name": "code" }, { "declarator": "detail", "modifier": "private final", "original_string": "private final String detail...
{ "body": "@JsonIgnore\n public boolean isFailed() {\n return ERROR.name().equalsIgnoreCase(code) || USER_ERROR.name().equalsIgnoreCase(code);\n }", "class_method_signature": "Status.isFailed()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFailed()", "identifier": "isFai...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_169
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/gdc/UriResponseTest.java", "identifier": "UriResponseTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final UriResponse uriResponse = readObjectFromResource(\"/gdc/uriResponse.json\", UriResponse.class);\n\n assertThat(uriResponse, is(notNullValue()));\n assertThat(uriResponse.getUri(), is(\"URI\"));\n }", "class_me...
{ "fields": [ { "declarator": "serialVersionUID = 7622971178590505890L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 7622971178590505890L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "uri",...
{ "body": "public String getUri() {\n return uri;\n }", "class_method_signature": "UriResponse.getUri()", "constructor": false, "full_signature": "public String getUri()", "identifier": "getUri", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", "signature":...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_186
{ "fields": [ { "declarator": "PARAM_KEY = \"KEY\"", "modifier": "private static final", "original_string": "private static final String PARAM_KEY = \"KEY\";", "type": "String", "var_name": "PARAM_KEY" }, { "declarator": "PARAM_VALUE = \"VALUE\"", "modifier": "pri...
{ "body": "@Test\n public void testDeserializeWithParams() throws Exception {\n final AuditEvent deserializedObject = readObjectFromResource(\"/auditevents/auditEventWithParam.json\", AuditEvent.class);\n assertThat(deserializedObject.getParams(), hasEntry(\"KEY\", \"VALUE\"));\n }", "class_meth...
{ "fields": [ { "declarator": "GDC_URI = \"/gdc\"", "modifier": "public static final", "original_string": "public static final String GDC_URI = \"/gdc\";", "type": "String", "var_name": "GDC_URI" }, { "declarator": "USER_URI = GDC_URI + \"/account/profile/{userId}/audit...
{ "body": "public Map<String, String> getParams() {\n return params;\n }", "class_method_signature": "AuditEvent.getParams()", "constructor": false, "full_signature": "public Map<String, String> getParams()", "identifier": "getParams", "invocations": [], "modifiers": "public", "parameters": "(...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_313
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/ModelDiffTest.java", "identifier": "ModelDiffTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final ModelDiff diff = readObjectFromResource(\"/model/modelDiff.json\", ModelDiff.class);\n\n assertThat(diff, is(notNullValue()));\n assertThat(diff.getUpdateScripts(), hasSize(2));\n assertThat(diff.getUpdateSc...
{ "fields": [ { "declarator": "updateScripts", "modifier": "private final", "original_string": "private final List<UpdateScript> updateScripts;", "type": "List<UpdateScript>", "var_name": "updateScripts" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/p...
{ "body": "List<UpdateScript> getUpdateScripts() {\n return unmodifiableList(updateScripts);\n }", "class_method_signature": "ModelDiff.getUpdateScripts()", "constructor": false, "full_signature": " List<UpdateScript> getUpdateScripts()", "identifier": "getUpdateScripts", "invocations": [ "unm...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_97
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test\n public void testCreateObj() {\n final Obj obj = mock(Obj.class);\n final Obj resultObj = mock(Obj.class);\n\n when(restTemplate.postForObject(eq(Obj.CREATE_WITH_ID_URI), eq(obj), Matchers.<Class<Obj>>any(), eq(PROJECT_ID)))\n .thenReturn(resultObj);\n\n ...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "@SuppressWarnings(\"unchecked\")\n public <T extends Obj> T createObj(Project project, T obj) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(obj, \"obj\");\n\n final T response;\n try {\n response = restTemplate.post...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_78
{ "fields": [ { "declarator": "PROJECT_ID = \"TEST_PROJ_ID\"", "modifier": "private static final", "original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";", "type": "String", "var_name": "PROJECT_ID" }, { "declarator": "USER_ID = \"TEST_USER_ID\""...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testTriggerNullEvent() throws Exception {\n notificationService.triggerEvent(project, null);\n }", "class_method_signature": "NotificationServiceTest.testTriggerNullEvent()", "constructor": false, "full_signature": ...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java", "identifier": "NotificationService", "interfaces": "", "methods": [ { "class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa...
{ "body": "public void triggerEvent(final Project project, final ProjectEvent event) {\n notNull(project, \"project\");\n notNull(event, \"event\");\n try {\n restTemplate.postForEntity(ProjectEvent.URI, event, Void.class, project.getId());\n } catch (GoodDataRestException | Res...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_256
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/notification/EmailConfigurationTest.java", "identifier": "EmailConfigurationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final EmailConfiguration emailConfiguration = readObjectFromResource(\"/notification/emailConfiguration.json\", EmailConfiguration.class);\n\n assertThat(emailConfiguration.getTo(), is(\"fake@gooddata.com\"));\n }", "class...
{ "fields": [ { "declarator": "to", "modifier": "private final", "original_string": "private final String to;", "type": "String", "var_name": "to" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/notification/EmailConfiguration.java", "identifier": "Em...
{ "body": "public String getTo() {\n return to;\n }", "class_method_signature": "EmailConfiguration.getTo()", "constructor": false, "full_signature": "public String getTo()", "identifier": "getTo", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", "signature...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_190
{ "fields": [ { "declarator": "ROLE = \"admin\"", "modifier": "public static final", "original_string": "public static final String ROLE = \"admin\";", "type": "String", "var_name": "ROLE" }, { "declarator": "PROFILE = \"/gdc/account/profile/{profile-id}\"", "modi...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateWithProfileIdWithNullRole() throws Exception {\n WarehouseUser.createWithProfileUri(PROFILE, null);\n }", "class_method_signature": "WarehouseUserTest.testCreateWithProfileIdWithNullRole()", "constructor": f...
{ "fields": [ { "declarator": "URI = WarehouseUsers.URI + \"/{userId}\"", "modifier": "public static final", "original_string": "public static final String URI = WarehouseUsers.URI + \"/{userId}\";", "type": "String", "var_name": "URI" }, { "declarator": "SELF_LINK = \"...
{ "body": "public static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role) {\n notNull(role, \"role cannot be null\");\n return new WarehouseUser(role.getRoleName(), profileUri, null);\n }", "class_method_signature": "WarehouseUser.createWithProfileUri(final ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_201
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadsTest.java", "identifier": "UploadsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldDeserialize() throws Exception {\n final Uploads uploads = readObjectFromResource(\"/dataset/uploads/uploads.json\", Uploads.class);\n\n assertThat(uploads, notNullValue());\n assertThat(uploads.items(), not(Matchers.empty()));\n assertThat(uploads.i...
{ "fields": [ { "declarator": "uploads", "modifier": "private final", "original_string": "private final Collection<Upload> uploads;", "type": "Collection<Upload>", "var_name": "uploads" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/dataset/Uploads.jav...
{ "body": "public Collection<Upload> items() {\n return uploads;\n }", "class_method_signature": "Uploads.items()", "constructor": false, "full_signature": "public Collection<Upload> items()", "identifier": "items", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Col...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_128
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = NonUniqueObjException.class)\n public void testGetObjMoreThanOneResult() {\n final Query queryResult = mock(Query.class);\n final Entry resultEntry1 = mock(Entry.class);\n final Entry resultEntry2 = mock(Entry.class);\n when(restTemplate.getForObjec...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Queryable> T getObj(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } else if (re...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_129
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = ObjNotFoundException.class)\n public void testGetObjNothingFound() {\n final Query queryResult = mock(Query.class);\n final Entry resultEntry = mock(Entry.class);\n final String title = \"myTitle\";\n when(restTemplate.getForObject(Query.URI, Query....
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "public <T extends Queryable> T getObj(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } else if (re...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_200
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadStatisticsTest.java", "identifier": "UploadStatisticsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final UploadStatistics uploadStatistics = readObjectFromResource(\"/dataset/uploads/data-uploads-info.json\", UploadStatistics.class);\n\n assertThat(uploadStatistics.toString(), matchesPattern(UploadStatistics.class.getSimpleNa...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/data/uploads_info\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/data/uploads_info\";", "type": "String", "var_name": "URI" }, { "declarator": "...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "UploadStatistics.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_191
{ "fields": [ { "declarator": "ROLE = \"admin\"", "modifier": "public static final", "original_string": "public static final String ROLE = \"admin\";", "type": "String", "var_name": "ROLE" }, { "declarator": "PROFILE = \"/gdc/account/profile/{profile-id}\"", "modi...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateWithProfileWithNullRole() throws Exception {\n final Account account = readObjectFromResource(\"/account/account.json\", Account.class);\n WarehouseUser.createWithProfile(account, null);\n }", "class_me...
{ "fields": [ { "declarator": "URI = WarehouseUsers.URI + \"/{userId}\"", "modifier": "public static final", "original_string": "public static final String URI = WarehouseUsers.URI + \"/{userId}\";", "type": "String", "var_name": "URI" }, { "declarator": "SELF_LINK = \"...
{ "body": "public static WarehouseUser createWithProfile(final Account profile, final WarehouseUserRole role) {\n notNull(role, \"role cannot be null\");\n notNull(profile, \"profile cannot be null\");\n return new WarehouseUser(role.getRoleName(), profile.getId(), null);\n }", "class_method...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_96
{ "fields": [ { "declarator": "URI = \"TEST_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"TEST_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ID = \"TEST_ID\"", "modifier": "private static fin...
{ "body": "@Test(expectedExceptions = ObjCreateException.class)\n public void testCreateObjRestClientException() {\n final Obj obj = mock(Obj.class);\n when(restTemplate.postForObject(Obj.URI, obj, UriResponse.class, PROJECT_ID))\n .thenThrow(new RestClientException(\"\"));\n se...
{ "fields": [ { "declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);", "type": "UriTemplate", "var_name": "OBJ_TEMPLATE" }, { "dec...
{ "body": "@SuppressWarnings(\"unchecked\")\n public <T extends Obj> T createObj(Project project, T obj) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(obj, \"obj\");\n\n final T response;\n try {\n response = restTemplate.post...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...
18644701_312
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/ModelDiffTest.java", "identifier": "ModelDiffTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetUpdateMaqlsNoMaqlInUpdateScript() throws Exception {\n final ModelDiff diff = new ModelDiff(new UpdateScript(true, false, Collections.emptyList()));\n\n assertThat(diff.getUpdateMaql(), hasSize(0));\n }", "class_method_signature": "ModelDiffTest.testGetUpdat...
{ "fields": [ { "declarator": "updateScripts", "modifier": "private final", "original_string": "private final List<UpdateScript> updateScripts;", "type": "List<UpdateScript>", "var_name": "updateScripts" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/p...
{ "body": "public List<String> getUpdateMaql() {\n if (updateScripts.isEmpty()) {\n return emptyList();\n }\n\n UpdateScript chosenScript;\n if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) {\n return unmodifiableList(chosenScript.getMaqlChunks());\n ...
{ "created": "4/10/2014 5:09:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 18644701, "size": null, "stargazer_count": null, "stars": 15, "updates": "2020-01-16T11:56:32+00:00", "url": "https://github.com/gooddata/gooddata...