[JAVA-2306] Moved last article to spring-jdbc
This commit is contained in:
parent
910bda6ef1
commit
3b41d6352d
|
@ -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();
|
||||
}
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue