I have an odd situation that I haven't figured out how to handle. We have developers working on multiple platforms, the primary platform is linux, but we also have people working on OS X and Windows.
We have a set of tests that all build and run fine on Linux. But when we try to run them on OS X they fail. The failing assert is testing that two strings are equal, but there is one character that doesn't seem to be the same character in the Mac environment. I am fairly certain that this is simply because the file is encoded in a certain way and the expected string value, which is hard coded, is encoded differently. I was able to fix some other encoding issues by setting the JVM file.encoding through MAVEN-OPTS, but I have been stumped by this problem up to this point.
The structure looks something like this: some.xml --> xslt --> object assertEquals("expected value", object.valueToTest());
Any insights on how to rectify this mismatch? Or even why it would be occurring in the first place?
The header on the xml file says it is encoded in UTF-8, but it is possible that the file might be encoded differently on the file system. Is there a way for me to check what the actual encoding is?