문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
springframework:spring_test_dbunit [2016/09/28 12:50] kwon37xi [MySQL Multiple Schema 지원 기본 설정] |
springframework:spring_test_dbunit [2019/11/14 12:08] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Spring Test DBUnit ====== | ====== Spring Test DBUnit ====== | ||
- | * [[http:// | + | |
+ | | ||
* [[java: | * [[java: | ||
- | ====== MySQL Multiple Schema 지원 기본 설정 | + | ===== MySQL Multiple Schema 지원 기본 설정 ===== |
<code java> | <code java> | ||
@Bean | @Bean | ||
줄 10: | 줄 11: | ||
config.setQualifiedTableNames(true); | config.setQualifiedTableNames(true); | ||
config.setMetadataHandler(new MySqlMetadataHandler()); | config.setMetadataHandler(new MySqlMetadataHandler()); | ||
+ | config.setDatatypeFactory(new MySqlDataTypeFactory()); | ||
return config; | return config; | ||
} | } | ||
줄 38: | 줄 40: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | '' | ||
FlatXML 에서는 '' | FlatXML 에서는 '' | ||
줄 47: | 줄 51: | ||
</ | </ | ||
+ | ===== MS SQLServer ===== | ||
+ | * multiple catalog 지원이 제대로 안됨. | ||
+ | * test context 에 대해서는 '' | ||
+ | * 다중 설정< | ||
+ | @DatabaseSetups({ | ||
+ | @DatabaseSetup(value = " | ||
+ | @DatabaseSetup(connection=" | ||
+ | }) | ||
+ | </ | ||
+ | * Insert Operation의 경우 '' | ||
+ | @DbUnitConfiguration(databaseConnection = [" | ||
+ | class MyRepositoryTest extends Specification { | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== 참조 ===== | ||
+ | * https:// | ||
+ | * [[http:// |