Clean up YangToSourcesMojo 20/104620/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Feb 2023 13:05:29 +0000 (14:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Feb 2023 13:05:29 +0000 (14:05 +0100)
commit4c0041e51a0ce106c7ea53fba5c21283ee4df4cd
treef4479d7041354615a7f8e81d4ef20c8e87b7e762
parent8507cabb4acfc48a51e45eca9e01a0fa1aceb36e
Clean up YangToSourcesMojo

We have a weird combination of injected and instantiated processors
here, which really serves only for a very bad UT. Since we are testing
YangToSourcesMojo through integration tests, we can forgo all of this.

This leads to a more straightforward execution, as now the Mojo acts
only as a thin interface towards maven. All the logic is contained in
Processor.

Change-Id: Ia64e69ed6a44e3052f43dcc978e066b080928e73
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojo.java
plugin/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/AbstractCodeGeneratorTest.java
plugin/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojoTest.java [deleted file]