4PointSolutions / 4PointSolutions/FormsFeeder

FormsFeeder build error - testDecode{TestScenario}[6]

Open Beginner friendly
#8 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Java
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

maven package or install command is getting failed while building the FormsFeeder parent project due to failure in the unit test on Mac machines.

Workaround is by skipping the unit test. e,g _mvn -DskipTests=true package or mvn -DskipTests=true install_

ERROR] Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.099 s <<< FAILURE! - in com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListDecoderTest
[ERROR] testDecode{TestScenario}[6] Time elapsed: 0.012 s <<< FAILURE!
org.opentest4j.AssertionFailedError: DataSource 'filename' fields do not match. ==> expected: but was:
at com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListDecoderTest.dsEquals(XmlDataSourceListDecoderTest.java:159)
at com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListDecoderTest.dslEquals(XmlDataSourceListDecoderTest.java:152)
at com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListDecoderTest.testDecode(XmlDataSourceListDecoderTest.java:43)

[INFO] Running com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListEncoderTest
[ERROR] Tests run: 11, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.024 s <<< FAILURE! - in com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListEncoderTest
[ERROR] test_OutputStream Time elapsed: 0.008 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <RHNWYWx1ZTE=Mg==RFNWYWx1ZTM=RFNWYWx1ZTRfMQ==RFNWYWx1ZTRfMg==RFM1Q29udGVudDE=RFM1Q29udGVudDI=> but was: <RHNWYWx1ZTE=Mg==RFNWYWx1ZTM=RFNWYWx1ZTRfMQ==RFNWYWx1ZTRfMg==RFM1Q29udGVudDE=RFM1Q29udGVudDI=>
at com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListEncoderTest.test_OutputStream(XmlDataSourceListEncoderTest.java:69)

[ERROR] testEncode{TestScenario}[6] Time elapsed: 0.001 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <RFNWYWx1ZTM=> but was: <RFNWYWx1ZTM=>
at com._4point.aem.formsfeeder.core.datasource.serialization.XmlDataSourceListEncoderTest.testEncode(XmlDataSourceListEncoderTest.java:42)

Contributor guide

Open the contributing guide

Research direction

The failing tests are in XmlDataSourceListDecoderTest and XmlDataSourceListEncoderTest. The error shows a path separator mismatch (backslash vs forward slash) on Mac. Look at the test data or the serialization code that generates the Filename attribute. Run the specific failing tests to confirm the issue, then adjust the path handling to be OS-agnostic or normalize the separator.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.