File tree Expand file tree Collapse file tree
main/java/com/stackup/stackup/github/infrastructure
test/java/com/stackup/stackup Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import java .util .Arrays ;
1111import java .util .List ;
1212import java .util .Optional ;
13+ import org .springframework .beans .factory .annotation .Autowired ;
1314import org .springframework .http .HttpHeaders ;
1415import org .springframework .http .MediaType ;
1516import org .springframework .http .ResponseEntity ;
@@ -22,6 +23,7 @@ public class GithubApiClient {
2223
2324 private final RestClient restClient ;
2425
26+ @ Autowired
2527 public GithubApiClient (GithubOAuthProperties githubOAuthProperties ) {
2628 this (githubOAuthProperties , RestClient .builder ());
2729 }
Original file line number Diff line number Diff line change 33import com .stackup .stackup .auth .domain .OAuthStateRepository ;
44import com .stackup .stackup .auth .domain .RefreshTokenRepository ;
55import com .stackup .stackup .document .domain .AnalyzedDocumentRepository ;
6+ import com .stackup .stackup .github .domain .GithubRepositoryRepository ;
67import com .stackup .stackup .resume .domain .ResumeRepository ;
78import com .stackup .stackup .user .domain .UserRepository ;
89import org .junit .jupiter .api .Test ;
@@ -27,6 +28,9 @@ class StackupApplicationTests {
2728 @ MockitoBean
2829 private AnalyzedDocumentRepository analyzedDocumentRepository ;
2930
31+ @ MockitoBean
32+ private GithubRepositoryRepository githubRepositoryRepository ;
33+
3034 @ Test
3135 void contextLoads () {
3236 }
You can’t perform that action at this time.
0 commit comments