diff --git a/src/main/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfig.java b/src/main/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfig.java index 19b65534..51d816a7 100644 --- a/src/main/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfig.java +++ b/src/main/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfig.java @@ -41,11 +41,6 @@ public InternalApiClient internalApiClient() { return ApiSdkManager.getPrivateSDK(); } - @Bean - public Supplier offsetDateTimeGenerator() { - return () -> String.valueOf(OffsetDateTime.now()); - } - @Bean public CompanyMetricsApiService companyMetricsApiService() { return new CompanyMetricsApiService(); diff --git a/src/test/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfigTest.java b/src/test/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfigTest.java index f5624dcb..b7a9c08a 100644 --- a/src/test/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfigTest.java +++ b/src/test/java/uk/gov/companieshouse/pscdataapi/config/ApplicationConfigTest.java @@ -31,9 +31,4 @@ void internalApiClient() { assertThat(applicationConfig.internalApiClient(), isA(InternalApiClient.class)); } - @Test - void offsetDateTimeGenerator() { - assertThat(applicationConfig.offsetDateTimeGenerator(), is(not(nullValue()))); - assertThat(applicationConfig.offsetDateTimeGenerator(), isA(Supplier.class)); - } }