Skip to content

Commit

Permalink
Update the Junit5 and Mockito dependency to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmehta1198 committed Oct 26, 2024
1 parent 939dad7 commit 30956b9
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,12 @@ static List<Pipeline> setupAndBuildPipelines(
}

public static void main(String[] args)
throws IOException, SQLException, ViewDefinitionException, ProfileException,
ExecutionException, InterruptedException {
throws IOException,
SQLException,
ViewDefinitionException,
ProfileException,
ExecutionException,
InterruptedException {

AvroConversionUtil.initializeAvroConverters();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ public void setup() throws SQLException, ProfileException {

@Test
public void testProcessPatientResource_withoutForcedId()
throws IOException, java.text.ParseException, SQLException, PropertyVetoException,
ViewApplicationException, ProfileException {
throws IOException,
java.text.ParseException,
SQLException,
PropertyVetoException,
ViewApplicationException,
ProfileException {
String[] args = {"--outputParquetPath=SOME_PATH"};
setUp(args);
String patientResourceStr =
Expand All @@ -96,8 +100,12 @@ public void testProcessPatientResource_withoutForcedId()

@Test
public void testProcessPatientResource_withForcedId()
throws IOException, java.text.ParseException, SQLException, PropertyVetoException,
ViewApplicationException, ProfileException {
throws IOException,
java.text.ParseException,
SQLException,
PropertyVetoException,
ViewApplicationException,
ProfileException {
String[] args = {"--outputParquetPath=SOME_PATH"};
setUp(args);
String patientResourceStr =
Expand Down Expand Up @@ -127,8 +135,12 @@ public void testProcessPatientResource_withForcedId()

@Test
public void testProcessDeletedPatientResourceFullMode()
throws SQLException, IOException, ParseException, PropertyVetoException,
ViewApplicationException, ProfileException {
throws SQLException,
IOException,
ParseException,
PropertyVetoException,
ViewApplicationException,
ProfileException {
String[] args = {"--outputParquetPath=SOME_PATH", "--since="};
setUp(args);
// Deleted Patient resource
Expand All @@ -142,8 +154,12 @@ public void testProcessDeletedPatientResourceFullMode()

@Test
public void testProcessDeletedPatientResourceIncrementalMode()
throws SQLException, IOException, ParseException, PropertyVetoException,
ViewApplicationException, ProfileException {
throws SQLException,
IOException,
ParseException,
PropertyVetoException,
ViewApplicationException,
ProfileException {
String[] args = {"--outputParquetPath=SOME_PATH", "--since=NON-EMPTY"};
setUp(args);
// Deleted Patient resource
Expand All @@ -170,8 +186,12 @@ public void testProcessDeletedPatientResourceIncrementalMode()

@Test
public void testResourceMetaTags()
throws IOException, java.text.ParseException, SQLException, PropertyVetoException,
ViewApplicationException, ProfileException {
throws IOException,
java.text.ParseException,
SQLException,
PropertyVetoException,
ViewApplicationException,
ProfileException {
String[] args = {"--outputParquetPath=SOME_PATH", "--since="};
setUp(args);
String patientResourceStr =
Expand Down
4 changes: 2 additions & 2 deletions pipelines/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.1</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.7.0</version>
<version>5.13.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Google LLC
* Copyright 2020-2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions pipelines/controller/.java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17.0.12
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ DwhRunDetails getLastRunDetails() {
// Every 30 seconds, check for pipeline status and incremental pipeline schedule.
@Scheduled(fixedDelay = 30000)
private void checkSchedule()
throws IOException, PropertyVetoException, SQLException, ViewDefinitionException,
throws IOException,
PropertyVetoException,
SQLException,
ViewDefinitionException,
ProfileException {
LocalDateTime next = getNextIncrementalTime();
if (next == null) {
Expand Down

0 comments on commit 30956b9

Please sign in to comment.