From bbe9cf68105ea373dbc2a0939512842f21363af0 Mon Sep 17 00:00:00 2001 From: SALMANCH007 Date: Fri, 8 Mar 2024 10:29:47 +0000 Subject: [PATCH] removed datetimeoffset function from config --- .../companieshouse/pscdataapi/config/ApplicationConfig.java | 5 ----- .../pscdataapi/config/ApplicationConfigTest.java | 5 ----- 2 files changed, 10 deletions(-) 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)); - } }