Skip to content

Commit 20891f9

Browse files
committed
#102 : Increase test coverage as per Sonar report
1 parent 8119e86 commit 20891f9

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ ext.libraries = [
6464
spring_boot_starter_test : dependencies.create("org.springframework.boot:spring-boot-starter-test:" + ext.versions.springBootVersion) {
6565
exclude module: "spring-boot-starter-logging"
6666
force = true
67-
}
67+
},
68+
awaitility : dependencies.create("org.awaitility:awaitility:3.1.6"),
6869
]
6970

7071
allprojects {

bxbot-core/src/main/java/com/gazbert/bxbot/core/config/exchange/AuthenticationConfigImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,4 @@ Map<String, String> getItems() {
5454
public void setItems(Map<String, String> items) {
5555
this.items = items;
5656
}
57-
58-
@Override
59-
public String toString() {
60-
return MoreObjects.toStringHelper(this)
61-
// WARNING - careful showing this!
62-
// .add("items", items)
63-
.toString();
64-
}
6557
}

bxbot-core/src/main/java/com/gazbert/bxbot/core/config/exchange/ExchangeConfigImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ public String toString() {
9191
return MoreObjects.toStringHelper(this)
9292
.add("exchangeName", exchangeName)
9393
.add("exchangeAdapter", exchangeAdapter)
94-
// WARNING - careful showing this!
95-
//.add("authenticationConfig", authenticationConfig)
94+
.add("authenticationConfig", "NOT SHOWN BY DESIGN")
9695
.add("networkConfig", networkConfig)
9796
.add("otherConfig", otherConfig)
9897
.toString();

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@
239239
<version>${spring-boot-starter.version}</version>
240240
<scope>test</scope>
241241
</dependency>
242+
<dependency>
243+
<groupId>org.awaitility</groupId>
244+
<artifactId>awaitility</artifactId>
245+
<version>3.1.6</version>
246+
<scope>test</scope>
247+
</dependency>
242248
</dependencies>
243249
</dependencyManagement>
244250

third_party_licenses.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Building & Testing
1616
* Gradle - https://gradle.org/ - https://gradle.org/license/
1717
* JsonPath - https://github.com/jayway/JsonPath - https://github.com/jayway/JsonPath/blob/master/LICENSE
1818
* spring-boot-starter-test - http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-testing.html
19+
* Awaitify

0 commit comments

Comments
 (0)