Trinh Tong 7 anos atrás
pai
commit
0fc2afb2cb

+ 2
- 2
src/test/java/io/zipcoder/tc_spring_poll_application/controller/VoteControllerTest.java Ver arquivo

144
 
144
 
145
         /* Fixed by adding an equals method and hashcode to each  object.
145
         /* Fixed by adding an equals method and hashcode to each  object.
146
          * during mocking the 'save' method is checking the absolute equality
146
          * during mocking the 'save' method is checking the absolute equality
147
-          * and since it's technically a different object, we have to override the equals method
148
-          * to properly compare the objects. */
147
+         * and since it's technically a different object, we have to override the equals method
148
+         * to properly compare the objects. */
149
 
149
 
150
         given(pollRepository.findOne(TEST_ID)).willReturn(testPoll);
150
         given(pollRepository.findOne(TEST_ID)).willReturn(testPoll);
151
         given(voteRepository.save(testVote2)).willReturn(testVote2);
151
         given(voteRepository.save(testVote2)).willReturn(testVote2);