Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit bd08df3

Browse files
committed
Added additional test for placeholders
fixes #9
1 parent c226f26 commit bd08df3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ The Starter will try to locate `hotrod-client.properties` file placed on the cla
9494
infinispan.client.hotrod.server_list=127.0.0.1:6667
9595
```
9696

97+
All properties are mentioned in http://infinispan.org/docs/dev/user_guide/user_guide.html#configuration_11[official Infinispan documentation].
98+
9799
After the configuration file is accessible on the classpath, just add this code snippet to your app:
98100
```java
99101
private final RemoteCacheManager cacheManager;

infinispan-spring-boot-starter-test-remote/src/test/java/test/infinispan/autoconfigure/remote/CustomPropertiesTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ public class CustomPropertiesTest {
2525
public void testDefaultClient() {
2626
//when
2727
int portObtainedFromPropertiesFile = remoteCacheManager.getConfiguration().servers().get(0).port();
28+
boolean tcpNoDelay = remoteCacheManager.getConfiguration().tcpNoDelay();
2829

2930
//then
3031
assertThat(portObtainedFromPropertiesFile).isEqualTo(6667);
32+
assertThat(tcpNoDelay).isFalse();
3133
}
3234
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
infinispan.client.hotrod.server_list=127.0.0.1:6667
1+
infinispan.client.hotrod.server_list=127.0.0.1:6667
2+
infinispan.client.hotrod.tcp_no_delay=false

0 commit comments

Comments
 (0)