Skip to content

Commit

Permalink
fix: handle pull request comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jayanta2018 committed May 10, 2024
1 parent b6d9bcb commit 3951fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected void runSyncJob(String dateOption) {
});
}

protected void doDataSync(String dateOption) {
private void doDataSync(String dateOption) {
// Configure run
LocalDate dateOfChange = magicallyGetDateOfChanges(dateOption);
String queryString = buildQueryForDate(dateOfChange);
Expand Down
5 changes: 3 additions & 2 deletions src/test/java/uk/nhs/tis/sync/job/PostFundingSyncJobTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -98,10 +99,10 @@ void testJobShouldChangeCurrentPostFundingToInactive() {
PostFunding postFunding = new PostFunding();
postFunding.setId(999L);
post.fundingStatus(Status.CURRENT);
Set<PostFunding> postFundingSet = new HashSet<>(Arrays.asList(postFunding));
Set<PostFunding> postFundingSet = Collections.singleton(postFunding);
post.setFundings(postFundingSet);

when(entityManager.find(eq(Post.class), anyLong())).thenReturn(post);
when(entityManager.find(eq(Post.class), eq(post.getId()))).thenReturn(post);

List<Long> entityData = Arrays.asList(1L);

Expand Down

0 comments on commit 3951fe5

Please sign in to comment.