diff --git a/src/main/java/com/lpvs/util/LPVSTableConfiguration.java b/src/main/java/com/lpvs/util/LPVSTableConfiguration.java deleted file mode 100644 index 684a0b8a..00000000 --- a/src/main/java/com/lpvs/util/LPVSTableConfiguration.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Copyright (c) 2023, Samsung Electronics Co., Ltd. All rights reserved. - * - * Use of this source code is governed by a MIT license that can be - * found in the LICENSE file. - */ -package com.lpvs.util; - -import lombok.Getter; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Component; - -/** - * Component class providing configuration values for various database table names in the LPVS application. - * This class is responsible for managing configuration properties related to database tables. - */ -@Component -@Getter -public class LPVSTableConfiguration { - /** - * Configuration property for the detected license table. - */ - @Value("${app.table.detectedLicenseName}") - private String detectedLicenseName; - - /** - * Configuration property for the detected license schema table. - */ - @Value("${app.table.detectedLicenseSchema}") - private String detectedLicenseSchema; - - /** - * Configuration property for the diff file table. - */ - @Value("${app.table.diffFileName}") - private String diffFileName; - - /** - * Configuration property for the pull request table. - */ - @Value("${app.table.pullRequestsName}") - private String pullRequestsName; - - /** - * Configuration property for the queue name table. - */ - @Value("${app.table.queueName}") - private String queueName; -} diff --git a/src/test/java/com/lpvs/util/LPVSTableConfigurationTest.java b/src/test/java/com/lpvs/util/LPVSTableConfigurationTest.java deleted file mode 100644 index d03aa103..00000000 --- a/src/test/java/com/lpvs/util/LPVSTableConfigurationTest.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) 2023, Samsung Electronics Co., Ltd. All rights reserved. - * - * Use of this source code is governed by a MIT license that can be - * found in the LICENSE file. - */ -package com.lpvs.util; - -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.TestPropertySource; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -@SpringBootTest(classes = LPVSTableConfiguration.class) -@TestPropertySource( - properties = { - "app.table.detectedLicenseName=mockDetectedLicenseName", - "app.table.detectedLicenseSchema=mockDetectedLicenseSchema", - "app.table.diffFileName=mockDiffFileName", - "app.table.pullRequestsName=mockPullRequestsName", - "app.table.queueName=mockQueueName" - }) -public class LPVSTableConfigurationTest { - - @Autowired private LPVSTableConfiguration config; - - @Test - public void testGetDetectedLicenseName() { - assertEquals("mockDetectedLicenseName", config.getDetectedLicenseName()); - } - - @Test - public void testGetDetectedLicenseSchema() { - assertEquals("mockDetectedLicenseSchema", config.getDetectedLicenseSchema()); - } - - @Test - public void testGetDiffFileName() { - assertEquals("mockDiffFileName", config.getDiffFileName()); - } - - @Test - public void testGetPullRequestsName() { - assertEquals("mockPullRequestsName", config.getPullRequestsName()); - } - - @Test - public void testGetQueueName() { - assertEquals("mockQueueName", config.getQueueName()); - } -}