id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
18644701_93
{ "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": "project", "modifier":...
{ "body": "@Test(expectedExceptions = ExportImportException.class)\n public void testCreatePartialImportError() throws Exception {\n when(restTemplate.postForObject(eq(PartialMdExportToken.URI), any(PartialMdExportToken.class), eq(UriResponse.class), eq(PROJECT_ID)))\n .thenThrow(new GoodData...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/md/maintenance/ExportImportService.java", "identifier": "ExportImportService", "interfaces": "", "methods": [ { "class_method_signature": "ExportImportService.ExportImportService(final RestTemplate restTemplate, final Good...
{ "body": "public FutureResult<Void> partialImport(Project project, PartialMdExportToken mdExportToken) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(mdExportToken, \"mdExportToken\");\n\n final UriResponse importResponse;\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_317
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationResultSliElParamTest.java", "identifier": "ProjectValidationResultSliElParamTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expectedExceptions = IllegalStateException.class)\n public void testAsMapNullVals() throws Exception {\n new ProjectValidationResultSliElParam(singletonList(\"2\"), null).asMap();\n }", "class_method_signature": "ProjectValidationResultSliElParamTest.testAsMapNullVals()", "constructo...
{ "fields": [ { "declarator": "ids", "modifier": "private final", "original_string": "private final List<String> ids;", "type": "List<String>", "var_name": "ids" }, { "declarator": "vals", "modifier": "private final", "original_string": "private final List<S...
{ "body": "public Map<String, String> asMap() {\n if (ids == null) {\n return null;\n }\n\n if (vals == null) {\n throw new IllegalStateException(\"Values not defined for IDs.\");\n }\n\n if (ids.size() != vals.size()) {\n throw new IllegalStateExcep...
{ "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_182
{ "fields": [ { "declarator": "EXECUTABLE = \"Twitter/graph/twitter.grf\"", "modifier": "private static final", "original_string": "private static final String EXECUTABLE = \"Twitter/graph/twitter.grf\";", "type": "String", "var_name": "EXECUTABLE" }, { "declarator": "p...
{ "body": "@Test\n public void testSetProcessId() {\n final Schedule schedule = new Schedule(process, EXECUTABLE, \"0 0 * * *\");\n when(process.getId()).thenReturn(\"other\");\n assertThat(schedule.getProcessId(), is(\"process_id\"));\n schedule.setProcessId(process);\n assertTh...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\";", "type": "String", "var_name": "URI" }, {...
{ "body": "public void setProcessId(final DataloadProcess process) {\n params.put(PROCESS_ID, process.getId());\n }", "class_method_signature": "Schedule.setProcessId(final DataloadProcess process)", "constructor": false, "full_signature": "public void setProcessId(final DataloadProcess process)", "...
{ "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_244
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4SettingsTest.java", "identifier": "Zendesk4SettingsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetConnectorType() throws Exception {\n assertThat(new Zendesk4Settings(\"url\").getConnectorType(), is(ZENDESK4));\n }", "class_method_signature": "Zendesk4SettingsTest.testGetConnectorType()", "constructor": false, "full_signature": "@Test public void testGetCon...
{ "fields": [ { "declarator": "URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\"", "modifier": "public static final", "original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\";", "type": "String", ...
{ "body": "@Override\n public ConnectorType getConnectorType() {\n return ZENDESK4;\n }", "class_method_signature": "Zendesk4Settings.getConnectorType()", "constructor": false, "full_signature": "@Override public ConnectorType getConnectorType()", "identifier": "getConnectorType", "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_301
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/ProjectDashboardTest.java", "identifier": "ProjectDashboardTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final ProjectDashboard dashboard = readObjectFromResource(\"/md/projectDashboard.json\", ProjectDashboard.class);\n\n assertThat(dashboard.toString(), matchesPattern(ProjectDashboard.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n...
{ "fields": [ { "declarator": "serialVersionUID = 6791559547484536326L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 6791559547484536326L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "conte...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "ProjectDashboard.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_85
{ "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 testCreateSubscriptionNullSubscription() throws Exception {\n notificationService.createSubscription(project, account, null);\n }", "class_method_signature": "NotificationServiceTest.testCreateSubscriptionNullSubscripti...
{ "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_213
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/DatasetManifestTest.java", "identifier": "DatasetManifestTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final DatasetManifest manifest = new DatasetManifest(\"dataset.name\");\n\n assertThat(manifest.toString(), matchesPattern(DatasetManifest.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "DatasetManifestTest.test...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/ldm/singleloadinterface/{dataSet}/manifest\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/ldm/singleloadinterface/{dataSet}/manifest\";", "type": "String", "v...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this, \"source\");\n }", "class_method_signature": "DatasetManifest.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "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_141
{ "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 testGetProjectByUriWithNullUri() {\n service.getProjectByUri(null);\n }", "class_method_signature": "ProjectServiceTest.testGetProjectByUriWithNullUri()", "constructor": false, "full_signature": "@Test(expectedExcep...
{ "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_287
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/RestrictionTest.java", "identifier": "RestrictionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSummary() {\n final Restriction id = Restriction.summary(\"my summary\");\n assertThat(id, is(notNullValue()));\n assertThat(id.getType(), is(Restriction.Type.SUMMARY));\n assertThat(id.getValue(), is(\"my summary\"));\n }", "class_method_signatur...
{ "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 summary(String value) {\n return new Restriction(Type.SUMMARY, value);\n }", "class_method_signature": "Restriction.summary(String value)", "constructor": false, "full_signature": "public static Restriction summary(String value)", "identifier": "summary", "invo...
{ "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_46
{ "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 = \".*domain.*\")\n public void shouldFailOnNullDomainButPage() throws Exception {\n service.listAuditEvents((String) null, new CustomPageRequest());\n }", "class_method_signature": "AuditEventServiceT...
{ "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_268
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/ColumnTest.java", "identifier": "ColumnTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final Column column = readObjectFromResource(\"/md/column.json\", Column.class);\n\n assertThat(column.toString(), matchesPattern(Column.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "ColumnTes...
{ "fields": [ { "declarator": "serialVersionUID = 8235010456787885263L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 8235010456787885263L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "TYPE_...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Column.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_116
{ "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 testGetObjByIdNullCls() {\n service.getObjById(project, ID, null);\n }", "class_method_signature": "MetadataServiceTest.testGetObjByIdNullCls()", "constructor": false, "full_signature": "@Test(expectedExceptions = I...
{ "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 getObjById(Project project, String id, Class<T> cls) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(id, \"id\");\n notNull(cls, \"cls\");\n return getObjByUri(OBJ_TEMPLATE.expand(project.getId(), id).toStr...
{ "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_11
{ "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 whenNullProjectThenGetProjectFeatureFlagShouldThrow() throws Exception {\n service.getProjectFeatureFlag(null, FLAG_NAME);\n }", "class_method_signature": "FeatureFlagServiceTest.whenNullProjectThenGetProjectFeatureFlag...
{ "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 getProjectFeatureFlag(final Project project, final String featureFlagName) {\n notNull(project, \"project\");\n notEmpty(featureFlagName, \"featureFlagName\");\n\n try {\n final ProjectFeatureFlag flag = getProjectFeatureFlag(getProjectFeatureFlagUr...
{ "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_4
{ "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 whenEmptyResponseThenGetProjectFeatureFlagsShouldThrow() throws Exception {\n when(restTemplate.getForObject(new URI(PROJECT_FEATURE_FLAGS_URI), ProjectFeatureFlags.class)).thenReturn(null);\n service.listProjectFeatureFlags...
{ "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_100
{ "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 = ObjUpdateException.class)\n public void testUpdateObjRestException() {\n final Updatable obj = mock(Updatable.class);\n\n when(obj.getUri()).thenReturn(URI);\n doThrow(RestClientException.class).when(restTemplate).put(URI, obj);\n\n service.updateOb...
{ "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_229
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFailedOnSynchronized() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(SYNCHRONIZED.name(), \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFailed(), is(false));\n }", "class_met...
{ "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 isFailed() {\n return status != null && status.isFailed();\n }", "class_method_signature": "IntegrationProcessStatus.isFailed()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFailed()", "identifier": "isFailed", "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_157
{ "fields": [ { "declarator": "service", "modifier": "private", "original_string": "private AbstractService service;", "type": "AbstractService", "var_name": "service" }, { "declarator": "restTemplate", "modifier": "@Mock\n private", "original_string": "@...
{ "body": "@Test(expectedExceptions = GoodDataException.class, expectedExceptionsMessageRegExp = \".*timeout.*\")\n public void pollShouldThrowExceptionWhenOverTimeout() throws Exception {\n PollHandler<?, ?> handler = mock(PollHandler.class);\n service.poll(handler, 5, TimeUnit.SECONDS);\n }", ...
{ "fields": [ { "declarator": "restTemplate", "modifier": "protected final", "original_string": "protected final RestTemplate restTemplate;", "type": "RestTemplate", "var_name": "restTemplate" }, { "declarator": "settings", "modifier": "private final", "orig...
{ "body": "final <R> R poll(final PollHandler<?,R> handler, long timeout, final TimeUnit unit) {\n notNull(handler, \"handler\");\n final long start = System.currentTimeMillis();\n while (true) {\n if (pollOnce(handler)) {\n return handler.getResult();\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_291
{ "fields": [ { "declarator": "DEFINITION_URI = \"/gdc/md/PROJECT_ID/obj/DEF_ID\"", "modifier": "private static final", "original_string": "private static final String DEFINITION_URI = \"/gdc/md/PROJECT_ID/obj/DEF_ID\";", "type": "String", "var_name": "DEFINITION_URI" }, { ...
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final Report report = readObjectFromResource(\"/md/report/report.json\", Report.class);\n\n assertThat(report.toString(), matchesPattern(Report.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "Re...
{ "fields": [ { "declarator": "serialVersionUID = 189440633045112981L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 189440633045112981L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "content...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Report.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_50
{ "fields": [ { "declarator": "FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC)", "modifier": "private static final", "original_string": "private static final ZonedDateTime FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC);", "type": "ZonedDateTime", "var_name": "FRO...
{ "body": "@Test\n public void testWithIncrementedLimit() {\n AuditEventPageRequest request = new AuditEventPageRequest();\n request.setFrom(FROM);\n request.setTo(TO);\n request.setLimit(LIMIT);\n request.setOffset(OFFSET);\n request.setType(EVENT_TYPE);\n\n AuditE...
{ "fields": [ { "declarator": "from", "modifier": "private", "original_string": "private ZonedDateTime from;", "type": "ZonedDateTime", "var_name": "from" }, { "declarator": "to", "modifier": "private", "original_string": "private ZonedDateTime to;", "...
{ "body": "public AuditEventPageRequest withIncrementedLimit() {\n final AuditEventPageRequest copy = AuditEventPageRequest.copy(this);\n copy.setLimit(this.getSanitizedLimit() + 1);\n return copy;\n }", "class_method_signature": "AuditEventPageRequest.withIncrementedLimit()", "constructor...
{ "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_27
{ "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\n public void shouldDeploySmallProcessUsingAPI() throws Exception {\n\n final DataloadProcess process = new DataloadProcess(\"test\", ProcessType.GRAPH);\n\n final ArgumentCaptor<HttpEntity> entityCaptor = ArgumentCaptor.forClass(HttpEntity.class);\n\n when(restTemplate.exchan...
{ "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 DataloadProcess createProcess(Project project, DataloadProcess process, File processData) {\n notNull(process, \"process\");\n notNull(processData, \"processData\");\n notNull(project, \"project\");\n isTrue(process.getPath() == null, \"Process path has to be null, use pr...
{ "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_209
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadsInfoTest.java", "identifier": "UploadsInfoTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final UploadsInfo uploadsInfo = readObjectFromResource(\"/dataset/uploads/data-sets.json\", UploadsInfo.class);\n\n assertThat(uploadsInfo.toString(), matchesPattern(UploadsInfo.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/data/sets\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/data/sets\";", "type": "String", "var_name": "URI" }, { "declarator": "datasets = new H...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "UploadsInfo.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_120
{ "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 testFindIdentifierUrisNullRestriction() {\n service.findUris(project, (Restriction) null);\n }", "class_method_signature": "MetadataServiceTest.testFindIdentifierUrisNullRestriction()", "constructor": false, "full_s...
{ "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<String> findUris(Project project,\n Class<T> cls,\n Restriction... restrictions) {\n final Collection<Entry> entries = find(project, cls, 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_70
{ "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 testGetDataSetInfoEmptyResponse() {\n when(restTemplate.getForObject(UploadsInfo.URI, UploadsInfo.class, PROJECT_ID)).thenReturn(null);\n service.getDataSetInfo(project, \"dataset.id\");\n }", "class_method_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": "UploadsInfo.DataSet getDataSetInfo(Project project, String datasetId) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notEmpty(datasetId, \"datasetId\");\n\n final URI uploadsInfoUri = UPLOADS_INFO_TEMPLATE.expand(project.getId());\n try {...
{ "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_198
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/warehouse/WarehouseTaskTest.java", "identifier": "WarehouseTaskTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"deprecation\")\n @Test\n public void testDeserializeInstance() throws Exception {\n final WarehouseTask warehouseTask = readObjectFromResource(\"/warehouse/warehouseTask-finished.json\", WarehouseTask.class);\n assertThat(warehouseTask.getWarehouseUri(), is(\"/gdc/da...
{ "fields": [ { "declarator": "POLL_LINK = \"poll\"", "modifier": "private static final", "original_string": "private static final String POLL_LINK = \"poll\";", "type": "String", "var_name": "POLL_LINK" }, { "declarator": "WAREHOUSE_LINK = \"instance\"", "modifie...
{ "body": "public String getWarehouseUri() {\n return links.get(WAREHOUSE_LINK);\n }", "class_method_signature": "WarehouseTask.getWarehouseUri()", "constructor": false, "full_signature": "public String getWarehouseUri()", "identifier": "getWarehouseUri", "invocations": [ "get" ], "modifie...
{ "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_177
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataload/processes/DataloadProcessesTest.java", "identifier": "DataloadProcessesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final DataloadProcesses processes = readObjectFromResource(\"/dataload/processes/processes.json\", DataloadProcesses.class);\n\n assertThat(processes.toString(), matchesPattern(DataloadProcesses.class.getSimpleName() + \"\\\\[.*...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/dataload/processes\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/dataload/processes\";", "type": "String", "var_name": "URI" }, { "...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "DataloadProcesses.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_66
{ "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 testListDatasetLinksWithNullProject() {\n service.listDatasetLinks(null);\n }", "class_method_signature": "DatasetServiceTest.testListDatasetLinksWithNullProject()", "constructor": false, "full_signature": "@Test(ex...
{ "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<Link> listDatasetLinks(final Project project) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n try {\n final DatasetLinks result = restTemplate.getForObject(DatasetLinks.URI, DatasetLinks.class, project.getId());\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_248
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4SettingsTest.java", "identifier": "Zendesk4SettingsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetZopimUrl() throws Exception {\n final Zendesk4Settings settings = new Zendesk4Settings(\"api url\");\n settings.setZopimUrl(\"zopim url\");\n assertThat(settings.getZopimUrl(), is(\"zopim url\"));\n }", "class_method_signature": "Zendesk4SettingsTest....
{ "fields": [ { "declarator": "URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\"", "modifier": "public static final", "original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\";", "type": "String", ...
{ "body": "public void setZopimUrl(final String zopimUrl) {\n this.zopimUrl = zopimUrl;\n }", "class_method_signature": "Zendesk4Settings.setZopimUrl(final String zopimUrl)", "constructor": false, "full_signature": "public void setZopimUrl(final String zopimUrl)", "identifier": "setZopimUrl", "inv...
{ "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_89
{ "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 testRemoveChannelEmptyUri() throws Exception {\n notificationService.removeChannel(mock(Channel.class));\n }", "class_method_signature": "NotificationServiceTest.testRemoveChannelEmptyUri()", "constructor": false, "...
{ "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 removeChannel(final Channel channel) {\n notNull(channel, \"channel\");\n notNull(channel.getMeta(), \"channel.meta\");\n notEmpty(channel.getMeta().getUri(), \"channel.meta.uri\");\n\n try {\n restTemplate.delete(channel.getMeta().getUri());\n } ca...
{ "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_161
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/FeatureFlagsTest.java", "identifier": "FeatureFlagsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final FeatureFlags flags = new FeatureFlags();\n\n assertThat(flags.toString(), matchesPattern(FeatureFlags.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "FeatureFlagsTest.testToStringFormat()", "constructor"...
{ "fields": [ { "declarator": "AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\"", "modifier": "public static final", "original_string": "public static final String AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\";", "type"...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "FeatureFlags.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defa...
{ "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_31
{ "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\n public void testGetProcessByUri() {\n when(restTemplate.getForObject(PROCESS_URI, DataloadProcess.class)).thenReturn(process);\n\n final DataloadProcess result = processService.getProcessByUri(PROCESS_URI);\n assertThat(result, is(process));\n }", "class_method_signatur...
{ "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 DataloadProcess getProcessByUri(String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, DataloadProcess.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\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_136
{ "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": "@SuppressWarnings(\"deprecation\")\n @Test\n public void testGetProjects() throws Exception {\n doReturn(new Projects(singletonList(project), new Paging(\"\"))).when(restTemplate)\n .getForObject(new URI(LIST_PROJECTS_TEMPLATE.expand(ACCOUNT_ID) + \"?limit=100\"), Projects.class...
{ "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": "@Deprecated\n public Collection<Project> getProjects() {\n return listProjects().allItemsStream().collect(Collectors.toList());\n }", "class_method_signature": "ProjectService.getProjects()", "constructor": false, "full_signature": "@Deprecated public Collection<Project> getProjects()", ...
{ "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_321
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectTest.java", "identifier": "ProjectTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Project project = new Project(\"TITLE\", \"SUMMARY\", \"TOKEN\");\n\n assertThat(project.toString(), matchesPattern(Project.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "ProjectTest.testToStringFormat()"...
{ "fields": [ { "declarator": "URI = Projects.URI + \"/{id}\"", "modifier": "public static final", "original_string": "public static final String URI = Projects.URI + \"/{id}\";", "type": "String", "var_name": "URI" }, { "declarator": "PREPARING_STATES = new HashSet<>(a...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Project.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_264
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/TableTest.java", "identifier": "TableTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final Table table = readObjectFromResource(\"/md/table.json\", Table.class);\n\n assertThat(table.toString(), matchesPattern(Table.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "TableTest.testT...
{ "fields": [ { "declarator": "serialVersionUID = 8188850708608710066L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 8188850708608710066L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "conte...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Table.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultToSt...
{ "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_233
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnError() throws Exception {\n assertThat(new Status(ERROR.name(), \"\", \"\").isFinished(), is(true));\n }", "class_method_signature": "StatusTest.testIsFinishedOnError()", "constructor": false, "full_signature": "@Test public void testIsFinishedOnError...
{ "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_225
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnNullCode() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(null, \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFinished(), is(false));\n }", "class_method_signature":...
{ "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_8
{ "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 whenEmptyResponseThenCreateProjectFeatureFlagShouldThrow() throws Exception {\n when(restTemplate.postForLocation(PROJECT_FEATURE_FLAG_URI, projectFeatureFlag)).thenReturn(null);\n service.createProjectFeatureFlag(project, p...
{ "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 createProjectFeatureFlag(final Project project, final ProjectFeatureFlag flag) {\n notNull(project, \"project\");\n notNull(flag, \"flag\");\n\n final String featureFlagsUri = PROJECT_FEATURE_FLAGS_TEMPLATE.expand(project.getId()).toString();\n\n try {\...
{ "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_272
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/maintenance/PartialMdExportTest.java", "identifier": "PartialMdExportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final PartialMdExport partialMdExport =\n new PartialMdExport(false, false, \"/gdc/md/projectId/obj/123\", \"/gdc/md/projectId/obj/234\");\n\n assertThat(partialMdExport.toString(), matchesPattern(PartialMdExport.class.getSimpleNa...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/maintenance/partialmdexport\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/maintenance/partialmdexport\";", "type": "String", "var_name": "URI" }, { ...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "PartialMdExport.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_273
{ "fields": [ { "declarator": "FORM_OF = \"/gdc/md/PROJECT_ID/obj/DF_FORM_OF_ID\"", "modifier": "public static final", "original_string": "public static final String FORM_OF = \"/gdc/md/PROJECT_ID/obj/DF_FORM_OF_ID\";", "type": "String", "var_name": "FORM_OF" }, { "decl...
{ "body": "@Test\n public void testToStringFormat() {\n final DisplayForm displayForm = new DisplayForm(new Meta(\"Person Name\"),\n new DisplayForm.Content(FORM_OF, EXPRESSION, LDM_EXPRESSION, null), new DisplayForm.Links(ELEMENTS_LINK));\n\n assertThat(displayForm.toString(), matche...
{ "fields": [ { "declarator": "serialVersionUID = 8719802319193893780L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 8719802319193893780L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "conte...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "DisplayForm.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_9
{ "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 whenClientErrorResponseThenCreateProjectFeatureFlagShouldThrow() throws Exception {\n when(restTemplate.postForLocation(PROJECT_FEATURE_FLAG_URI, projectFeatureFlag))\n .thenThrow(new RestClientException(\"\"));\n ...
{ "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 createProjectFeatureFlag(final Project project, final ProjectFeatureFlag flag) {\n notNull(project, \"project\");\n notNull(flag, \"flag\");\n\n final String featureFlagsUri = PROJECT_FEATURE_FLAGS_TEMPLATE.expand(project.getId()).toString();\n\n try {\...
{ "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_224
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnUploading() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(UPLOADING.name(), \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFinished(), is(false));\n }", "class_metho...
{ "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_232
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(\"unknown code\", \"\", \"\"), now(), now(), Collections.emptyMap());\n\n assertThat(process.toString(), matchesPattern(IntegrationProcessStatus.class.getSimpleNam...
{ "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": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "IntegrationProcessStatus.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_320
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/RoleTest.java", "identifier": "RoleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquals() throws IOException {\n final Role role1 = readRole(\"\");\n\n assertThat(role1.equals(readRole(\"\")), is(true));\n assertThat(role1.equals(readRole(\"2\")), is(false));\n assertThat(role1.equals(readRole(\"3\")), is(false));\n }", "class...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/roles/{roleId}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/roles/{roleId}\";", "type": "String", "var_name": "URI" }, { "declarat...
{ "body": "@Override\n public boolean equals(final Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n final Role role = (Role) o;\n\n if (!permissions.equals(role.permissions)) return false;\n return !(getIdentifier() != nul...
{ "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_265
{ "fields": [ { "declarator": "FORM_OF = \"/gdc/md/PROJECT_ID/obj/DF_FORM_OF_ID\"", "modifier": "private static final", "original_string": "private static final String FORM_OF = \"/gdc/md/PROJECT_ID/obj/DF_FORM_OF_ID\";", "type": "String", "var_name": "FORM_OF" }, { "de...
{ "body": "@Test\n public void shouldDeserialize() throws Exception {\n final AttributeDisplayForm attrDF = readObjectFromResource(\"/md/attributeDisplayForm.json\", AttributeDisplayForm.class);\n assertThat(attrDF, is(notNullValue()));\n\n assertThat(attrDF.getFormOf(), is(FORM_OF));\n ...
{ "fields": [ { "declarator": "serialVersionUID = -7903851496647992573L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -7903851496647992573L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "att...
{ "body": "@JsonIgnore\n public boolean isDefault() {\n return Boolean.TRUE.equals(attributeContent.isDefault());\n }", "class_method_signature": "AttributeDisplayForm.isDefault()", "constructor": false, "full_signature": "@JsonIgnore public boolean isDefault()", "identifier": "isDefault", "inv...
{ "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_137
{ "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": "@SuppressWarnings(\"deprecation\")\n @Test(expectedExceptions = GoodDataException.class)\n public void testGetProjectsWithClientException() throws Exception {\n doThrow(new GoodDataException(\"\")).when(restTemplate)\n .getForObject(new URI(LIST_PROJECTS_TEMPLATE.expand(ACCOUNT_...
{ "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": "@Deprecated\n public Collection<Project> getProjects() {\n return listProjects().allItemsStream().collect(Collectors.toList());\n }", "class_method_signature": "ProjectService.getProjects()", "constructor": false, "full_signature": "@Deprecated public Collection<Project> getProjects()", ...
{ "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_30
{ "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 = IllegalArgumentException.class)\n public void testGetProcessByUriWithNullUri() {\n processService.getProcessByUri(null);\n }", "class_method_signature": "ProcessServiceTest.testGetProcessByUriWithNullUri()", "constructor": false, "full_signature": "@Test(expect...
{ "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 DataloadProcess getProcessByUri(String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, DataloadProcess.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\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_160
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/FeatureFlagsTest.java", "identifier": "FeatureFlagsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRemoveFlag() {\n final FeatureFlags flags = new FeatureFlags();\n flags.addFlag(\"enabledFlag\", true);\n\n flags.removeFlag(\"enabledFlag\");\n\n assertFalse(flags.isEnabled(\"enabledFlag\"));\n assertFalse(flags.iterator().hasNext());\n }",...
{ "fields": [ { "declarator": "AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\"", "modifier": "public static final", "original_string": "public static final String AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\";", "type"...
{ "body": "public void removeFlag(final String flagName) {\n findFlag(flagName).ifPresent(featureFlags::remove);\n }", "class_method_signature": "FeatureFlags.removeFlag(final String flagName)", "constructor": false, "full_signature": "public void removeFlag(final String flagName)", "identifier": "r...
{ "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_67
{ "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 testListDatasetLinksWithNullResponse() {\n when(restTemplate.getForObject(DatasetLinks.URI, Link.class, PROJECT_ID)).thenReturn(null);\n service.listDatasetLinks(project);\n }", "class_method_signature": "DatasetService...
{ "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<Link> listDatasetLinks(final Project project) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n try {\n final DatasetLinks result = restTemplate.getForObject(DatasetLinks.URI, DatasetLinks.class, project.getId());\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_249
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4SettingsTest.java", "identifier": "Zendesk4SettingsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetAccount() throws Exception {\n final Zendesk4Settings settings = new Zendesk4Settings(\"api url\");\n settings.setAccount(\"test account\");\n assertThat(settings.getAccount(), is(\"test account\"));\n }", "class_method_signature": "Zendesk4SettingsTe...
{ "fields": [ { "declarator": "URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\"", "modifier": "public static final", "original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\";", "type": "String", ...
{ "body": "public void setAccount(final String account) {\n this.account = account;\n }", "class_method_signature": "Zendesk4Settings.setAccount(final String account)", "constructor": false, "full_signature": "public void setAccount(final String account)", "identifier": "setAccount", "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_88
{ "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 testRemoveChannelNullChannel() throws Exception {\n notificationService.removeChannel(null);\n }", "class_method_signature": "NotificationServiceTest.testRemoveChannelNullChannel()", "constructor": false, "full_sign...
{ "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 removeChannel(final Channel channel) {\n notNull(channel, \"channel\");\n notNull(channel.getMeta(), \"channel.meta\");\n notEmpty(channel.getMeta().getUri(), \"channel.meta.uri\");\n\n try {\n restTemplate.delete(channel.getMeta().getUri());\n } ca...
{ "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_199
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadStatisticsTest.java", "identifier": "UploadStatisticsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldDeserialize() throws Exception {\n final UploadStatistics uploadStatistics = readObjectFromResource(\"/dataset/uploads/data-uploads-info.json\", UploadStatistics.class);\n\n assertThat(uploadStatistics, notNullValue());\n\n assertThat(uploadStatistics.getUp...
{ "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": "public int getUploadsCount(String uploadStatus) {\n final Integer uploadsCount = statusesCount.get(uploadStatus);\n\n return uploadsCount != null ? uploadsCount : 0;\n }", "class_method_signature": "UploadStatistics.getUploadsCount(String uploadStatus)", "constructor": false, "full_s...
{ "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_176
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataload/processes/DataloadProcessesTest.java", "identifier": "DataloadProcessesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeserialization() throws Exception {\n final DataloadProcesses processes = readObjectFromResource(\"/dataload/processes/processes.json\", DataloadProcesses.class);\n\n assertThat(processes, is(notNullValue()));\n assertThat(processes.getItems(), hasSize(1));\...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/dataload/processes\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/dataload/processes\";", "type": "String", "var_name": "URI" }, { "...
{ "body": "public Collection<DataloadProcess> getItems() {\n return items;\n }", "class_method_signature": "DataloadProcesses.getItems()", "constructor": false, "full_signature": "public Collection<DataloadProcess> getItems()", "identifier": "getItems", "invocations": [], "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_71
{ "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 testListUploadsForDatasetMissingUri() throws Exception {\n mockDataSetInfo(null, null);\n\n assertThat(service.listUploadsForDataset(project, DATASET_ID), Matchers.empty());\n }", "class_method_signature": "DatasetServiceTest.testListUploadsForDatasetMissingUri()",...
{ "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_121
{ "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 testGetObjUriNullProject() {\n service.getObjUri(null, Queryable.class, Restriction.identifier(\"\"));\n }", "class_method_signature": "MetadataServiceTest.testGetObjUriNullProject()", "constructor": false, "full_si...
{ "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_26
{ "fields": [ { "declarator": "outputStageService", "modifier": "private", "original_string": "private OutputStageService outputStageService;", "type": "OutputStageService", "var_name": "outputStageService" } ], "file": "gooddata-java/src/test/java/com/gooddata/sdk/service/da...
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testUpdateOutputStageNullOutputStage() {\n outputStageService.updateOutputStage(null);\n }", "class_method_signature": "OutputStageServiceTest.testUpdateOutputStageNullOutputStage()", "constructor": false, "full_sig...
{ "fields": [ { "declarator": "OUTPUT_STAGE_TEMPLATE = new UriTemplate(OutputStage.URI)", "modifier": "public static final", "original_string": "public static final UriTemplate OUTPUT_STAGE_TEMPLATE = new UriTemplate(OutputStage.URI);", "type": "UriTemplate", "var_name": "OUTPUT_STAG...
{ "body": "public OutputStage updateOutputStage(final OutputStage outputStage) {\n notNull(outputStage, \"outputStage\");\n notNull(outputStage.getUri(), \"outputStage.uri\");\n\n try {\n HttpEntity<OutputStage> outputStageHttpEntity = new HttpEntity<>(outputStage);\n Respon...
{ "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_208
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadsInfoTest.java", "identifier": "UploadsInfoTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expectedExceptions = DatasetNotFoundException.class)\n public void getDatasetUploadInfoFails() throws Exception {\n new UploadsInfo(Collections.emptyList()).getDataSet(\"dataset.non_existing_one\");\n }", "class_method_signature": "UploadsInfoTest.getDatasetUploadInfoFails()", "const...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/data/sets\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/data/sets\";", "type": "String", "var_name": "URI" }, { "declarator": "datasets = new H...
{ "body": "public DataSet getDataSet(String datasetId) {\n notEmpty(datasetId, \"datasetId\");\n\n final DataSet dataSet = datasets.get(datasetId);\n if (dataSet != null) {\n return dataSet;\n } else {\n throw new DatasetNotFoundException(datasetId);\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_290
{ "fields": [ { "declarator": "URI = \"/ELEM_URI\"", "modifier": "private static final", "original_string": "private static final String URI = \"/ELEM_URI\";", "type": "String", "var_name": "URI" }, { "declarator": "ALIAS = \"ELEM_ALIAS\"", "modifier": "private st...
{ "body": "@Test\n public void testToStringFormat() {\n final MetricElement element = new MetricElement(URI, ALIAS, FORMAT, DRILL_URI);\n\n assertThat(element.toString(), matchesPattern(MetricElement.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "MetricElementTest.t...
{ "fields": [ { "declarator": "serialVersionUID = 6199743301553304055L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 6199743301553304055L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "uri",...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "MetricElement.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_51
{ "fields": [ { "declarator": "FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC)", "modifier": "private static final", "original_string": "private static final ZonedDateTime FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC);", "type": "ZonedDateTime", "var_name": "FRO...
{ "body": "@Test\n public void testUpdateWithOnlyPagingFields() {\n AuditEventPageRequest request = new AuditEventPageRequest();\n request.setLimit(LIMIT);\n request.setOffset(OFFSET);\n\n MutableUri result = request.updateWithPageParams(new SpringMutableUri(\"\"));\n\n assertTha...
{ "fields": [ { "declarator": "from", "modifier": "private", "original_string": "private ZonedDateTime from;", "type": "ZonedDateTime", "var_name": "from" }, { "declarator": "to", "modifier": "private", "original_string": "private ZonedDateTime to;", "...
{ "body": "@Override\n public MutableUri updateWithPageParams(final MutableUri builder) {\n MutableUri builderWithPaging = super.updateWithPageParams(builder);\n if (from != null) {\n builderWithPaging.replaceQueryParam(\"from\", ISOZonedDateTime.FORMATTER.format(from.withZoneSameInstant(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_156
{ "fields": [ { "declarator": "service", "modifier": "private", "original_string": "private AbstractService service;", "type": "AbstractService", "var_name": "service" }, { "declarator": "restTemplate", "modifier": "@Mock\n private", "original_string": "@...
{ "body": "@Test\n public void pollShouldSucceedWhenUnderTimeout() throws Exception {\n PollHandler<?, ?> handler = mock(PollHandler.class);\n when(handler.isFinished(any(ClientHttpResponse.class))).thenReturn(false);\n when(handler.isDone()).thenReturn(false, true);\n\n service.poll(ha...
{ "fields": [ { "declarator": "restTemplate", "modifier": "protected final", "original_string": "protected final RestTemplate restTemplate;", "type": "RestTemplate", "var_name": "restTemplate" }, { "declarator": "settings", "modifier": "private final", "orig...
{ "body": "final <R> R poll(final PollHandler<?,R> handler, long timeout, final TimeUnit unit) {\n notNull(handler, \"handler\");\n final long start = System.currentTimeMillis();\n while (true) {\n if (pollOnce(handler)) {\n return handler.getResult();\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_228
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFailedOnUserError() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(USER_ERROR.name(), \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFailed(), is(true));\n }", "class_method_si...
{ "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 isFailed() {\n return status != null && status.isFailed();\n }", "class_method_signature": "IntegrationProcessStatus.isFailed()", "constructor": false, "full_signature": "@JsonIgnore public boolean isFailed()", "identifier": "isFailed", "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_5
{ "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 whenClientErrorResponseThenGetProjectFeatureFlagsShouldThrow() throws Exception {\n when(restTemplate.getForObject(new URI(PROJECT_FEATURE_FLAGS_URI), ProjectFeatureFlags.class))\n .thenThrow(new RestClientException(...
{ "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_101
{ "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 testGetObjsByUrisNullProject() {\n service.getObjsByUris(null, Collections.emptyList());\n }", "class_method_signature": "MetadataServiceTest.testGetObjsByUrisNullProject()", "constructor": false, "full_signature": ...
{ "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_10
{ "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 whenNullKeyThenGetProjectFeatureFlagShouldThrow() throws Exception {\n service.getProjectFeatureFlag(project, null);\n }", "class_method_signature": "FeatureFlagServiceTest.whenNullKeyThenGetProjectFeatureFlagShouldThro...
{ "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 getProjectFeatureFlag(final Project project, final String featureFlagName) {\n notNull(project, \"project\");\n notEmpty(featureFlagName, \"featureFlagName\");\n\n try {\n final ProjectFeatureFlag flag = getProjectFeatureFlag(getProjectFeatureFlagUr...
{ "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_117
{ "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 testGetObjById() {\n final Obj resultObj = mock(Obj.class);\n final String uri = format(\"/gdc/md/%s/obj/%s\", PROJECT_ID, ID);\n when(restTemplate.getForObject(uri, Obj.class)).thenReturn(resultObj);\n\n final Obj result = service.getObjById(project, ID, ...
{ "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 getObjById(Project project, String id, Class<T> cls) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(id, \"id\");\n notNull(cls, \"cls\");\n return getObjByUri(OBJ_TEMPLATE.expand(project.getId(), id).toStr...
{ "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_286
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/RestrictionTest.java", "identifier": "RestrictionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testTitleWithNull() {\n Restriction.title(null);\n }", "class_method_signature": "RestrictionTest.testTitleWithNull()", "constructor": false, "full_signature": "@Test(expectedExceptions = IllegalArgumentException.cl...
{ "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 title(String value) {\n return new Restriction(Type.TITLE, value);\n }", "class_method_signature": "Restriction.title(String value)", "constructor": false, "full_signature": "public static Restriction title(String value)", "identifier": "title", "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_47
{ "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 = \".*domain.*\")\n public void shouldFailOnNullPageButDomain() throws Exception {\n service.listAuditEvents(\"\", null);\n }", "class_method_signature": "AuditEventServiceTest.shouldFailOnNullPageButD...
{ "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_269
{ "fields": [ { "declarator": "URI = \"/gdc/md/PROJECT_ID/obj/1333/elements?id=6959\"", "modifier": "private static final", "original_string": "private static final String URI = \"/gdc/md/PROJECT_ID/obj/1333/elements?id=6959\";", "type": "String", "var_name": "URI" }, { ...
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final AttributeElement element = readObjectFromResource(\"/md/attributeElement.json\", AttributeElement.class);\n\n assertThat(element.toString(), matchesPattern(AttributeElement.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n ...
{ "fields": [ { "declarator": "uri", "modifier": "private final", "original_string": "private final String uri;", "type": "String", "var_name": "uri" }, { "declarator": "title", "modifier": "private final", "original_string": "private final String title;", ...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "AttributeElement.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_140
{ "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 testListProjectsWithClientException() throws Exception {\n doThrow(new GoodDataException(\"\")).when(restTemplate)\n .getForObject(new URI(LIST_PROJECTS_TEMPLATE.expand(ACCOUNT_ID) + \"?limit=100\"), Projects.class);...
{ "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 PageBrowser<Project> listProjects() {\n final String userId = accountService.getCurrent().getId();\n return new PageBrowser<>(page -> listProjects(getProjectsUri(userId, page)));\n }", "class_method_signature": "ProjectService.listProjects()", "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_212
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/DatasetManifestTest.java", "identifier": "DatasetManifestTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void shouldFailOnSetFileNull() {\n final DatasetManifest manifest = new DatasetManifest(\"dataset.name\");\n manifest.setFile(null);\n }", "class_method_signature": "DatasetManifestTest.shouldFailOnSetFileNull()", "...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/ldm/singleloadinterface/{dataSet}/manifest\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/ldm/singleloadinterface/{dataSet}/manifest\";", "type": "String", "v...
{ "body": "public void setFile(String file) {\n this.file = notEmpty(file, \"file\");\n }", "class_method_signature": "DatasetManifest.setFile(String file)", "constructor": false, "full_signature": "public void setFile(String file)", "identifier": "setFile", "invocations": [ "notEmpty" ], ...
{ "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_245
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4SettingsTest.java", "identifier": "Zendesk4SettingsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expectedExceptions = {IllegalArgumentException.class})\n public void testSetApiUrlWithEmptyValue() throws Exception {\n final Zendesk4Settings settings = new Zendesk4Settings(\"old url\");\n settings.setApiUrl(\"\");\n }", "class_method_signature": "Zendesk4SettingsTest.testSetA...
{ "fields": [ { "declarator": "URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\"", "modifier": "public static final", "original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\";", "type": "String", ...
{ "body": "public void setApiUrl(final String apiUrl) {\n this.apiUrl = notEmpty(apiUrl, \"apiUrl\");\n }", "class_method_signature": "Zendesk4Settings.setApiUrl(final String apiUrl)", "constructor": false, "full_signature": "public void setApiUrl(final String apiUrl)", "identifier": "setApiUrl", ...
{ "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_84
{ "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 testCreateSubscriptionNullAccount() throws Exception {\n notificationService.createSubscription(project, null, subscription);\n }", "class_method_signature": "NotificationServiceTest.testCreateSubscriptionNullAccount()"...
{ "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_300
{ "fields": [ { "declarator": "DATA = \"/gdc/md/PROJECT_ID/obj/EXPR_ID\"", "modifier": "public static final", "original_string": "public static final String DATA = \"/gdc/md/PROJECT_ID/obj/EXPR_ID\";", "type": "String", "var_name": "DATA" }, { "declarator": "TYPE = \"ex...
{ "body": "@Test\n public void testToStringFormat() {\n final Expression expression = new Expression(DATA, TYPE);\n\n assertThat(expression.toString(), matchesPattern(Expression.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "ExpressionTest.testToStringFormat()", "...
{ "fields": [ { "declarator": "serialVersionUID = 9161488874222662015L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 9161488874222662015L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "data"...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Expression.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaul...
{ "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_183
{ "fields": [ { "declarator": "EXECUTABLE = \"Twitter/graph/twitter.grf\"", "modifier": "private static final", "original_string": "private static final String EXECUTABLE = \"Twitter/graph/twitter.grf\";", "type": "String", "var_name": "EXECUTABLE" }, { "declarator": "p...
{ "body": "@Test(\n expectedExceptions = IllegalArgumentException.class,\n expectedExceptionsMessageRegExp = \".*wrong executable.*\"\n )\n public void testSetExecutable() {\n final Schedule schedule = new Schedule(process, EXECUTABLE, \"0 0 * * *\");\n assertThat(schedule.ge...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\";", "type": "String", "var_name": "URI" }, {...
{ "body": "public void setExecutable(final DataloadProcess process, final String executable) {\n notNull(executable, \"executable\");\n notNull(process, \"process\").validateExecutable(executable);\n params.put(EXECUTABLE, executable);\n }", "class_method_signature": "Schedule.setExecutable(...
{ "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_253
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/notification/ProjectEventTest.java", "identifier": "ProjectEventTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSerialization() {\n final ProjectEvent projectEvent = new ProjectEvent(\"etl.test\");\n projectEvent.setParameter(\"text\", \"cool\");\n assertThat(projectEvent, jsonEquals(resource(\"notification/projectEvent.json\")));\n }", "class_method_signature": "...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/notifications/events\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/notifications/events\";", "type": "String", "var_name": "URI" }, { ...
{ "body": "public void setParameter(final String key, final String value) {\n notNull(key, \"parameter key\");\n notNull(value, \"parameter value\");\n parameters.put(key, value);\n }", "class_method_signature": "ProjectEvent.setParameter(final String key, final String value)", "constructo...
{ "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_316
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationResultSliElParamTest.java", "identifier": "ProjectValidationResultSliElParamTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAsMapNullIds() throws Exception {\n final ProjectValidationResultSliElParam param = new ProjectValidationResultSliElParam(null, singletonList(\"2\"));\n\n assertThat(param.asMap(), nullValue());\n }", "class_method_signature": "ProjectValidationResultSliElParam...
{ "fields": [ { "declarator": "ids", "modifier": "private final", "original_string": "private final List<String> ids;", "type": "List<String>", "var_name": "ids" }, { "declarator": "vals", "modifier": "private final", "original_string": "private final List<S...
{ "body": "public Map<String, String> asMap() {\n if (ids == null) {\n return null;\n }\n\n if (vals == null) {\n throw new IllegalStateException(\"Values not defined for IDs.\");\n }\n\n if (ids.size() != vals.size()) {\n throw new IllegalStateExcep...
{ "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_92
{ "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": "project", "modifier":...
{ "body": "@Test(expectedExceptions = ExportImportException.class)\n public void testCreatePartialExportError() throws Exception {\n when(restTemplate.postForObject(eq(PartialMdExport.URI), any(PartialMdExport.class), eq(PartialMdArtifact.class), eq(PROJECT_ID)))\n .thenThrow(new GoodDataRest...
{ "fields": [], "file": "gooddata-java/src/main/java/com/gooddata/sdk/service/md/maintenance/ExportImportService.java", "identifier": "ExportImportService", "interfaces": "", "methods": [ { "class_method_signature": "ExportImportService.ExportImportService(final RestTemplate restTemplate, final Good...
{ "body": "public FutureResult<PartialMdExportToken> partialExport(Project project, final PartialMdExport export) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(export, \"export\");\n\n final PartialMdArtifact partialMdArtifact;\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_195
{ "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 testGetId() throws Exception {\n final WarehouseUser user = new WarehouseUser(ROLE, PROFILE, LOGIN, LINKS);\n assertThat(user.getId(), is(\"{profile-id}\"));\n }", "class_method_signature": "WarehouseUserTest.testGetId()", "constructor": false, "full_signature"...
{ "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": "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "class_method_signature": "WarehouseUser.getId()", "constructor": false, "full_signature": "@JsonIgnore public String getId()", "identifier": "getId", "invocations": [ "getLastUriPart", "...
{ "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_204
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadTest.java", "identifier": "UploadTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final Upload upload = readObjectFromResource(\"/dataset/uploads/upload.json\", Upload.class);\n\n assertThat(upload.toString(), matchesPattern(Upload.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/data/upload/{uploadId}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/data/upload/{uploadId}\";", "type": "String", "var_name": "URI" }, { "decl...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Upload.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_21
{ "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 shouldZipDir() throws Exception {\n Path toZipDir = temporaryFolder.resolve(\"toZip\");\n toZipDir.toFile().mkdirs();\n File toZipFile = toZipDir.resolve(SOME_FILE_PATH).toFile();\n toZipFile.getParentFile().mkdirs();\n toZipFile.createNewFile();\n ...
{ "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_126
{ "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 testGetObjUriNothingFound() {\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, Que...
{ "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_258
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/TableDataLoadTest.java", "identifier": "TableDataLoadTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() throws Exception {\n final TableDataLoad load = readObjectFromResource(\"/md/tableDataLoad.json\", TableDataLoad.class);\n\n assertThat(load.toString(), matchesPattern(TableDataLoad.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_metho...
{ "fields": [ { "declarator": "serialVersionUID = -5209417147612785042L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5209417147612785042L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "TYP...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "TableDataLoad.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_76
{ "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 testGetLastUploadForDatasetRestClientError() throws Exception {\n final String lastUploadUri = \"last/upload/uri\";\n mockDataSetInfo(DATASET_UPLOADS_URI, lastUploadUri);\n\n when(restTemplate.getForObject(lastUploadU...
{ "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 Upload getLastUploadForDataset(Project project, String datasetId) {\n final UploadsInfo.DataSet dataSet = getDataSetInfo(project, datasetId);\n\n if (isEmpty(dataSet.getLastUploadUri())) {\n return null;\n }\n\n try {\n return restTemplate.getForObje...
{ "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_99
{ "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 = ObjUpdateException.class)\n public void testUpdateObjNotFound() {\n final Updatable obj = mock(Updatable.class);\n\n final GoodDataRestException restException = mock(GoodDataRestException.class);\n when(restException.getStatusCode()).thenReturn(HttpStatus....
{ "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_171
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/gdc/AsyncTaskTest.java", "identifier": "AsyncTaskTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSerialization() throws Exception {\n final String json = OBJECT_MAPPER.writeValueAsString(new AsyncTask(\"foo\"));\n final AsyncTask asyncTask = OBJECT_MAPPER.readValue(json, AsyncTask.class);\n\n assertThat(asyncTask.getUri(), is(\"foo\"));\n }", "class...
{ "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_60
{ "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 testLoadDatasetWithNullDataset() {\n service.loadDataset(project, manifest, null);\n }", "class_method_signature": "DatasetServiceTest.testLoadDatasetWithNullDataset()", "constructor": false, "full_signature": "@Tes...
{ "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_188
{ "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 testSerializationForInstanceCreation() throws Exception {\n final Warehouse warehouse = new Warehouse(\"New ADS\", \"Your-ADS-Token\", \"ADS Description\");\n warehouse.setEnvironment(Environment.TESTING);\n assertThat(warehouse, jsonEquals(resource(\"warehouse/w...
{ "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": "public void setEnvironment(final String environment) {\n this.environment = environment;\n }", "class_method_signature": "Warehouse.setEnvironment(final String environment)", "constructor": false, "full_signature": "public void setEnvironment(final String environment)", "identifier": "set...
{ "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_167
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/gdc/LinkEntriesTest.java", "identifier": "LinkEntriesTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"deprecation\")\n @Test\n public void testDeserialization() throws Exception {\n final LinkEntries linkEntries = readObjectFromResource(\"/gdc/linkEntries.json\", LinkEntries.class);\n\n assertThat(linkEntries, is(notNullValue()));\n assertThat(linkEntries.getE...
{ "fields": [ { "declarator": "entries", "modifier": "private final", "original_string": "private final List<LinkEntry> entries;", "type": "List<LinkEntry>", "var_name": "entries" } ], "file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/gdc/LinkEntries.java", ...
{ "body": "protected List<LinkEntry> getEntries() {\n return entries;\n }", "class_method_signature": "LinkEntries.getEntries()", "constructor": false, "full_signature": "protected List<LinkEntry> getEntries()", "identifier": "getEntries", "invocations": [], "modifiers": "protected", "paramete...
{ "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_219
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java", "identifier": "Zendesk4ProcessExecutionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShouldSerializeRecoveryInProgress() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n execution.setRecoveryInProgress(true);\n assertThat(execution, jsonEquals(resource(\"connector/process-execution-recoveryInProgress.json\")));...
{ "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 setRecoveryInProgress(final Boolean recoveryInProgress) {\n this.recoveryInProgress = recoveryInProgress;\n }", "class_method_signature": "Zendesk4ProcessExecution.setRecoveryInProgress(final Boolean recoveryInProgress)", "constructor": false, "full_signature": "public void setR...
{ "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_37
{ "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\n public void testListUserProcessesWithNoProcesses() throws Exception {\n when(restTemplate.getForObject(create(USER_PROCESS_URI), DataloadProcesses.class))\n .thenReturn(OBJECT_MAPPER.readValue(\"{\\\"processes\\\":{\\\"items\\\":[]}}\", DataloadProcesses.class));\n f...
{ "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_130
{ "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 testFindMoreResults() {\n final Query queryResult = mock(Query.class);\n final Entry resultEntry1 = mock(Entry.class);\n final Entry resultEntry2 = mock(Entry.class);\n when(restTemplate.getForObject(Query.URI, Query.class, project.getId(), \"queryables\")...
{ "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_262
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/MetricTest.java", "identifier": "MetricTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldDeserializeFolder() throws Exception {\n final Metric metric = readObjectFromResource(\"/md/metric-folder.json\", Metric.class);\n assertThat(metric.getFolders(), contains(\"/gdc/md/ge06jy0jr6h1hzaxei6d53evw276p3xc/obj/51430\"));\n }", "class_method_signature...
{ "fields": [ { "declarator": "serialVersionUID = -1666713447809179661L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -1666713447809179661L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "con...
{ "body": "@JsonIgnore\n public Collection<String> getFolders() {\n return content.getFolders();\n }", "class_method_signature": "Metric.getFolders()", "constructor": false, "full_signature": "@JsonIgnore public Collection<String> getFolders()", "identifier": "getFolders", "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_235
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnUploading() throws Exception {\n assertThat(new Status(UPLOADING.name(), \"\", \"\").isFinished(), is(false));\n }", "class_method_signature": "StatusTest.testIsFinishedOnUploading()", "constructor": false, "full_signature": "@Test public void testIsFi...
{ "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_223
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java", "identifier": "IntegrationProcessStatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFinishedOnSynchronized() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(SYNCHRONIZED.name(), \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFinished(), is(true));\n }", "class_...
{ "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_274
{ "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 testDeserializationWithFlags() throws Exception {\n final Meta meta = readObjectFromResource(\"/md/meta-withFlags.json\", Meta.class);\n assertThat(meta, is(notNullValue()));\n assertThat(meta.getFlags(), is(FLAGS));\n }", "class_method_signature": "MetaTest...
{ "fields": [ { "declarator": "serialVersionUID = -8102041850487115166L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8102041850487115166L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "SUM...
{ "body": "public Set<String> getFlags() {\n return flags;\n }", "class_method_signature": "Meta.getFlags()", "constructor": false, "full_signature": "public Set<String> getFlags()", "identifier": "getFlags", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Set<String...
{ "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_203
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/PullTest.java", "identifier": "PullTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final Pull pull = new Pull(\"DIR\");\n\n assertThat(pull.toString(), matchesPattern(Pull.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "PullTest.testToStringFormat()", "constructor": false, "full_signature"...
{ "fields": [ { "declarator": "URI = \"/gdc/md/{projectId}/etl/pull2\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/md/{projectId}/etl/pull2\";", "type": "String", "var_name": "URI" }, { "declarator": "remoteDir", ...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Pull.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_192
{ "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 testCreateWithLoginWithNullRole() throws Exception {\n WarehouseUser.createWithlogin(LOGIN, null);\n }", "class_method_signature": "WarehouseUserTest.testCreateWithLoginWithNullRole()", "constructor": false, "full_s...
{ "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 createWithlogin(final String login, final WarehouseUserRole role) {\n notNull(role, \"role cannot be null\");\n return new WarehouseUser(role.getRoleName(), null, login);\n }", "class_method_signature": "WarehouseUser.createWithlogin(final String login, 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_254
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/notification/ProjectEventTest.java", "identifier": "ProjectEventTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringFormat() {\n final ProjectEvent projectEvent = new ProjectEvent(\"etl.test\");\n\n assertThat(projectEvent.toString(), matchesPattern(ProjectEvent.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "ProjectEventTest.testToString...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/notifications/events\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/notifications/events\";", "type": "String", "var_name": "URI" }, { ...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "ProjectEvent.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defa...
{ "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_95
{ "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 @SuppressWarnings(\"unchecked\")\n public void testCreateObjGDRestException() {\n final Obj obj = mock(Obj.class);\n when(restTemplate.postForObject(Obj.URI, obj, UriResponse.class, PROJECT_ID))\n .thenThrow(GoodDataR...
{ "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_311
{ "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 testGetUpdateMaqlsNoUpdateScript() throws Exception {\n final ModelDiff diff = new ModelDiff(Collections.emptyList());\n\n assertThat(diff.getUpdateMaql(), hasSize(0));\n }", "class_method_signature": "ModelDiffTest.testGetUpdateMaqlsNoUpdateScript()", "construct...
{ "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_184
{ "fields": [ { "declarator": "EXECUTABLE = \"Twitter/graph/twitter.grf\"", "modifier": "private static final", "original_string": "private static final String EXECUTABLE = \"Twitter/graph/twitter.grf\";", "type": "String", "var_name": "EXECUTABLE" }, { "declarator": "p...
{ "body": "@Test\n public void testToStringFormat() {\n final Schedule schedule = new Schedule(process, EXECUTABLE, \"0 0 * * *\");\n\n assertThat(schedule.toString(), matchesPattern(Schedule.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }", "class_method_signature": "ScheduleTest.testToStringFo...
{ "fields": [ { "declarator": "URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\"", "modifier": "public static final", "original_string": "public static final String URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\";", "type": "String", "var_name": "URI" }, {...
{ "body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }", "class_method_signature": "Schedule.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "defaultT...
{ "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_242
{ "fields": [], "file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java", "identifier": "StatusTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsFailedOnUnknownCode() throws Exception {\n assertThat(new Status(\"unknown code\", \"\", \"\").isFailed(), is(false));\n }", "class_method_signature": "StatusTest.testIsFailedOnUnknownCode()", "constructor": false, "full_signature": "@Test public void testIsFail...
{ "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...