{"action":"created","comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/comments/28546094","id":28546094,"diff_hunk":"@@ -0,0 +1,111 @@\n+#include <Parse.h>\n+#include <Bridge.h>\n+#include <assert.h>\n+\n+/***** Integration Tests of Parse Arduino Yún SDK *****/\n+ParseClient client;\n+int i = 0; // testId for a specific test\n+\n+void basicObjectTest() {\n+  Serial.println(\"basic object operation test\");\n+\n+  Serial.println(\"create...\");\n+  ParseObjectCreate create;\n+  create.setClassName(\"Temperature\");\n+  create.add(\"temperature\", 175.0);\n+  create.add(\"leverDown\", true);\n+  ParseResponse createResponse = create.send();\n+  char* objectId = new char[10];\n+  strcpy(objectId, createResponse.getString(\"objectId\"));\n+  assert(createResponse.getErrorCode() == 0);\n+  createResponse.close();\n+\n+  Serial.println(\"update...\");\n+  ParseObjectUpdate update;\n+  update.setClassName(\"Temperature\");\n+  update.setObjectId(objectId);\n+  update.add(\"temperature\", 100);\n+  ParseResponse updateResponse = update.send();\n+  assert(updateResponse.getErrorCode() == 0);\n+  updateResponse.close();\n+\n+  Serial.println(\"get...\");\n+  ParseObjectGet get;\n+  get.setClassName(\"Temperature\");\n+  get.setObjectId(objectId);\n+  ParseResponse getResponse = get.send();\n+  double temp = getResponse.getDouble(\"temperature\");\n+  assert(temp == 100);\n+  getResponse.close();\n+\n+  Serial.println(\"delete...\");\n+  ParseObjectDelete del;\n+  del.setClassName(\"Temperature\");\n+  del.setObjectId(objectId);\n+  ParseResponse delResponse = del.send();\n+  delResponse.close();\n+","path":"yun/libraries/Parse/examples/test/Test.ino","position":47,"original_position":47,"commit_id":"eb9014611cb3b873c3266d988d7155303216fcf5","original_commit_id":"eb9014611cb3b873c3266d988d7155303216fcf5","user":{"login":"stanleyw","id":2966902,"avatar_url":"https://avatars.githubusercontent.com/u/2966902?v=3","gravatar_id":"","url":"https://api.github.com/users/stanleyw","html_url":"https://github.com/stanleyw","followers_url":"https://api.github.com/users/stanleyw/followers","following_url":"https://api.github.com/users/stanleyw/following{/other_user}","gists_url":"https://api.github.com/users/stanleyw/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyw/subscriptions","organizations_url":"https://api.github.com/users/stanleyw/orgs","repos_url":"https://api.github.com/users/stanleyw/repos","events_url":"https://api.github.com/users/stanleyw/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyw/received_events","type":"User","site_admin":false},"body":"Could we check that the object is actually deleted?","created_at":"2015-04-16T20:23:27Z","updated_at":"2015-04-16T20:23:27Z","html_url":"https://github.com/ParsePlatform/parse-embedded-sdks/pull/23#discussion_r28546094","pull_request_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/comments/28546094"},"html":{"href":"https://github.com/ParsePlatform/parse-embedded-sdks/pull/23#discussion_r28546094"},"pull_request":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23","id":33482004,"html_url":"https://github.com/ParsePlatform/parse-embedded-sdks/pull/23","diff_url":"https://github.com/ParsePlatform/parse-embedded-sdks/pull/23.diff","patch_url":"https://github.com/ParsePlatform/parse-embedded-sdks/pull/23.patch","issue_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues/23","number":23,"state":"open","locked":false,"title":"Simple integration test for yun SDK","user":{"login":"ronaldyang","id":7286121,"avatar_url":"https://avatars.githubusercontent.com/u/7286121?v=3","gravatar_id":"","url":"https://api.github.com/users/ronaldyang","html_url":"https://github.com/ronaldyang","followers_url":"https://api.github.com/users/ronaldyang/followers","following_url":"https://api.github.com/users/ronaldyang/following{/other_user}","gists_url":"https://api.github.com/users/ronaldyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ronaldyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronaldyang/subscriptions","organizations_url":"https://api.github.com/users/ronaldyang/orgs","repos_url":"https://api.github.com/users/ronaldyang/repos","events_url":"https://api.github.com/users/ronaldyang/events{/privacy}","received_events_url":"https://api.github.com/users/ronaldyang/received_events","type":"User","site_admin":false},"body":"Some fundamental integration test for Yun SDK. The code is mainly a tailored version of Parse Arduino Guide.\r\n\r\nDue to memory limit(too much code will occupy run time memory), this is so far the max test which can be done in one sketch.","created_at":"2015-04-16T19:00:53Z","updated_at":"2015-04-16T20:23:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6c5fb85e2fe571e2595ae9798eebf77c423d48a","assignee":{"login":"stanleyw","id":2966902,"avatar_url":"https://avatars.githubusercontent.com/u/2966902?v=3","gravatar_id":"","url":"https://api.github.com/users/stanleyw","html_url":"https://github.com/stanleyw","followers_url":"https://api.github.com/users/stanleyw/followers","following_url":"https://api.github.com/users/stanleyw/following{/other_user}","gists_url":"https://api.github.com/users/stanleyw/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyw/subscriptions","organizations_url":"https://api.github.com/users/stanleyw/orgs","repos_url":"https://api.github.com/users/stanleyw/repos","events_url":"https://api.github.com/users/stanleyw/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyw/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23/commits","review_comments_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23/comments","review_comment_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues/23/comments","statuses_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/statuses/eb9014611cb3b873c3266d988d7155303216fcf5","head":{"label":"ronaldyang:master","ref":"master","sha":"eb9014611cb3b873c3266d988d7155303216fcf5","user":{"login":"ronaldyang","id":7286121,"avatar_url":"https://avatars.githubusercontent.com/u/7286121?v=3","gravatar_id":"","url":"https://api.github.com/users/ronaldyang","html_url":"https://github.com/ronaldyang","followers_url":"https://api.github.com/users/ronaldyang/followers","following_url":"https://api.github.com/users/ronaldyang/following{/other_user}","gists_url":"https://api.github.com/users/ronaldyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ronaldyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronaldyang/subscriptions","organizations_url":"https://api.github.com/users/ronaldyang/orgs","repos_url":"https://api.github.com/users/ronaldyang/repos","events_url":"https://api.github.com/users/ronaldyang/events{/privacy}","received_events_url":"https://api.github.com/users/ronaldyang/received_events","type":"User","site_admin":false},"repo":{"id":33338445,"name":"parse-embedded-sdks","full_name":"ronaldyang/parse-embedded-sdks","owner":{"login":"ronaldyang","id":7286121,"avatar_url":"https://avatars.githubusercontent.com/u/7286121?v=3","gravatar_id":"","url":"https://api.github.com/users/ronaldyang","html_url":"https://github.com/ronaldyang","followers_url":"https://api.github.com/users/ronaldyang/followers","following_url":"https://api.github.com/users/ronaldyang/following{/other_user}","gists_url":"https://api.github.com/users/ronaldyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ronaldyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronaldyang/subscriptions","organizations_url":"https://api.github.com/users/ronaldyang/orgs","repos_url":"https://api.github.com/users/ronaldyang/repos","events_url":"https://api.github.com/users/ronaldyang/events{/privacy}","received_events_url":"https://api.github.com/users/ronaldyang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ronaldyang/parse-embedded-sdks","description":"","fork":true,"url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks","forks_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/forks","keys_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/teams","hooks_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/hooks","issue_events_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/issues/events{/number}","events_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/events","assignees_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/assignees{/user}","branches_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/branches{/branch}","tags_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/tags","blobs_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/git/refs{/sha}","trees_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/statuses/{sha}","languages_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/languages","stargazers_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/stargazers","contributors_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/contributors","subscribers_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/subscribers","subscription_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/subscription","commits_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/commits{/sha}","git_commits_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/git/commits{/sha}","comments_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/comments{/number}","issue_comment_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/issues/comments{/number}","contents_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/contents/{+path}","compare_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/merges","archive_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/downloads","issues_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/issues{/number}","pulls_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/pulls{/number}","milestones_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/milestones{/number}","notifications_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/labels{/name}","releases_url":"https://api.github.com/repos/ronaldyang/parse-embedded-sdks/releases{/id}","created_at":"2015-04-03T00:29:22Z","updated_at":"2015-04-16T18:58:16Z","pushed_at":"2015-04-16T18:58:16Z","git_url":"git://github.com/ronaldyang/parse-embedded-sdks.git","ssh_url":"git@github.com:ronaldyang/parse-embedded-sdks.git","clone_url":"https://github.com/ronaldyang/parse-embedded-sdks.git","svn_url":"https://github.com/ronaldyang/parse-embedded-sdks","homepage":null,"size":469,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ParsePlatform:master","ref":"master","sha":"019bac43403c8eb6db2eedf56ac319858ddf9cb2","user":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":32615077,"name":"parse-embedded-sdks","full_name":"ParsePlatform/parse-embedded-sdks","owner":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ParsePlatform/parse-embedded-sdks","description":"","fork":false,"url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks","forks_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/forks","keys_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/teams","hooks_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/hooks","issue_events_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues/events{/number}","events_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/events","assignees_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/assignees{/user}","branches_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/branches{/branch}","tags_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/tags","blobs_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/git/refs{/sha}","trees_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/statuses/{sha}","languages_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/languages","stargazers_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/stargazers","contributors_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/contributors","subscribers_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/subscribers","subscription_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/subscription","commits_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/commits{/sha}","git_commits_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/git/commits{/sha}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/comments{/number}","issue_comment_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues/comments{/number}","contents_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/contents/{+path}","compare_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/merges","archive_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/downloads","issues_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues{/number}","pulls_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls{/number}","milestones_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/milestones{/number}","notifications_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/labels{/name}","releases_url":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/releases{/id}","created_at":"2015-03-21T01:15:14Z","updated_at":"2015-04-16T06:21:40Z","pushed_at":"2015-04-16T19:00:54Z","git_url":"git://github.com/ParsePlatform/parse-embedded-sdks.git","ssh_url":"git@github.com:ParsePlatform/parse-embedded-sdks.git","clone_url":"https://github.com/ParsePlatform/parse-embedded-sdks.git","svn_url":"https://github.com/ParsePlatform/parse-embedded-sdks","homepage":null,"size":804,"stargazers_count":109,"watchers_count":109,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":3,"forks":16,"open_issues":3,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23"},"html":{"href":"https://github.com/ParsePlatform/parse-embedded-sdks/pull/23"},"issue":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues/23"},"comments":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/ParsePlatform/parse-embedded-sdks/statuses/eb9014611cb3b873c3266d988d7155303216fcf5"}}}}