Skip to content

Commit f768c16

Browse files
committed
DATAES-35 - Investigate why build failed
EnableElasticsearchRepositoriesTests.bootstrapsRepository() was failing due to scanning entire org.springframework.data.elasticsearch.repositories package. Moved ComplexRepositoryTests to another package due to which test was failing.
1 parent 00ffc4a commit f768c16

9 files changed

+10
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.elasticsearch.repositories;
16+
package org.springframework.data.elasticsearch.repository.complex;
1717

1818
import org.junit.Before;
1919
import org.junit.Test;

src/test/java/org/springframework/data/elasticsearch/repositories/ComplexCustomMethodRepositoryTests.java renamed to src/test/java/org/springframework/data/elasticsearch/repository/complex/ComplexCustomMethodRepositoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.elasticsearch.repositories;
16+
package org.springframework.data.elasticsearch.repository.complex;
1717

1818
import org.junit.Before;
1919
import org.junit.Test;

src/test/java/org/springframework/data/elasticsearch/repositories/ComplexElasticsearchRepository.java renamed to src/test/java/org/springframework/data/elasticsearch/repository/complex/ComplexElasticsearchRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.elasticsearch.repositories;
16+
package org.springframework.data.elasticsearch.repository.complex;
1717

1818
import org.springframework.data.elasticsearch.SampleEntity;
1919
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.elasticsearch.repositories;
16+
package org.springframework.data.elasticsearch.repository.complex;
1717

1818
/**
1919
* @author Artur Konczak
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
package org.springframework.data.elasticsearch.repositories.impl;
1+
package org.springframework.data.elasticsearch.repository.complex;
22

33
import org.springframework.beans.factory.annotation.Autowired;
44
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
5-
import org.springframework.data.elasticsearch.repositories.ComplexElasticsearchRepositoryCustom;
65

76
/**
87
* @author Artur Konczak
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.elasticsearch.repositories;
16+
package org.springframework.data.elasticsearch.repository.complex;
1717

1818
import org.springframework.data.elasticsearch.SampleEntity;
1919
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.elasticsearch.repositories.impl;
16+
package org.springframework.data.elasticsearch.repository.complex;
1717

1818
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
19-
import org.springframework.data.elasticsearch.repositories.ComplexElasticsearchRepositoryCustom;
2019

2120
/**
2221
* @author Artur Konczak

src/test/resources/complex-custom-method-repository-manual-wiring-test.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
</bean>
1414

1515
<elasticsearch:repositories
16-
base-package="org.springframework.data.elasticsearch.repositories" />
16+
base-package="org.springframework.data.elasticsearch.repository.complex" />
1717

18-
<bean id="complexElasticsearchRepositoryManualWiringImpl" class="org.springframework.data.elasticsearch.repositories.impl.ComplexElasticsearchRepositoryManualWiringImpl">
18+
<bean id="complexElasticsearchRepositoryManualWiringImpl" class="org.springframework.data.elasticsearch.repository.complex.ComplexElasticsearchRepositoryManualWiringImpl">
1919
<property name="template" ref="elasticsearchTemplate"/>
2020
</bean>
2121

src/test/resources/complex-custom-method-repository-test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
</bean>
1414

1515
<elasticsearch:repositories
16-
base-package="org.springframework.data.elasticsearch.repositories" />
16+
base-package="org.springframework.data.elasticsearch.repository.complex" />
1717

1818
</beans>

0 commit comments

Comments
 (0)