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
4b9986d7
Commit
4b9986d7
authored
Apr 12, 2020
by
dreis2211
Committed by
Stephane Nicoll
Apr 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused fields in tests
See gh-20926
parent
ce653059
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
30 deletions
+2
-30
MongoHealthIndicatorTests.java
...amework/boot/actuate/mongo/MongoHealthIndicatorTests.java
+1
-12
SolrHealthIndicatorTests.java
...framework/boot/actuate/solr/SolrHealthIndicatorTests.java
+1
-12
DockerApiTests.java
...mework/boot/buildpack/platform/docker/DockerApiTests.java
+0
-6
No files found.
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/mongo/MongoHealthIndicatorTests.java
View file @
4b9986d7
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
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.
...
...
@@ -18,12 +18,10 @@ package org.springframework.boot.actuate.mongo;
import
com.mongodb.MongoException
;
import
org.bson.Document
;
import
org.junit.jupiter.api.AfterEach
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.Status
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.data.mongodb.core.MongoTemplate
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
...
...
@@ -38,15 +36,6 @@ import static org.mockito.Mockito.verify;
*/
class
MongoHealthIndicatorTests
{
private
AnnotationConfigApplicationContext
context
;
@AfterEach
void
close
()
{
if
(
this
.
context
!=
null
)
{
this
.
context
.
close
();
}
}
@Test
void
mongoIsUp
()
{
Document
commandResult
=
mock
(
Document
.
class
);
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/solr/SolrHealthIndicatorTests.java
View file @
4b9986d7
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
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.
...
...
@@ -23,12 +23,10 @@ import org.apache.solr.client.solrj.impl.BaseHttpSolrClient.RemoteSolrException;
import
org.apache.solr.client.solrj.request.CoreAdminRequest
;
import
org.apache.solr.client.solrj.response.SolrPingResponse
;
import
org.apache.solr.common.util.NamedList
;
import
org.junit.jupiter.api.AfterEach
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.Status
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
mockito
.
ArgumentMatchers
.
any
;
...
...
@@ -48,15 +46,6 @@ import static org.mockito.Mockito.verifyNoMoreInteractions;
*/
class
SolrHealthIndicatorTests
{
private
AnnotationConfigApplicationContext
context
;
@AfterEach
void
close
()
{
if
(
this
.
context
!=
null
)
{
this
.
context
.
close
();
}
}
@Test
void
healthWhenSolrStatusUpAndBaseUrlPointsToRootReturnsUp
()
throws
Exception
{
SolrClient
solrClient
=
mock
(
SolrClient
.
class
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java
View file @
4b9986d7
...
...
@@ -368,12 +368,6 @@ class DockerApiTests {
private
VolumeApi
api
;
@Captor
private
ArgumentCaptor
<
IOConsumer
<
OutputStream
>>
writer
;
@Mock
private
UpdateListener
<
LogUpdateEvent
>
logListener
;
@BeforeEach
void
setup
()
{
MockitoAnnotations
.
initMocks
(
this
);
...
...
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