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
c1b864c8
Commit
c1b864c8
authored
Sep 18, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
9201e23f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
RestClientAutoConfigurationTests.java
.../elasticsearch/rest/RestClientAutoConfigurationTests.java
+4
-2
DetailedProgressReporterTests.java
...oot/cli/compiler/grape/DetailedProgressReporterTests.java
+2
-2
BootZipCopyAction.java
...amework/boot/gradle/tasks/bundling/BootZipCopyAction.java
+1
-0
Container.java
...gframework/boot/testsupport/testcontainers/Container.java
+3
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfigurationTests.java
View file @
c1b864c8
...
...
@@ -22,6 +22,7 @@ import java.util.Map;
import
org.elasticsearch.action.get.GetRequest
;
import
org.elasticsearch.action.index.IndexRequest
;
import
org.elasticsearch.client.RequestOptions
;
import
org.elasticsearch.client.RestClient
;
import
org.elasticsearch.client.RestHighLevelClient
;
import
org.junit.Test
;
...
...
@@ -87,9 +88,10 @@ public class RestClientAutoConfigurationTests {
source
.
put
(
"b"
,
"bravo"
);
IndexRequest
index
=
new
IndexRequest
(
"foo"
,
"bar"
,
"1"
)
.
source
(
source
);
client
.
index
(
index
);
client
.
index
(
index
,
RequestOptions
.
DEFAULT
);
GetRequest
getRequest
=
new
GetRequest
(
"foo"
,
"bar"
,
"1"
);
assertThat
(
client
.
get
(
getRequest
).
isExists
()).
isTrue
();
assertThat
(
client
.
get
(
getRequest
,
RequestOptions
.
DEFAULT
).
isExists
())
.
isTrue
();
}));
}
...
...
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/DetailedProgressReporterTests.java
View file @
c1b864c8
...
...
@@ -39,8 +39,8 @@ public final class DetailedProgressReporterTests {
private
static
final
String
ARTIFACT
=
"org/alpha/bravo/charlie/1.2.3/charlie-1.2.3.jar"
;
private
final
TransferResource
resource
=
new
TransferResource
(
REPOSITORY
,
ARTIFACT
,
null
,
null
);
private
final
TransferResource
resource
=
new
TransferResource
(
null
,
REPOSITORY
,
ARTIFACT
,
null
,
null
);
private
final
ByteArrayOutputStream
baos
=
new
ByteArrayOutputStream
();
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java
View file @
c1b864c8
...
...
@@ -119,6 +119,7 @@ class BootZipCopyAction implements CopyAction {
return
()
->
true
;
}
@SuppressWarnings
(
"unchecked"
)
private
Spec
<
FileTreeElement
>
createExclusionSpec
(
Spec
<
FileTreeElement
>
loaderEntries
)
{
return
Specs
.
union
(
loaderEntries
,
this
.
exclusions
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/Container.java
View file @
c1b864c8
...
...
@@ -24,6 +24,7 @@ import org.junit.rules.TestRule;
import
org.junit.runner.Description
;
import
org.junit.runners.model.Statement
;
import
org.testcontainers.DockerClientFactory
;
import
org.testcontainers.containers.FailureDetectingExternalResource
;
import
org.testcontainers.containers.GenericContainer
;
/**
...
...
@@ -68,7 +69,8 @@ class Container implements TestRule {
return
new
SkipStatement
();
}
this
.
container
=
this
.
containerFactory
.
get
();
return
this
.
container
.
apply
(
base
,
description
);
return
((
FailureDetectingExternalResource
)
this
.
container
).
apply
(
base
,
description
);
}
public
int
getMappedPort
()
{
...
...
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