-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General changes: - updated spring boot, spring versions - updated test framework to junit-jupiter - updated maven compiler - updated other dependencies as needed to support java21 Signed-off-by: Angelica Ochoa <[email protected]> Update messaging lib and commons versions Signed-off-by: Angelica Ochoa <[email protected]>
- Loading branch information
Showing
11 changed files
with
135 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM maven:3.6.1-jdk-11-slim | ||
FROM maven:3.8.8 | ||
RUN mkdir /request-filter | ||
ADD . /request-filter | ||
WORKDIR /request-filter | ||
RUN mvn clean install | ||
|
||
FROM openjdk:11-slim | ||
FROM openjdk:21 | ||
COPY --from=0 /request-filter/target/smile_request_filter.jar /request-filter/smile_request_filter.jar | ||
ENTRYPOINT ["java"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jdk: | ||
- openjdk21 | ||
|
||
before_install: | ||
- sdk install maven 3.8.8 | ||
- sdk use maven 3.8.8 | ||
- sdk install java 21.0.2-open | ||
- sdk use java 21.0.2-open | ||
- sdk update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/test/java/org/mskcc/smile/SmileRequestFilterTestApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.mskcc.smile; | ||
|
||
import org.mskcc.cmo.messaging.Gateway; | ||
import org.mskcc.smile.service.impl.PromotedRequestMsgHandlingServiceImpl; | ||
import org.mskcc.smile.service.impl.ValidRequestCheckerImpl; | ||
import org.mskcc.smile.service.impl.ValidateUpdatesMsgHandlingServiceImpl; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.test.mock.mockito.MockBean; | ||
import org.springframework.context.annotation.Bean; | ||
|
||
/** | ||
* | ||
* @author laptop | ||
*/ | ||
@SpringBootApplication(scanBasePackages = {"org.mskcc.smile.service", "org.mskcc.smile.commons.*"}) | ||
public class SmileRequestFilterTestApp { | ||
@Bean | ||
public ValidRequestCheckerImpl validRequestCheckerImpl() { | ||
return new ValidRequestCheckerImpl(); | ||
} | ||
|
||
@MockBean | ||
public Gateway messagingGateway; | ||
|
||
@MockBean | ||
public PromotedRequestMsgHandlingServiceImpl promotedRequestMsgHandlingService; | ||
|
||
@MockBean | ||
public ValidateUpdatesMsgHandlingServiceImpl validateUpdatesMsgHandlingService; | ||
} |
Oops, something went wrong.