Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenek-jonas committed Nov 7, 2023
1 parent 441e7bb commit 5df17b9
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 12 deletions.
3 changes: 2 additions & 1 deletion integrations/spring-boot3/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
exports org.eclipse.store.integrations.spring.boot.types.configuration.redis;
exports org.eclipse.store.integrations.spring.boot.types.configuration.sql;
exports org.eclipse.store.integrations.spring.boot.types;
exports org.eclipse.store.integrations.spring.boot.types.converter;

requires transitive spring.beans;
requires transitive spring.beans;
requires transitive spring.boot;
requires transitive spring.boot.autoconfigure;
requires transitive spring.context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import org.eclipse.serializer.util.logging.Logging;
import org.eclipse.store.integrations.spring.boot.types.configuration.ConfigurationValues;
import org.eclipse.store.integrations.spring.boot.types.converter.EclipseStoreConfigConverter;
import org.eclipse.store.storage.embedded.configuration.types.EmbeddedStorageConfigurationBuilder;
import org.eclipse.store.storage.embedded.types.EmbeddedStorageFoundation;
import org.eclipse.store.storage.embedded.types.EmbeddedStorageManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
@AutoConfiguration
@ComponentScan(basePackages = "org.eclipse.store.integrations.spring.boot.types")
@EnableConfigurationProperties(ConfigurationValues.class)
public class EclipseStoreConfiguration
public class EclipseStoreSpringBoot
{
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.eclipse.store.integrations.spring.boot.types;
package org.eclipse.store.integrations.spring.boot.types.converter;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.eclipse.store.integrations.spring.boot.types;
package org.eclipse.store.integrations.spring.boot.types.converter;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
* #L%
*/

import org.eclipse.store.integrations.spring.boot.types.EclipseStoreSpringBoot;
import org.eclipse.store.integrations.spring.boot.types.configuration.ConfigurationValues;
import org.eclipse.store.integrations.spring.boot.types.converter.EclipseStoreConfigConverter;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -26,7 +28,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@TestPropertySource("classpath:application-test.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class})
@SpringBootTest(classes = {EclipseStoreSpringBoot.class})
public class EclipseConfigurationSpringTest
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import org.eclipse.store.integrations.spring.boot.types.configuration.ConfigurationValues;
import org.eclipse.store.integrations.spring.boot.types.converter.EclipseStoreConfigConverter;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -26,7 +27,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@TestPropertySource("classpath:application-sql.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class})
@SpringBootTest(classes = {EclipseStoreSpringBoot.class})
public class EclipseConfigurationSqlSpringTest
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.springframework.test.context.TestPropertySource;

@TestPropertySource("classpath:application-run.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class, StorageBeanTest.class})
@SpringBootTest(classes = {EclipseStoreSpringBoot.class, StorageBeanTest.class})
public class StorageBeanTest
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.eclipse.store.integrations.spring.boot.types;
package org.eclipse.store.integrations.spring.boot.types.converter;

/*-
* #%L
Expand All @@ -19,8 +19,8 @@
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

import org.eclipse.store.integrations.spring.boot.types.converter.EclipseStoreConfigConverter;
import org.eclipse.store.storage.embedded.configuration.types.EmbeddedStorageConfigurationPropertyNames;
import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.eclipse.store.integrations.spring.boot.types;
package org.eclipse.store.integrations.spring.boot.types.converter;

/*-
* #%L
Expand All @@ -20,6 +20,7 @@
import org.eclipse.store.integrations.spring.boot.types.configuration.StorageFilesystem;
import org.eclipse.store.integrations.spring.boot.types.configuration.sql.Mariadb;
import org.eclipse.store.integrations.spring.boot.types.configuration.sql.Sql;
import org.eclipse.store.integrations.spring.boot.types.converter.EclipseStoreConfigConverter;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.eclipse.store.integrations.spring.boot.types.root;

import org.eclipse.store.integrations.spring.boot.types.EclipseStoreConfiguration;
import org.eclipse.store.integrations.spring.boot.types.EclipseStoreSpringBoot;
import org.eclipse.store.storage.embedded.types.EmbeddedStorageManager;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -10,7 +10,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@TestPropertySource("classpath:application-autostart-root.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class})
@SpringBootTest(classes = {EclipseStoreSpringBoot.class})
public class AutostartRootTest
{

Expand Down

0 comments on commit 5df17b9

Please sign in to comment.