Skip to content

Commit

Permalink
refactor: update annotation in BtcPriceIndexAdapterTests
Browse files Browse the repository at this point in the history
Replaced the @wiremock annotation with the equivalent @InjectWireMock in BtcPriceIndexAdapterTests. This change is necessary due to the migration to a newer WireMock version that supports the @InjectWireMock annotation, ensuring an improved handling of the WireMock server.
  • Loading branch information
ehayik committed Apr 6, 2024
1 parent 70920b8 commit fdeb986
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.github.tomakehurst.wiremock.WireMockServer;
import com.maciejwalkowiak.wiremock.spring.ConfigureWireMock;
import com.maciejwalkowiak.wiremock.spring.EnableWireMock;
import com.maciejwalkowiak.wiremock.spring.InjectWireMock;
import com.maciejwalkowiak.wiremock.spring.WireMock;
import java.time.Duration;
import java.util.stream.Stream;
Expand All @@ -35,7 +36,7 @@ class BtcPriceIndexAdapterTests {
private GetBtcCurrentPriceShell shellCommands;

@SuppressWarnings("unused")
@WireMock("coindesk-server")
@InjectWireMock("coindesk-server")
private WireMockServer coinDeskServer;

private MockCoinDeskServer mockCoinDeskServer;
Expand Down

0 comments on commit fdeb986

Please sign in to comment.