GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.76k stars 2.83k forks source link

fix(healthcare): don't store DICOM instance before each DICOMweb test #9292

Closed noerog closed 6 months ago

noerog commented 6 months ago

Description

Only store DICOM instance once for all DICOMweb tests. Previously, storing a duplicate instance returned a 200, but it now returns a 409, causing tests to fail.

The JUnit4 MethodSorters (https://junit.org/junit4/javadoc/4.12/org/junit/runners/MethodSorters.html) functionality is also incorrectly running the DicomWebDeleteStudy test too early, even though its name was modified so that it ran last in the NAME_ASCENDING order, so update each test's name to ensure that they run in order.

Fixes

Checklist