Skip to content

Commit

Permalink
#754 | Fix build breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Sep 20, 2024
1 parent 40f8dc3 commit b4e062d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand All @@ -19,6 +20,7 @@ public class MetadataDiffService {
private final MetadataDiffChecker diffChecker;
private final MetadataDiffOutputGenerator outputGenerator;

@Autowired
public MetadataDiffService(MetadataBundleAndFileHandler bundleAndFileHandler, MetadataDiffChecker diffChecker, MetadataDiffOutputGenerator outputGenerator) {
this.bundleAndFileHandler = bundleAndFileHandler;
this.diffChecker = diffChecker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public class MetadataDiffServiceTest {

@Before
public void setUp() {
bundleAndFileHandler = mock(MetadataBundleAndFileHandler.class);
diffChecker = mock(MetadataDiffChecker.class);
outputGenerator = mock(MetadataDiffOutputGenerator.class);
bundleAndFileHandler = new MetadataBundleAndFileHandler();
outputGenerator = new MetadataDiffOutputGenerator();
diffChecker = new MetadataDiffChecker(outputGenerator);
metadataDiffService = new MetadataDiffService(bundleAndFileHandler, diffChecker, outputGenerator);
}

Expand Down

0 comments on commit b4e062d

Please sign in to comment.