CountTest causes lambda Ser/Derialization tests to fail

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs

        The recently added stream test for counting is serialization hostile and results in lambda SAND test failures.

        The test can be updated to obtain the expected size using:

          long expectedCount = data.size();

        For SAND tests, the following:

                AtomicLong expectedCount = new AtomicLong();
                data.stream().forEach(e -> expectedCount.incrementAndGet());

        will result in expectedCount being 0 on deserialization.

              Assignee:
              Paul Sandoz
              Reporter:
              Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: