{"action":"created","comment":{"url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/comments/177752910","pull_request_review_id":107678946,"id":177752910,"diff_hunk":"@@ -0,0 +1,74 @@\n+package com.ipiecoles.java340.repository.repository;\n+\n+import com.ipiecoles.java.java340.SpringWebApplication;\n+import com.ipiecoles.java.java340.model.Commercial;\n+import com.ipiecoles.java.java340.model.Employe;\n+import com.ipiecoles.java.java340.repository.EmployeRepository;\n+import org.assertj.core.api.Assertions;\n+import org.joda.time.LocalDate;\n+import org.junit.After;\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;\n+import org.springframework.boot.test.context.SpringBootTest;\n+import org.springframework.test.context.junit4.SpringRunner;\n+\n+import java.util.List;\n+\n+@RunWith(SpringRunner.class)\n+@SpringBootTest(classes = SpringWebApplication.class)\n+@DataJpaTest\n+public class ManagerRepositoryTest {\n+\n+    Commercial Boubacar;\n+    Commercial Yves;\n+    Commercial Dupond;\n+    @Autowired\n+    EmployeRepository employeRepository;\n+\n+    @Before\n+    public void setUp() {\n+        employeRepository.deleteAll();\n+        Boubacar=new Commercial(\"Boubacar\", \"SEIN\", \"C12345\", new LocalDate(), 7000d, 7000d, 5);\n+        Yves=new Commercial(\"Yves\", \"jean\", \"C12346\", new LocalDate(), 4500d, 6000d, 5);\n+        Dupond=new Commercial(\"Dupond\", \"Jacques\", \"C12347\", new LocalDate(), 1500d, 0d, 0);\n+        Boubacar=employeRepository.save(Boubacar);\n+        Yves=employeRepository.save(Yves);\n+        Dupond=employeRepository.save(Dupond);\n+    }\n+   @After\n+    public void tearDown(){\n+        employeRepository.deleteAll();\n+    }\n+\n+    @Test\n+ public void findEmployesPlusRichesTest(){\n+              //given\n+\n+\n+               //when\n+        \t\tList<Employe> listeEmp = employeRepository.findEmployePlusRiches();\n+                //then\n+                Assertions.assertThat(listeEmp).hasSize(2);\n+        \t    Assertions.assertThat(listeEmp).contains(Boubacar);\n+                Assertions.assertThat(listeEmp).contains(Yves);\n+\n+        \t}\n+\n+    @Test\n+ \tpublic void findEmployesPlusRichesTestWithNoResults(){","path":"src/Test/java/com/ipiecoles/java340/repository/repository/ManagerRepositoryTest.java","position":61,"original_position":61,"commit_id":"0f6a4d554590bbca91b90cb557c61d628989e737","original_commit_id":"0f6a4d554590bbca91b90cb557c61d628989e737","user":{"login":"pjvilloud","id":31385588,"avatar_url":"https://avatars0.githubusercontent.com/u/31385588?v=4","gravatar_id":"","url":"https://api.github.com/users/pjvilloud","html_url":"https://github.com/pjvilloud","followers_url":"https://api.github.com/users/pjvilloud/followers","following_url":"https://api.github.com/users/pjvilloud/following{/other_user}","gists_url":"https://api.github.com/users/pjvilloud/gists{/gist_id}","starred_url":"https://api.github.com/users/pjvilloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjvilloud/subscriptions","organizations_url":"https://api.github.com/users/pjvilloud/orgs","repos_url":"https://api.github.com/users/pjvilloud/repos","events_url":"https://api.github.com/users/pjvilloud/events{/privacy}","received_events_url":"https://api.github.com/users/pjvilloud/received_events","type":"User","site_admin":false},"body":"OK pour ce cas, tu aurais pu tester sans aucun employé dans la base aussi","created_at":"2018-03-28T13:42:03Z","updated_at":"2018-03-28T13:43:17Z","html_url":"https://github.com/pjvilloud/ipi-java-340-ex/pull/12#discussion_r177752910","pull_request_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/comments/177752910"},"html":{"href":"https://github.com/pjvilloud/ipi-java-340-ex/pull/12#discussion_r177752910"},"pull_request":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12","id":175751714,"html_url":"https://github.com/pjvilloud/ipi-java-340-ex/pull/12","diff_url":"https://github.com/pjvilloud/ipi-java-340-ex/pull/12.diff","patch_url":"https://github.com/pjvilloud/ipi-java-340-ex/pull/12.patch","issue_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues/12","number":12,"state":"open","locked":false,"title":"Rendu Tp 340","user":{"login":"boubseini","id":33018990,"avatar_url":"https://avatars0.githubusercontent.com/u/33018990?v=4","gravatar_id":"","url":"https://api.github.com/users/boubseini","html_url":"https://github.com/boubseini","followers_url":"https://api.github.com/users/boubseini/followers","following_url":"https://api.github.com/users/boubseini/following{/other_user}","gists_url":"https://api.github.com/users/boubseini/gists{/gist_id}","starred_url":"https://api.github.com/users/boubseini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boubseini/subscriptions","organizations_url":"https://api.github.com/users/boubseini/orgs","repos_url":"https://api.github.com/users/boubseini/repos","events_url":"https://api.github.com/users/boubseini/events{/privacy}","received_events_url":"https://api.github.com/users/boubseini/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-18T13:40:29Z","updated_at":"2018-03-28T13:43:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12/commits","review_comments_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12/comments","review_comment_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues/12/comments","statuses_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/statuses/0f6a4d554590bbca91b90cb557c61d628989e737","head":{"label":"boubseini:master","ref":"master","sha":"0f6a4d554590bbca91b90cb557c61d628989e737","user":{"login":"boubseini","id":33018990,"avatar_url":"https://avatars0.githubusercontent.com/u/33018990?v=4","gravatar_id":"","url":"https://api.github.com/users/boubseini","html_url":"https://github.com/boubseini","followers_url":"https://api.github.com/users/boubseini/followers","following_url":"https://api.github.com/users/boubseini/following{/other_user}","gists_url":"https://api.github.com/users/boubseini/gists{/gist_id}","starred_url":"https://api.github.com/users/boubseini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boubseini/subscriptions","organizations_url":"https://api.github.com/users/boubseini/orgs","repos_url":"https://api.github.com/users/boubseini/repos","events_url":"https://api.github.com/users/boubseini/events{/privacy}","received_events_url":"https://api.github.com/users/boubseini/received_events","type":"User","site_admin":false},"repo":{"id":121248495,"name":"ipi-java-340-ex","full_name":"boubseini/ipi-java-340-ex","owner":{"login":"boubseini","id":33018990,"avatar_url":"https://avatars0.githubusercontent.com/u/33018990?v=4","gravatar_id":"","url":"https://api.github.com/users/boubseini","html_url":"https://github.com/boubseini","followers_url":"https://api.github.com/users/boubseini/followers","following_url":"https://api.github.com/users/boubseini/following{/other_user}","gists_url":"https://api.github.com/users/boubseini/gists{/gist_id}","starred_url":"https://api.github.com/users/boubseini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boubseini/subscriptions","organizations_url":"https://api.github.com/users/boubseini/orgs","repos_url":"https://api.github.com/users/boubseini/repos","events_url":"https://api.github.com/users/boubseini/events{/privacy}","received_events_url":"https://api.github.com/users/boubseini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boubseini/ipi-java-340-ex","description":"TP de Java, module 340 pour l'IPI","fork":true,"url":"https://api.github.com/repos/boubseini/ipi-java-340-ex","forks_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/forks","keys_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/teams","hooks_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/hooks","issue_events_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/issues/events{/number}","events_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/events","assignees_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/assignees{/user}","branches_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/branches{/branch}","tags_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/tags","blobs_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/git/refs{/sha}","trees_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/statuses/{sha}","languages_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/languages","stargazers_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/stargazers","contributors_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/contributors","subscribers_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/subscribers","subscription_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/subscription","commits_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/commits{/sha}","git_commits_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/git/commits{/sha}","comments_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/comments{/number}","issue_comment_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/issues/comments{/number}","contents_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/contents/{+path}","compare_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/merges","archive_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/downloads","issues_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/issues{/number}","pulls_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/pulls{/number}","milestones_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/milestones{/number}","notifications_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/labels{/name}","releases_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/releases{/id}","deployments_url":"https://api.github.com/repos/boubseini/ipi-java-340-ex/deployments","created_at":"2018-02-12T13:14:29Z","updated_at":"2018-03-18T13:37:40Z","pushed_at":"2018-03-18T13:37:39Z","git_url":"git://github.com/boubseini/ipi-java-340-ex.git","ssh_url":"git@github.com:boubseini/ipi-java-340-ex.git","clone_url":"https://github.com/boubseini/ipi-java-340-ex.git","svn_url":"https://github.com/boubseini/ipi-java-340-ex","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pjvilloud:master","ref":"master","sha":"a986b504d5eab624311a9cb43091a4503243bc2f","user":{"login":"pjvilloud","id":31385588,"avatar_url":"https://avatars0.githubusercontent.com/u/31385588?v=4","gravatar_id":"","url":"https://api.github.com/users/pjvilloud","html_url":"https://github.com/pjvilloud","followers_url":"https://api.github.com/users/pjvilloud/followers","following_url":"https://api.github.com/users/pjvilloud/following{/other_user}","gists_url":"https://api.github.com/users/pjvilloud/gists{/gist_id}","starred_url":"https://api.github.com/users/pjvilloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjvilloud/subscriptions","organizations_url":"https://api.github.com/users/pjvilloud/orgs","repos_url":"https://api.github.com/users/pjvilloud/repos","events_url":"https://api.github.com/users/pjvilloud/events{/privacy}","received_events_url":"https://api.github.com/users/pjvilloud/received_events","type":"User","site_admin":false},"repo":{"id":121024574,"name":"ipi-java-340-ex","full_name":"pjvilloud/ipi-java-340-ex","owner":{"login":"pjvilloud","id":31385588,"avatar_url":"https://avatars0.githubusercontent.com/u/31385588?v=4","gravatar_id":"","url":"https://api.github.com/users/pjvilloud","html_url":"https://github.com/pjvilloud","followers_url":"https://api.github.com/users/pjvilloud/followers","following_url":"https://api.github.com/users/pjvilloud/following{/other_user}","gists_url":"https://api.github.com/users/pjvilloud/gists{/gist_id}","starred_url":"https://api.github.com/users/pjvilloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjvilloud/subscriptions","organizations_url":"https://api.github.com/users/pjvilloud/orgs","repos_url":"https://api.github.com/users/pjvilloud/repos","events_url":"https://api.github.com/users/pjvilloud/events{/privacy}","received_events_url":"https://api.github.com/users/pjvilloud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pjvilloud/ipi-java-340-ex","description":"TP de Java, module 340 pour l'IPI","fork":false,"url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex","forks_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/forks","keys_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/teams","hooks_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/hooks","issue_events_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues/events{/number}","events_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/events","assignees_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/assignees{/user}","branches_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/branches{/branch}","tags_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/tags","blobs_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/git/refs{/sha}","trees_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/statuses/{sha}","languages_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/languages","stargazers_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/stargazers","contributors_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/contributors","subscribers_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/subscribers","subscription_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/subscription","commits_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/commits{/sha}","git_commits_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/git/commits{/sha}","comments_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/comments{/number}","issue_comment_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues/comments{/number}","contents_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/contents/{+path}","compare_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/merges","archive_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/downloads","issues_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues{/number}","pulls_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls{/number}","milestones_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/milestones{/number}","notifications_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/labels{/name}","releases_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/releases{/id}","deployments_url":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/deployments","created_at":"2018-02-10T14:56:06Z","updated_at":"2018-02-10T14:57:04Z","pushed_at":"2018-03-20T13:28:16Z","git_url":"git://github.com/pjvilloud/ipi-java-340-ex.git","ssh_url":"git@github.com:pjvilloud/ipi-java-340-ex.git","clone_url":"https://github.com/pjvilloud/ipi-java-340-ex.git","svn_url":"https://github.com/pjvilloud/ipi-java-340-ex","homepage":null,"size":87,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":27,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12"},"html":{"href":"https://github.com/pjvilloud/ipi-java-340-ex/pull/12"},"issue":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues/12"},"comments":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/pjvilloud/ipi-java-340-ex/statuses/0f6a4d554590bbca91b90cb557c61d628989e737"}},"author_association":"NONE"}}
{"actor":{"display_login":"pjvilloud"}}