优化
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package com.baiyue.lastleg.masterdata;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class MasterDataMapperConfigurationTest {
|
||||
@Test
|
||||
void scansOnlyAnnotatedMasterDataMappers() {
|
||||
MapperScan mapperScan = MasterDataMapperConfiguration.class.getAnnotation(MapperScan.class);
|
||||
|
||||
assertThat(mapperScan.basePackages()).containsExactly("com.baiyue.lastleg.masterdata");
|
||||
assertThat(mapperScan.annotationClass()).isEqualTo(Mapper.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user