pi4j-v2
pi4j-v2 copied to clipboard
Merge of #373 prevents Building pi4j on a Pi.
@eitch @FDelporte I did a fetch and rebase and then mvn clean install -Pnative.
Failures:
[ERROR] AutoPlatformsTest.testPlatformsNotEmpty:69 expected:
In the file DefaultContextBuilder line 54 protected boolean autoDetectMockPlugins = !BoardInfoHelper.runningOnRaspberryPi();
I set this to true and the build and test works.
I did no further investigation @eitch thinking your suggestion of how to change #373 is needed.
@eitch robert. Should i locate where the test environment creates the Context and use new signature ? I think we added one that loads the needed providers. If not maybe that signature is required
@taartspi Hi, yes this makes sense, to allow loading the mocks in test cases also on the Raspberry Pi.