Skip to content

Commit

Permalink
Ctrl-o shouldn't be used with commented out code...
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladay committed Aug 3, 2022
1 parent 1a6a020 commit 1dac34d
Showing 1 changed file with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package edu.tamu.app.service.manager;

import static edu.tamu.app.service.manager.AbstractGitHubService.DEFECT_LABEL;
import static edu.tamu.app.service.manager.AbstractGitHubService.FEATURE_LABEL;
import static edu.tamu.app.service.manager.AbstractGitHubService.ISSUE_LABEL;
import static edu.tamu.app.service.manager.AbstractGitHubService.REQUEST_LABEL;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.lenient;
import static org.mockito.Mockito.when;
import static org.springframework.test.util.ReflectionTestUtils.setField;

Expand All @@ -17,27 +22,36 @@
import edu.tamu.app.mapping.CardTypeMappingService;
import edu.tamu.app.mapping.EstimateMappingService;
import edu.tamu.app.mapping.StatusMappingService;
import edu.tamu.app.model.CardType;
import edu.tamu.app.model.Estimate;
import edu.tamu.app.model.InternalRequest;
import edu.tamu.app.model.ManagementService;
import edu.tamu.app.model.RemoteProjectManager;
import edu.tamu.app.model.ServiceType;
import edu.tamu.app.model.Status;
import edu.tamu.app.model.repo.CardTypeRepo;
import edu.tamu.app.model.repo.EstimateRepo;
import edu.tamu.app.model.repo.StatusRepo;
import edu.tamu.app.model.request.FeatureRequest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.kohsuke.github.GHIssue;
import org.kohsuke.github.GHIssueBuilder;
import org.kohsuke.github.GHIssueState;
import org.kohsuke.github.GHLabel;
import org.kohsuke.github.GHOrganization;
import org.kohsuke.github.GHProject;
import org.kohsuke.github.GHProject.ProjectStateFilter;
import org.kohsuke.github.GHProjectCard;
import org.kohsuke.github.GHProjectColumn;
import org.kohsuke.github.GHRepository;
Expand All @@ -47,10 +61,16 @@
import org.kohsuke.github.PagedIterable;
import org.mockito.Answers;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.Spy;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.mockito.stubbing.Answer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

Expand Down Expand Up @@ -394,7 +414,7 @@ public void setUp() throws Exception {
lenient().when(testFeatureRequest.getProductId()).thenReturn(TEST_PRODUCT1_ID);
lenient().when(testFeatureRequest.getTitle()).thenReturn(TEST_FEATURE_REQUEST_TITLE);
lenient().when(testFeatureRequest.getDescription()).thenReturn(TEST_FEATURE_REQUEST_DESCRIPTION);
/*

lenient().when(restTemplate.exchange(
any(String.class),
any(HttpMethod.class),
Expand Down Expand Up @@ -460,7 +480,6 @@ public Optional<Estimate> answer(InvocationOnMock invocation) {

lenient().when(statusRepo.findByIdentifier(any(String.class)))
.thenReturn(new Status("None", new HashSet<String>(Arrays.asList(new String[] { "None", "Future" }))));
*/
}

@Test
Expand Down

0 comments on commit 1dac34d

Please sign in to comment.