Closed cowtowncoder closed 4 months ago
/cc @Shounaks @TomaszGaweda
Started by renaming existing module as jr-groovy-test
. Also noticed it was being published (even if as just pom.xml
) -- that is wasteful and unnecessary, so will block that.
And it is necessary to separate out Records test as they can only run with JDK 17 -- and the way to do that (while still allowing other modules to build on JDK 8) is , I think, via Profiles (or play with toolchains or something else). At least jackson-databind
does that.
But I think I'll try to create separate Maven module for test(s) to avoid possible breakage of jr-objects
.
Fixed so that test now run; under new jackson-jr-record-test
module.
But one thing that I think it's wrong -- and I wish I had noticed it originally is that this:
JSON.builder().enable(JSON.Feature.USE_FIELD_MATCHING_GETTERS).build();
should NOT be needed; setting should be dynamically applied for Record types. I'll create separate issues for fixing this for serialization, and deserialization.
Looks like tests added for #94 (and further #148) do not actually get run with 2.17/2.17: groovy tests do, java tests not. Need to figure out now.
At first thought use of JUnit5 was the problem (all other tests run on JUnit4) but that's not it. Maven module is not imported by Eclipse so I have limited visibility (can try with Idea next).
I wonder if Groovy and Java17 tests need to be separate into different modules, even.