[YANGTOOLS-1484] Add openrewrite.org recipe for YangParserTestUtils.parseYangResource() Created: 03/Feb/23  Updated: 03/Feb/23

Status: Confirmed
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by YANGTOOLS-1483 Enrich YangParserTestUtils with Strin... Resolved

 Description   

YANGTOOLS-1483 improves ergonomics of unit tests to a large extent: it allows hosting a YANG snippet in Java code.

We have plenty of UT code which could leverage this facility, but migration is tedious for little gain.

openrewrite to the rescue: it allows us to migrate code using a simple recipe, which then is plugged into maven build and performs the transform.

Write such a plugin, which will inline src/test/resources (and remove them) as part of its run.

For now, let's inline any YANG file under 50 lines, which should be a tuneable default.


Generated at Wed Feb 07 20:56:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.