Skip to content

ARTEMIS-6116 Fix tests for windows OS#6513

Open
GChuf wants to merge 10 commits into
apache:mainfrom
GChuf:ARTEMIS-6116
Open

ARTEMIS-6116 Fix tests for windows OS#6513
GChuf wants to merge 10 commits into
apache:mainfrom
GChuf:ARTEMIS-6116

Conversation

@GChuf

@GChuf GChuf commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This PR fixes some errors, not all of them.
Submitting this "work in progress" before I forget I was doing work here.

producer.applyProperties(mockMessage);

assertEquals("Unable to set property: myKey. Did not recognize type: myType. Supported types are: boolean, int, long, byte, short, float, double, string.\n", context.getStderr());
assertEquals("Unable to set property: myKey. Did not recognize type: myType. Supported types are: boolean, int, long, byte, short, float, double, string.\n", context.getStderr().replace("\r\n", "\n"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good place to use System.lineSeparator().

Comment thread pom.xml
-Djava.library.path="${activemq.basedir}/target/bin/lib/linux-x86_64:${activemq.basedir}/target/bin/lib/linux-i686"
-Djgroups.bind_addr=localhost
-Djava.net.preferIPv4Stack=true
-Dbasedir=${basedir}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on the problem this is causing? Several tests use System.getProperty("basedir") so I would expect removing this line would cause such tests problems.

@GChuf GChuf Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one resolves the following warning:
Warning: The system property basedir is configured twice! The property appears in <argLine/> and any of <systemPropertyVariables/>, <systemProperties/> or user property.
If I remember correctly, it was producing some kind of error on windows. Maybe I should have added more info in the commit message.

@GChuf GChuf force-pushed the ARTEMIS-6116 branch 3 times, most recently from 68dbc08 to cd991dc Compare June 20, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants