Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
3e376b95
Commit
3e376b95
authored
Jan 20, 2021
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build failure
See gh-24943
parent
56ce5bdf
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
21 deletions
+22
-21
WebEndpointsAutoConfigurationIntegrationTests.java
...ontest/WebEndpointsAutoConfigurationIntegrationTests.java
+4
-3
SolrRepositoriesAutoConfiguration.java
...onfigure/data/solr/SolrRepositoriesAutoConfiguration.java
+1
-1
SolrRepositoriesRegistrar.java
...ot/autoconfigure/data/solr/SolrRepositoriesRegistrar.java
+1
-1
CitySolrRepository.java
.../boot/autoconfigure/data/alt/solr/CitySolrRepository.java
+3
-3
JpaRepositoriesAutoConfigurationTests.java
...igure/data/jpa/JpaRepositoriesAutoConfigurationTests.java
+1
-1
SolrRepositoriesAutoConfigurationTests.java
...ure/data/solr/SolrRepositoriesAutoConfigurationTests.java
+10
-10
City.java
...ringframework/boot/autoconfigure/data/solr/city/City.java
+1
-1
CityRepository.java
...ork/boot/autoconfigure/data/solr/city/CityRepository.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebEndpointsAutoConfigurationIntegrationTests.java
View file @
3e376b95
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -33,7 +33,6 @@ import org.springframework.boot.autoconfigure.data.neo4j.Neo4jRepositoriesAutoCo
import
org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
;
import
org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration
;
import
org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration
;
import
org.springframework.boot.autoconfigure.data.solr.SolrRepositoriesAutoConfiguration
;
import
org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
;
import
org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration
;
import
org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration
;
...
...
@@ -80,10 +79,12 @@ class WebEndpointsAutoConfigurationIntegrationTests {
Neo4jRepositoriesAutoConfiguration
.
class
,
MongoAutoConfiguration
.
class
,
MongoDataAutoConfiguration
.
class
,
MongoReactiveAutoConfiguration
.
class
,
MongoReactiveDataAutoConfiguration
.
class
,
RepositoryRestMvcAutoConfiguration
.
class
,
HazelcastAutoConfiguration
.
class
,
ElasticsearchDataAutoConfiguration
.
class
,
SolrRepositoriesAutoConfiguration
.
class
,
ElasticsearchDataAutoConfiguration
.
class
,
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
SolrRepositoriesAutoConfiguration
.
class
,
SolrAutoConfiguration
.
class
,
RedisAutoConfiguration
.
class
,
RedisRepositoriesAutoConfiguration
.
class
,
MetricsAutoConfiguration
.
class
})
@SpringBootConfiguration
@SuppressWarnings
(
"deprecation"
)
static
class
WebEndpointTestApplication
{
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/solr/SolrRepositoriesAutoConfiguration.java
View file @
3e376b95
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/solr/SolrRepositoriesRegistrar.java
View file @
3e376b95
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/alt/solr/CitySolrRepository.java
View file @
3e376b95
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -16,10 +16,10 @@
package
org
.
springframework
.
boot
.
autoconfigure
.
data
.
alt
.
solr
;
import
org.springframework.boot.autoconfigure.data.solr.city.City
;
import
org.springframework.data.repository.Repository
;
@Deprecated
public
interface
CitySolrRepository
extends
Repository
<
City
,
String
>
{
public
interface
CitySolrRepository
extends
Repository
<
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
city
.
City
,
String
>
{
}
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/jpa/JpaRepositoriesAutoConfigurationTests.java
View file @
3e376b95
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/solr/SolrRepositoriesAutoConfigurationTests.java
View file @
3e376b95
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -24,10 +24,7 @@ import org.junit.jupiter.api.Test;
import
org.springframework.beans.factory.NoSuchBeanDefinitionException
;
import
org.springframework.boot.autoconfigure.TestAutoConfigurationPackage
;
import
org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration
;
import
org.springframework.boot.autoconfigure.data.alt.solr.CitySolrRepository
;
import
org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage
;
import
org.springframework.boot.autoconfigure.data.solr.city.City
;
import
org.springframework.boot.autoconfigure.data.solr.city.CityRepository
;
import
org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -55,7 +52,8 @@ class SolrRepositoriesAutoConfigurationTests {
@Test
void
testDefaultRepositoryConfiguration
()
{
initContext
(
TestConfiguration
.
class
);
assertThat
(
this
.
context
.
getBean
(
CityRepository
.
class
)).
isNotNull
();
assertThat
(
this
.
context
.
getBean
(
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
city
.
CityRepository
.
class
))
.
isNotNull
();
assertThat
(
this
.
context
.
getBean
(
SolrClient
.
class
)).
isInstanceOf
(
HttpSolrClient
.
class
);
}
...
...
@@ -68,14 +66,15 @@ class SolrRepositoriesAutoConfigurationTests {
@Test
void
doesNotTriggerDefaultRepositoryDetectionIfCustomized
()
{
initContext
(
CustomizedConfiguration
.
class
);
assertThat
(
this
.
context
.
getBean
(
CitySolrRepository
.
class
)).
isNotNull
();
assertThat
(
this
.
context
.
getBean
(
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
city
.
CityRepository
.
class
))
.
isNotNull
();
}
@Test
void
autoConfigurationShouldNotKickInEvenIfManualConfigDidNotCreateAnyRepositories
()
{
initContext
(
SortOfInvalidCustomConfiguration
.
class
);
assertThatExceptionOfType
(
NoSuchBeanDefinitionException
.
class
)
.
isThrownBy
(()
->
this
.
context
.
getBean
(
CityRepository
.
class
));
assertThatExceptionOfType
(
NoSuchBeanDefinitionException
.
class
)
.
isThrownBy
(
()
->
this
.
context
.
getBean
(
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
city
.
CityRepository
.
class
));
}
private
void
initContext
(
Class
<?>
configClass
)
{
...
...
@@ -87,7 +86,7 @@ class SolrRepositoriesAutoConfigurationTests {
}
@Configuration
(
proxyBeanMethods
=
false
)
@TestAutoConfigurationPackage
(
City
.
class
)
@TestAutoConfigurationPackage
(
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
city
.
City
.
class
)
static
class
TestConfiguration
{
}
...
...
@@ -100,7 +99,8 @@ class SolrRepositoriesAutoConfigurationTests {
@Configuration
(
proxyBeanMethods
=
false
)
@TestAutoConfigurationPackage
(
SolrRepositoriesAutoConfigurationTests
.
class
)
@EnableSolrRepositories
(
basePackageClasses
=
CitySolrRepository
.
class
)
@EnableSolrRepositories
(
basePackageClasses
=
org
.
springframework
.
boot
.
autoconfigure
.
data
.
solr
.
city
.
CityRepository
.
class
)
static
class
CustomizedConfiguration
{
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/solr/city/City.java
View file @
3e376b95
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/solr/city/CityRepository.java
View file @
3e376b95
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment