{"action":"created","comment":{"url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/comments/25237785","id":25237785,"diff_hunk":"@@ -0,0 +1,136 @@\n+package io.vertx.ext.unit;\n+\n+import io.vertx.codegen.annotations.CacheReturn;\n+import io.vertx.codegen.annotations.Fluent;\n+import io.vertx.codegen.annotations.VertxGen;\n+import io.vertx.core.Vertx;\n+\n+/**\n+ * The test object is used for performing test assertions and manage the completion of the test. This object\n+ * is provided by <i>vertx-unit</i> as argument of the test case.\n+ *\n+ * @author <a href=\"mailto:julien@julienviet.com\">Julien Viet</a>\n+ */\n+@VertxGen\n+public interface Test {\n+\n+  /**\n+   * Assert the specified {@code condition} is {@code true}. If the condition is {@code false}, an assertion error is thrown\n+   * otherwise the execution continue.\n+   *\n+   * @param condition the condition to assert\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertTrue(boolean condition);\n+\n+  /**\n+   * Assert the specified {@code condition} is {@code true}. If the condition is {@code false}, an assertion error is thrown\n+   * otherwise the execution continue.\n+   *\n+   * @param condition the condition to assert\n+   * @param message the failure message\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertTrue(boolean condition, String message);\n+\n+  /**\n+   * Assert the specified {@code condition} is {@code false}. If the condition is {@code true}, an assertion error is thrown\n+   * otherwise the execution continue.\n+   *\n+   * @param condition the condition to assert\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertFalse(boolean condition);\n+\n+  /**\n+   * Assert the specified {@code condition} is {@code false}. If the condition is {@code true}, an assertion error is thrown\n+   * otherwise the execution continue.\n+   *\n+   * @param condition the condition to assert\n+   * @param message the failure message\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertFalse(boolean condition, String message);\n+\n+  /**\n+   * Assert the {@code expected} argument is equals to the {@code actual} argument. If the arguments are not equals\n+   * an assertion error is thrown otherwise the execution continue.\n+   *\n+   * @param expected the object the actual object is supposedly equals to\n+   * @param actual the actual object to test\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertEquals(Object expected, Object actual);\n+\n+  /**\n+   * Assert the {@code expected} argument is equals to the {@code actual} argument. If the arguments are not equals\n+   * an assertion error is thrown otherwise the execution continue.\n+   *\n+   * @param expected the object the actual object is supposedly equals to\n+   * @param actual the actual object to test\n+   * @param message the failure message\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertEquals(Object expected, Object actual, String message);\n+\n+  /**\n+   * Assert the {@code first} argument is not equals to the {@code second} argument. If the arguments are equals\n+   * an assertion error is thrown otherwise the execution continue.\n+   *\n+   * @param first the first object to test\n+   * @param second the second object to test\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertNotEquals(Object first, Object second);\n+\n+  /**\n+   * Assert the {@code first} argument is not equals to the {@code second} argument. If the arguments are equals\n+   * an assertion error is thrown otherwise the execution continue.\n+   *\n+   * @param first the first object to test\n+   * @param second the second object to test\n+   * @param message the failure message\n+   * @return a reference to this, so the API can be used fluently\n+   */\n+  @Fluent\n+  Test assertNotEquals(Object first, Object second, String message);","path":"src/main/java/io/vertx/ext/unit/Test.java","position":103,"original_position":103,"commit_id":"164ca8edddc93ae615337708664e78a7dbe3eee3","original_commit_id":"164ca8edddc93ae615337708664e78a7dbe3eee3","user":{"login":"vietj","id":225674,"avatar_url":"https://avatars.githubusercontent.com/u/225674?v=3","gravatar_id":"","url":"https://api.github.com/users/vietj","html_url":"https://github.com/vietj","followers_url":"https://api.github.com/users/vietj/followers","following_url":"https://api.github.com/users/vietj/following{/other_user}","gists_url":"https://api.github.com/users/vietj/gists{/gist_id}","starred_url":"https://api.github.com/users/vietj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietj/subscriptions","organizations_url":"https://api.github.com/users/vietj/orgs","repos_url":"https://api.github.com/users/vietj/repos","events_url":"https://api.github.com/users/vietj/events{/privacy}","received_events_url":"https://api.github.com/users/vietj/received_events","type":"User","site_admin":false},"body":"Note that I tried to have the margin floating point and it raised issues with overloading, I'll try again.","created_at":"2015-02-24T09:17:03Z","updated_at":"2015-02-24T09:17:03Z","html_url":"https://github.com/vert-x3/vertx-unit/pull/2#discussion_r25237785","pull_request_url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/comments/25237785"},"html":{"href":"https://github.com/vert-x3/vertx-unit/pull/2#discussion_r25237785"},"pull_request":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2","id":29828096,"html_url":"https://github.com/vert-x3/vertx-unit/pull/2","diff_url":"https://github.com/vert-x3/vertx-unit/pull/2.diff","patch_url":"https://github.com/vert-x3/vertx-unit/pull/2.patch","issue_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues/2","number":2,"state":"open","locked":false,"title":"Initial work","user":{"login":"vietj","id":225674,"avatar_url":"https://avatars.githubusercontent.com/u/225674?v=3","gravatar_id":"","url":"https://api.github.com/users/vietj","html_url":"https://github.com/vietj","followers_url":"https://api.github.com/users/vietj/followers","following_url":"https://api.github.com/users/vietj/following{/other_user}","gists_url":"https://api.github.com/users/vietj/gists{/gist_id}","starred_url":"https://api.github.com/users/vietj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietj/subscriptions","organizations_url":"https://api.github.com/users/vietj/orgs","repos_url":"https://api.github.com/users/vietj/repos","events_url":"https://api.github.com/users/vietj/events{/privacy}","received_events_url":"https://api.github.com/users/vietj/received_events","type":"User","site_admin":false},"body":"Here is the initial work. @purplefox please review ","created_at":"2015-02-23T17:31:53Z","updated_at":"2015-02-24T09:17:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"019f74005c13ef9638e4f6afc054b6d68c5f131e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2/commits","review_comments_url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2/comments","review_comment_url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues/2/comments","statuses_url":"https://api.github.com/repos/vert-x3/vertx-unit/statuses/164ca8edddc93ae615337708664e78a7dbe3eee3","head":{"label":"vert-x3:initial-work","ref":"initial-work","sha":"164ca8edddc93ae615337708664e78a7dbe3eee3","user":{"login":"vert-x3","id":8124623,"avatar_url":"https://avatars.githubusercontent.com/u/8124623?v=3","gravatar_id":"","url":"https://api.github.com/users/vert-x3","html_url":"https://github.com/vert-x3","followers_url":"https://api.github.com/users/vert-x3/followers","following_url":"https://api.github.com/users/vert-x3/following{/other_user}","gists_url":"https://api.github.com/users/vert-x3/gists{/gist_id}","starred_url":"https://api.github.com/users/vert-x3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vert-x3/subscriptions","organizations_url":"https://api.github.com/users/vert-x3/orgs","repos_url":"https://api.github.com/users/vert-x3/repos","events_url":"https://api.github.com/users/vert-x3/events{/privacy}","received_events_url":"https://api.github.com/users/vert-x3/received_events","type":"Organization","site_admin":false},"repo":{"id":29251724,"name":"vertx-unit","full_name":"vert-x3/vertx-unit","owner":{"login":"vert-x3","id":8124623,"avatar_url":"https://avatars.githubusercontent.com/u/8124623?v=3","gravatar_id":"","url":"https://api.github.com/users/vert-x3","html_url":"https://github.com/vert-x3","followers_url":"https://api.github.com/users/vert-x3/followers","following_url":"https://api.github.com/users/vert-x3/following{/other_user}","gists_url":"https://api.github.com/users/vert-x3/gists{/gist_id}","starred_url":"https://api.github.com/users/vert-x3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vert-x3/subscriptions","organizations_url":"https://api.github.com/users/vert-x3/orgs","repos_url":"https://api.github.com/users/vert-x3/repos","events_url":"https://api.github.com/users/vert-x3/events{/privacy}","received_events_url":"https://api.github.com/users/vert-x3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vert-x3/vertx-unit","description":"","fork":false,"url":"https://api.github.com/repos/vert-x3/vertx-unit","forks_url":"https://api.github.com/repos/vert-x3/vertx-unit/forks","keys_url":"https://api.github.com/repos/vert-x3/vertx-unit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vert-x3/vertx-unit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vert-x3/vertx-unit/teams","hooks_url":"https://api.github.com/repos/vert-x3/vertx-unit/hooks","issue_events_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues/events{/number}","events_url":"https://api.github.com/repos/vert-x3/vertx-unit/events","assignees_url":"https://api.github.com/repos/vert-x3/vertx-unit/assignees{/user}","branches_url":"https://api.github.com/repos/vert-x3/vertx-unit/branches{/branch}","tags_url":"https://api.github.com/repos/vert-x3/vertx-unit/tags","blobs_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/refs{/sha}","trees_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vert-x3/vertx-unit/statuses/{sha}","languages_url":"https://api.github.com/repos/vert-x3/vertx-unit/languages","stargazers_url":"https://api.github.com/repos/vert-x3/vertx-unit/stargazers","contributors_url":"https://api.github.com/repos/vert-x3/vertx-unit/contributors","subscribers_url":"https://api.github.com/repos/vert-x3/vertx-unit/subscribers","subscription_url":"https://api.github.com/repos/vert-x3/vertx-unit/subscription","commits_url":"https://api.github.com/repos/vert-x3/vertx-unit/commits{/sha}","git_commits_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/commits{/sha}","comments_url":"https://api.github.com/repos/vert-x3/vertx-unit/comments{/number}","issue_comment_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues/comments{/number}","contents_url":"https://api.github.com/repos/vert-x3/vertx-unit/contents/{+path}","compare_url":"https://api.github.com/repos/vert-x3/vertx-unit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vert-x3/vertx-unit/merges","archive_url":"https://api.github.com/repos/vert-x3/vertx-unit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vert-x3/vertx-unit/downloads","issues_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues{/number}","pulls_url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls{/number}","milestones_url":"https://api.github.com/repos/vert-x3/vertx-unit/milestones{/number}","notifications_url":"https://api.github.com/repos/vert-x3/vertx-unit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vert-x3/vertx-unit/labels{/name}","releases_url":"https://api.github.com/repos/vert-x3/vertx-unit/releases{/id}","created_at":"2015-01-14T15:49:17Z","updated_at":"2015-02-23T17:28:23Z","pushed_at":"2015-02-23T17:30:41Z","git_url":"git://github.com/vert-x3/vertx-unit.git","ssh_url":"git@github.com:vert-x3/vertx-unit.git","clone_url":"https://github.com/vert-x3/vertx-unit.git","svn_url":"https://github.com/vert-x3/vertx-unit","homepage":null,"size":624,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"vert-x3:master","ref":"master","sha":"d6bbfacc8133e3cd086f153e24262336c1512138","user":{"login":"vert-x3","id":8124623,"avatar_url":"https://avatars.githubusercontent.com/u/8124623?v=3","gravatar_id":"","url":"https://api.github.com/users/vert-x3","html_url":"https://github.com/vert-x3","followers_url":"https://api.github.com/users/vert-x3/followers","following_url":"https://api.github.com/users/vert-x3/following{/other_user}","gists_url":"https://api.github.com/users/vert-x3/gists{/gist_id}","starred_url":"https://api.github.com/users/vert-x3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vert-x3/subscriptions","organizations_url":"https://api.github.com/users/vert-x3/orgs","repos_url":"https://api.github.com/users/vert-x3/repos","events_url":"https://api.github.com/users/vert-x3/events{/privacy}","received_events_url":"https://api.github.com/users/vert-x3/received_events","type":"Organization","site_admin":false},"repo":{"id":29251724,"name":"vertx-unit","full_name":"vert-x3/vertx-unit","owner":{"login":"vert-x3","id":8124623,"avatar_url":"https://avatars.githubusercontent.com/u/8124623?v=3","gravatar_id":"","url":"https://api.github.com/users/vert-x3","html_url":"https://github.com/vert-x3","followers_url":"https://api.github.com/users/vert-x3/followers","following_url":"https://api.github.com/users/vert-x3/following{/other_user}","gists_url":"https://api.github.com/users/vert-x3/gists{/gist_id}","starred_url":"https://api.github.com/users/vert-x3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vert-x3/subscriptions","organizations_url":"https://api.github.com/users/vert-x3/orgs","repos_url":"https://api.github.com/users/vert-x3/repos","events_url":"https://api.github.com/users/vert-x3/events{/privacy}","received_events_url":"https://api.github.com/users/vert-x3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vert-x3/vertx-unit","description":"","fork":false,"url":"https://api.github.com/repos/vert-x3/vertx-unit","forks_url":"https://api.github.com/repos/vert-x3/vertx-unit/forks","keys_url":"https://api.github.com/repos/vert-x3/vertx-unit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vert-x3/vertx-unit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vert-x3/vertx-unit/teams","hooks_url":"https://api.github.com/repos/vert-x3/vertx-unit/hooks","issue_events_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues/events{/number}","events_url":"https://api.github.com/repos/vert-x3/vertx-unit/events","assignees_url":"https://api.github.com/repos/vert-x3/vertx-unit/assignees{/user}","branches_url":"https://api.github.com/repos/vert-x3/vertx-unit/branches{/branch}","tags_url":"https://api.github.com/repos/vert-x3/vertx-unit/tags","blobs_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/refs{/sha}","trees_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vert-x3/vertx-unit/statuses/{sha}","languages_url":"https://api.github.com/repos/vert-x3/vertx-unit/languages","stargazers_url":"https://api.github.com/repos/vert-x3/vertx-unit/stargazers","contributors_url":"https://api.github.com/repos/vert-x3/vertx-unit/contributors","subscribers_url":"https://api.github.com/repos/vert-x3/vertx-unit/subscribers","subscription_url":"https://api.github.com/repos/vert-x3/vertx-unit/subscription","commits_url":"https://api.github.com/repos/vert-x3/vertx-unit/commits{/sha}","git_commits_url":"https://api.github.com/repos/vert-x3/vertx-unit/git/commits{/sha}","comments_url":"https://api.github.com/repos/vert-x3/vertx-unit/comments{/number}","issue_comment_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues/comments{/number}","contents_url":"https://api.github.com/repos/vert-x3/vertx-unit/contents/{+path}","compare_url":"https://api.github.com/repos/vert-x3/vertx-unit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vert-x3/vertx-unit/merges","archive_url":"https://api.github.com/repos/vert-x3/vertx-unit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vert-x3/vertx-unit/downloads","issues_url":"https://api.github.com/repos/vert-x3/vertx-unit/issues{/number}","pulls_url":"https://api.github.com/repos/vert-x3/vertx-unit/pulls{/number}","milestones_url":"https://api.github.com/repos/vert-x3/vertx-unit/milestones{/number}","notifications_url":"https://api.github.com/repos/vert-x3/vertx-unit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vert-x3/vertx-unit/labels{/name}","releases_url":"https://api.github.com/repos/vert-x3/vertx-unit/releases{/id}","created_at":"2015-01-14T15:49:17Z","updated_at":"2015-02-23T17:28:23Z","pushed_at":"2015-02-23T17:30:41Z","git_url":"git://github.com/vert-x3/vertx-unit.git","ssh_url":"git@github.com:vert-x3/vertx-unit.git","clone_url":"https://github.com/vert-x3/vertx-unit.git","svn_url":"https://github.com/vert-x3/vertx-unit","homepage":null,"size":624,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2"},"html":{"href":"https://github.com/vert-x3/vertx-unit/pull/2"},"issue":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/issues/2"},"comments":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/vert-x3/vertx-unit/statuses/164ca8edddc93ae615337708664e78a7dbe3eee3"}}}}