Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
497b95ec
Commit
497b95ec
authored
Jun 19, 2017
by
Brandon Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename *Test.java -> *Tests.java. Fixes #2042
parent
02e7594d
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
27 additions
and
34 deletions
+27
-34
FeignContentEncodingTests.java
...oud/netflix/feign/encoding/FeignContentEncodingTests.java
+2
-2
RetryableFeignLoadBalancerTests.java
...netflix/feign/ribbon/RetryableFeignLoadBalancerTests.java
+1
-1
DefaultServerIntrospectorDefaultTests.java
...netflix/ribbon/DefaultServerIntrospectorDefaultTests.java
+2
-2
DefaultServerIntrospectorTests.java
.../cloud/netflix/ribbon/DefaultServerIntrospectorTests.java
+2
-3
RibbonClientsEagerInitializationTests.java
...netflix/ribbon/RibbonClientsEagerInitializationTests.java
+1
-1
RibbonLoadBalancedRetryPolicyFactoryTests.java
...lix/ribbon/RibbonLoadBalancedRetryPolicyFactoryTests.java
+1
-1
ContextAwareRequestTests.java
...loud/netflix/ribbon/support/ContextAwareRequestTests.java
+1
-1
RetryableStatusCodeExceptionTests.java
...lix/ribbon/support/RetryableStatusCodeExceptionTests.java
+1
-1
ObservableReturnValueHandlerTests.java
...k/cloud/netflix/rx/ObservableReturnValueHandlerTests.java
+2
-2
ObservableSseEmitterTests.java
...framework/cloud/netflix/rx/ObservableSseEmitterTests.java
+2
-2
SingleReturnValueHandlerTests.java
...ework/cloud/netflix/rx/SingleReturnValueHandlerTests.java
+2
-2
ZoneUtilsTests.java
...framework/cloud/netflix/ribbon/eureka/ZoneUtilsTests.java
+1
-1
EurekaControllerReplicasTests.java
.../netflix/eureka/server/EurekaControllerReplicasTests.java
+2
-8
EurekaControllerTests.java
...rk/cloud/netflix/eureka/server/EurekaControllerTests.java
+1
-1
EurekaCustomPeerNodesTests.java
...oud/netflix/eureka/server/EurekaCustomPeerNodesTests.java
+2
-2
InstanceRegistryTests.java
...rk/cloud/netflix/eureka/server/InstanceRegistryTests.java
+2
-2
CommonsInstanceDiscoveryTests.java
.../cloud/netflix/turbine/CommonsInstanceDiscoveryTests.java
+1
-1
EurekaInstanceDiscoveryTests.java
...k/cloud/netflix/turbine/EurekaInstanceDiscoveryTests.java
+1
-1
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/encoding/FeignContentEncodingTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/encoding/FeignContentEncodingTest
s
.java
View file @
497b95ec
...
...
@@ -48,12 +48,12 @@ import com.netflix.loadbalancer.Server;
*
* @author Jakub Narloch
*/
@SpringBootTest
(
classes
=
FeignContentEncodingTest
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
@SpringBootTest
(
classes
=
FeignContentEncodingTest
s
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"feign.compression.request.enabled=true"
,
"hystrix.command.default.execution.isolation.strategy=SEMAPHORE"
,
"ribbon.OkToRetryOnAllOperations=false"
})
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
public
class
FeignContentEncodingTest
{
public
class
FeignContentEncodingTest
s
{
@Autowired
private
InvoiceClient
invoiceClient
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/RetryableFeignLoadBalancerTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/RetryableFeignLoadBalancerTest
s
.java
View file @
497b95ec
...
...
@@ -74,7 +74,7 @@ import static org.mockito.Mockito.when;
/**
* @author Ryan Baxter
*/
public
class
RetryableFeignLoadBalancerTest
{
public
class
RetryableFeignLoadBalancerTest
s
{
@Mock
private
ILoadBalancer
lb
;
@Mock
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/DefaultServerIntrospectorDefaultTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/DefaultServerIntrospectorDefaultTest
s
.java
View file @
497b95ec
...
...
@@ -34,8 +34,8 @@ import static org.mockito.Mockito.when;
* @author Rico Pahlisch
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
DefaultServerIntrospectorDefaultTest
.
TestConfiguration
.
class
)
public
class
DefaultServerIntrospectorDefaultTest
{
@SpringBootTest
(
classes
=
DefaultServerIntrospectorDefaultTest
s
.
TestConfiguration
.
class
)
public
class
DefaultServerIntrospectorDefaultTest
s
{
@Autowired
private
ServerIntrospector
serverIntrospector
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/DefaultServerIntrospectorTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/DefaultServerIntrospectorTest
s
.java
View file @
497b95ec
...
...
@@ -21,7 +21,6 @@ import org.junit.Assert;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.context.annotation.Bean
;
...
...
@@ -36,9 +35,9 @@ import static org.mockito.Mockito.when;
* @author Rico Pahlisch
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
DefaultServerIntrospectorTest
.
TestConfiguration
.
class
)
@SpringBootTest
(
classes
=
DefaultServerIntrospectorTest
s
.
TestConfiguration
.
class
)
@TestPropertySource
(
properties
=
{
"ribbon.securePorts=12345,556"
})
public
class
DefaultServerIntrospectorTest
{
public
class
DefaultServerIntrospectorTest
s
{
@Autowired
private
ServerIntrospector
serverIntrospector
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/RibbonClientsEagerInitializationTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/RibbonClientsEagerInitializationTest
s
.java
View file @
497b95ec
...
...
@@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat;
"ribbon.eager-load.clients=testspec1,testspec2"
})
@DirtiesContext
public
class
RibbonClientsEagerInitializationTest
{
public
class
RibbonClientsEagerInitializationTest
s
{
@Test
public
void
contextsShouldBeInitialized
()
{
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/RibbonLoadBalancedRetryPolicyFactoryTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/RibbonLoadBalancedRetryPolicyFactoryTest
s
.java
View file @
497b95ec
...
...
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.verify;
/**
* @author Ryan Baxter
*/
public
class
RibbonLoadBalancedRetryPolicyFactoryTest
{
public
class
RibbonLoadBalancedRetryPolicyFactoryTest
s
{
@Mock
private
SpringClientFactory
clientFactory
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/support/ContextAwareRequestTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/support/ContextAwareRequestTest
s
.java
View file @
497b95ec
...
...
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.mock;
/**
* @author Ryan Baxter
*/
public
class
ContextAwareRequestTest
{
public
class
ContextAwareRequestTest
s
{
private
RibbonCommandContext
context
;
private
ContextAwareRequest
request
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/support/RetryableStatusCodeExceptionTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/support/RetryableStatusCodeExceptionTest
s
.java
View file @
497b95ec
...
...
@@ -26,7 +26,7 @@ import static org.junit.Assert.assertEquals;
/**
* @author Ryan Baxter
*/
public
class
RetryableStatusCodeExceptionTest
{
public
class
RetryableStatusCodeExceptionTest
s
{
@Test
public
void
testMessage
()
{
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/rx/ObservableReturnValueHandlerTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/rx/ObservableReturnValueHandlerTest
s
.java
View file @
497b95ec
...
...
@@ -54,9 +54,9 @@ import rx.functions.Func1;
* @author Jakub Narloch
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
ObservableReturnValueHandlerTest
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@SpringBootTest
(
classes
=
ObservableReturnValueHandlerTest
s
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@DirtiesContext
public
class
ObservableReturnValueHandlerTest
{
public
class
ObservableReturnValueHandlerTest
s
{
@Value
(
"${local.server.port}"
)
private
int
port
=
0
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/rx/ObservableSseEmitterTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/rx/ObservableSseEmitterTest
s
.java
View file @
497b95ec
...
...
@@ -53,9 +53,9 @@ import rx.Observable;
* @author Jakub Narloch
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
ObservableSseEmitterTest
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@SpringBootTest
(
classes
=
ObservableSseEmitterTest
s
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@DirtiesContext
public
class
ObservableSseEmitterTest
{
public
class
ObservableSseEmitterTest
s
{
@Value
(
"${local.server.port}"
)
private
int
port
=
0
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/rx/SingleReturnValueHandlerTest.java
→
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/rx/SingleReturnValueHandlerTest
s
.java
View file @
497b95ec
...
...
@@ -44,9 +44,9 @@ import rx.Single;
* @author Jakub Narloch
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
SingleReturnValueHandlerTest
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@SpringBootTest
(
classes
=
SingleReturnValueHandlerTest
s
.
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@DirtiesContext
public
class
SingleReturnValueHandlerTest
{
public
class
SingleReturnValueHandlerTest
s
{
@Value
(
"${local.server.port}"
)
private
int
port
=
0
;
...
...
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/ribbon/eureka/ZoneUtilsTest.java
→
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/ribbon/eureka/ZoneUtilsTest
s
.java
View file @
497b95ec
...
...
@@ -23,7 +23,7 @@ import org.junit.Test;
* @author Ryan Baxter
*
*/
public
class
ZoneUtilsTest
{
public
class
ZoneUtilsTest
s
{
@Test
public
void
extractApproximateZoneTest
()
{
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerReplicasTest.java
→
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerReplicasTest
s
.java
View file @
497b95ec
...
...
@@ -2,26 +2,20 @@ package org.springframework.cloud.netflix.eureka.server;
import
static
org
.
junit
.
Assert
.*;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
when
;
import
static
org
.
springframework
.
cloud
.
netflix
.
eureka
.
server
.
EurekaControllerTest
.
setInstance
;
import
static
org
.
springframework
.
cloud
.
netflix
.
eureka
.
server
.
EurekaControllerTests
.
setInstance
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.netflix.appinfo.ApplicationInfoManager
;
import
com.netflix.appinfo.DataCenterInfo
;
import
com.netflix.appinfo.InstanceInfo
;
import
com.netflix.appinfo.MyDataCenterInfo
;
import
com.netflix.eureka.cluster.PeerEurekaNode
;
import
com.netflix.eureka.cluster.PeerEurekaNodes
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Test
;
import
com.netflix.eureka.util.StatusInfo
;
public
class
EurekaControllerReplicasTest
{
public
class
EurekaControllerReplicasTest
s
{
String
noAuthList1
=
"http://test1.com"
;
String
noAuthList2
=
noAuthList1
+
",http://test2.com"
;
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerTest.java
→
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerTest
s
.java
View file @
497b95ec
...
...
@@ -49,7 +49,7 @@ import static org.junit.Assert.assertThat;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
when
;
public
class
EurekaControllerTest
{
public
class
EurekaControllerTest
s
{
private
ApplicationInfoManager
infoManager
;
private
ApplicationInfoManager
original
;
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaCustomPeerNodesTest.java
→
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaCustomPeerNodesTest
s
.java
View file @
497b95ec
...
...
@@ -36,10 +36,10 @@ import com.netflix.eureka.registry.PeerAwareInstanceRegistry;
import
com.netflix.eureka.resources.ServerCodecs
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
EurekaCustomPeerNodesTest
.
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
value
=
{
@SpringBootTest
(
classes
=
EurekaCustomPeerNodesTest
s
.
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"spring.application.name=eureka"
,
"server.contextPath=/context"
,
"management.security.enabled=false"
})
public
class
EurekaCustomPeerNodesTest
{
public
class
EurekaCustomPeerNodesTest
s
{
@Autowired
private
PeerEurekaNodes
peerEurekaNodes
;
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/InstanceRegistryTest.java
→
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/InstanceRegistryTest
s
.java
View file @
497b95ec
...
...
@@ -13,7 +13,7 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.mock.mockito.SpyBean
;
import
org.springframework.cloud.netflix.eureka.server.InstanceRegistryTest.TestApplication
;
import
org.springframework.cloud.netflix.eureka.server.InstanceRegistryTest
s
.TestApplication
;
import
org.springframework.cloud.netflix.eureka.server.event.EurekaInstanceCanceledEvent
;
import
org.springframework.cloud.netflix.eureka.server.event.EurekaInstanceRegisteredEvent
;
import
org.springframework.cloud.netflix.eureka.server.event.EurekaInstanceRenewedEvent
;
...
...
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.doReturn;
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"spring.application.name=eureka"
,
"logging.level.org.springframework."
+
"cloud.netflix.eureka.server.InstanceRegistry=DEBUG"
})
public
class
InstanceRegistryTest
{
public
class
InstanceRegistryTest
s
{
private
static
final
String
APP_NAME
=
"MY-APP-NAME"
;
private
static
final
String
HOST_NAME
=
"my-host-name"
;
...
...
spring-cloud-netflix-turbine/src/test/java/org/springframework/cloud/netflix/turbine/CommonsInstanceDiscoveryTest.java
→
spring-cloud-netflix-turbine/src/test/java/org/springframework/cloud/netflix/turbine/CommonsInstanceDiscoveryTest
s
.java
View file @
497b95ec
...
...
@@ -31,7 +31,7 @@ import static org.mockito.Mockito.mock;
/**
* @author Spencer Gibb
*/
public
class
CommonsInstanceDiscoveryTest
{
public
class
CommonsInstanceDiscoveryTest
s
{
private
DiscoveryClient
discoveryClient
;
private
TurbineProperties
turbineProperties
;
...
...
spring-cloud-netflix-turbine/src/test/java/org/springframework/cloud/netflix/turbine/EurekaInstanceDiscoveryTest.java
→
spring-cloud-netflix-turbine/src/test/java/org/springframework/cloud/netflix/turbine/EurekaInstanceDiscoveryTest
s
.java
View file @
497b95ec
...
...
@@ -29,7 +29,7 @@ import static org.mockito.Mockito.mock;
/**
* @author Spencer Gibb
*/
public
class
EurekaInstanceDiscoveryTest
{
public
class
EurekaInstanceDiscoveryTest
s
{
private
EurekaClient
eurekaClient
;
private
TurbineProperties
turbineProperties
;
...
...
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