Skip to content

Commit

Permalink
Adding annotation for sql script
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantDwivedi committed Sep 9, 2023
1 parent 3d747e3 commit 51233b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ logging.level.org.apache.fontbox.ttf.CmapSubtable=error
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.data.redis.repositories.enabled=false
spring.sql.init.mode=always
spring.data.redis.repositories.enabled=false
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.edgechain.chunker;

import com.edgechain.lib.chunk.Chunker;
import com.edgechain.lib.chunk.enums.LangType;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
Expand All @@ -8,10 +10,6 @@
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;

import com.edgechain.lib.chunk.Chunker;
import com.edgechain.lib.chunk.enums.LangType;

import java.time.Duration;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
import org.springframework.test.context.jdbc.Sql;

import java.time.LocalDateTime;
import java.util.Optional;
Expand All @@ -19,6 +20,7 @@

@DataJpaTest
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
@Sql(scripts = {"classpath:schema.sql"})
class PostgreSQLHistoryContextRepositoryTest {

Logger logger = LoggerFactory.getLogger(getClass());
Expand Down

0 comments on commit 51233b9

Please sign in to comment.