junit單元測試多個module依賴問題

當前module模塊可能只依賴了另一個module模塊的接口層,實現層沒有依賴

<dependency>
    <groupId>com.aaaaai.shop</groupId>
    <artifactId>abc-api</artifactId>
</dependency>

可以增加業務實現層在test下的依賴

<dependency>
    <groupId>com.aaaaai.shop</groupId>
    <artifactId>abc-service</artifactId>
    <scope>test</scope>
</dependency>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章