Github user jtstorck commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1566#discussion_r104776796
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/test/java/org/apache/nifi/cluster/coordination/http/StandardHttpResponseMapperSpec.groovy
---
@@ -176,7 +177,8 @@ class StandardHttpResponseMapperSpec extends
Specification {
// expectedEntity
new ConnectionEntity(id: '1', permissions: new
PermissionsDTO(canRead: false, canWrite: false),
status: new ConnectionStatusDTO(aggregateSnapshot:
new ConnectionStatusSnapshotDTO(bytesIn: 1000,
- input: '0 (1,000 bytes)', output: '0 (0
bytes)', queued: '0 (0 bytes)', queuedSize: '0 bytes', queuedCount: 0)))
+ input: '0 (' +
NumberFormat.getInstance().format(1000) + ' bytes)', output: '0 (0 bytes)',
--- End diff --
An alternative fix (using a GString) for this would be:
```groovy
input: "0 (${NumberFormat.numberInstance.format(1000)} bytes)"
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---