[JAVA-2306] Moved last article to spring-jdbc

This commit is contained in:
fdpro 2020-08-31 16:29:31 +02:00
parent 910bda6ef1
commit 3b41d6352d
5 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public class PersistenceConfig {
public DataSource dataSource(Environment env) {
return new EmbeddedDatabaseBuilder()
.setType(EmbeddedDatabaseType.H2)
.addScript("autogenkey-schema.sql")
.addScript("com/baeldung/spring/jdbc/autogenkey/autogenkey-schema.sql")
.build();
}

View File

@ -7,6 +7,7 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.spring.jdbc.autogenkey.repository.MessageRepositoryJDBCTemplate;
@ -35,7 +36,6 @@ public class GetAutoGenKeyByJDBC {
String loadedMessage = messageRepositoryJDBCTemplate.getMessageById(key);
assertEquals(MESSAGE_CONTENT, loadedMessage);
}
@Test