{"action":"closed","issue":{"url":"https://api.github.com/repos/tonyguolei/projet_dac/issues/49","labels_url":"https://api.github.com/repos/tonyguolei/projet_dac/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/tonyguolei/projet_dac/issues/49/comments","events_url":"https://api.github.com/repos/tonyguolei/projet_dac/issues/49/events","html_url":"https://github.com/tonyguolei/projet_dac/issues/49","id":55077164,"number":49,"title":"EJB Junit test can not passe","user":{"login":"tonyguolei","id":7057501,"avatar_url":"https://avatars.githubusercontent.com/u/7057501?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyguolei","html_url":"https://github.com/tonyguolei","followers_url":"https://api.github.com/users/tonyguolei/followers","following_url":"https://api.github.com/users/tonyguolei/following{/other_user}","gists_url":"https://api.github.com/users/tonyguolei/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyguolei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyguolei/subscriptions","organizations_url":"https://api.github.com/users/tonyguolei/orgs","repos_url":"https://api.github.com/users/tonyguolei/repos","events_url":"https://api.github.com/users/tonyguolei/events{/privacy}","received_events_url":"https://api.github.com/users/tonyguolei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tonyguolei/projet_dac/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/tonyguolei/projet_dac/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-21T21:07:54Z","updated_at":"2015-01-21T23:18:40Z","closed_at":"2015-01-21T23:18:40Z","body":"As I said that the EJB junit test doesn't not pass on my side. I found that the methode \"testGetAll()\" in UserDaoTest can't pass with cause error: \"Null or zero primary key encountered in unit of work\". It is because that we set User admin ID=0 in database. But this is not a valid ID by defaut (Maybe just for find). \r\nIt should add in persistence.xml to allow ID=0.\r\nI have modified persistence.xml to resovle this problem. Could someone test once in order to assure there is no problem with this solution and close this issue.\r\nPS: I know Junit test can pass all your side, maybe you have configured this issue in some configuration file. As we don't have exactly the same work environment, It might be a potential problem. So it's better to fix it (There are many people who got this error on line ^ ^)"}}