• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ExpediaGroup / bull / #1400
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 31 Mar 2026 08:33AM UTC
Jobs 1
Files 60
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Mar 2026 08:32AM UTC coverage: 100.0%. Remained the same
#1400

push

fborriello
test: add regression tests for collection element field transformer NPE

Add tests verifying that field transformers using flat field name transformation
correctly use the collection element as the source, not the root object.

New sample classes:
- FromFooWithFullName: source item with a fullName field
- FromFooContainingList: root source with id + List<FromFooWithFullName>
- ImmutableToFooWithSplitName: target item with name + surname fields
- ImmutableToFooContainingList: root target with id + List<ImmutableToFooWithSplitName>

New tests in MixedObjectTransformationTest:
- testFieldTransformerOnCollectionElementsUsesElementNotRootAsSource: verifies
  that withFieldMapping + withFieldTransformer on collection elements reads from
  the element, not the root (would have NPEd before the fix)
- testAllCollectionElementsAreIndependentlyTransformedFromTheirOwnSource: verifies
  each element is transformed from its own source independently

Also adds resetFieldsMapping() to AbstractBeanTransformerTest.beforeMethod() so
field name mappings are always cleared between tests, preventing state leakage
when a test throws before calling underTest.reset().

1225 of 1225 relevant lines covered (100.0%)

1.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #1400.1 31 Mar 2026 08:33AM UTC 60
100.0
Source Files on build #1400
  • Tree
  • List 60
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d07a1c54 on github
  • Prev Build on fix/collection-element-field-transformer-null-regression
  • Next Build on fix/collection-element-field-transformer-null-regression
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc