Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenek-jonas committed Nov 7, 2023
1 parent ae9c364 commit 441e7bb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

@TestPropertySource("classpath:sql-test.properties")
@TestPropertySource("classpath:application-sql.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class})
public class EclipseConfigurationSqlSpringTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.springframework.context.annotation.Primary;
import org.springframework.test.context.TestPropertySource;

@TestPropertySource("classpath:application-test.properties")
@TestPropertySource("classpath:application-run.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class, StorageBeanTest.class})
public class StorageBeanTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
package org.eclipse.store.integrations.spring.boot.types.root;

import org.eclipse.store.integrations.spring.boot.types.EclipseStoreConfiguration;
import org.eclipse.store.storage.embedded.types.EmbeddedStorage;
import org.eclipse.store.storage.embedded.types.EmbeddedStorageManager;
import org.junit.jupiter.api.Assertions;
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.*;
import static org.junit.jupiter.api.Assertions.assertTrue;

@TestPropertySource("classpath:autostart-root.properties")
@TestPropertySource("classpath:application-autostart-root.properties")
@SpringBootTest(classes = {EclipseStoreConfiguration.class})
public class AutostartRootTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
debug=true
org.eclipse.store.storage-directory=${java.io.tmpdir}/${random.int}
org.eclipse.store.auto-start=true
org.eclipse.store.root=org.eclipse.store.integrations.spring.boot.types.root.Root
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
debug=true
org.eclipse.store.storage-directory=${java.io.tmpdir}/${random.int}
org.eclipse.store.auto-start=false

This file was deleted.

0 comments on commit 441e7bb

Please sign in to comment.