Skip to content

Commit b9c6464

Browse files
committed
Mock the reject method for the FeatureProposalRepo
1 parent b986dbe commit b9c6464

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test/java/edu/tamu/app/controller/FeatureProposalControllerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public void setup() throws UserNotFoundException {
102102
when(featureProposalRepo.create(any(FeatureProposal.class), any(Credentials.class))).thenReturn(TEST_FEATURE_PROPOSAL1);
103103
when(featureProposalRepo.create(any(Idea.class))).thenReturn(TEST_FEATURE_PROPOSAL1);
104104
when(featureProposalRepo.update(any(FeatureProposal.class))).thenReturn(TEST_MODIFIED_FEATURE_PROPOSAL);
105+
when(featureProposalRepo.reject(TEST_FEATURE_PROPOSAL1)).thenReturn(rejectedFeatureProposal);
105106
when(serviceRepo.findOne(any(Long.class))).thenReturn(TEST_SERVICE);
106107
doNothing().when(featureProposalRepo).delete(any(FeatureProposal.class));
107108
doNothing().when(featureProposalRepo).delete(any(FeatureProposal.class));

0 commit comments

Comments
 (0)