-
Notifications
You must be signed in to change notification settings - Fork 55
Maven run of the test cases produces 15 failures in Windows. #1
Comments
@FishOfPrey : Thanks for reporting this. I'll take a look. I don't have quick access to a Windows machine so this might take some time. As for the assertEquals, yes, the order of the arguments is expected first and then actual after that. Thanks for spotting that. Would you be able to make this change? |
@vazexqi Yes, I'll look at verifying the order of the assertEquals arguments. It will be a good first pull request as I get my dev environment setup with Maven etc... Thanks. |
@kren708: Feel free to chime in as well since you've worked more with the code. |
Changed the argument order for assertEquals so that the expected answer is before the actual result. As per Issue forcedotcom#1 and http://junit.sourceforge.net/javadoc/org/junit/Assert.html
Same here, I was able to clone the repo but when i try to build it using "mvn install package" I also got 15 failures. I'm stuck there and spent lot of time reinstalling and everything and also in a different machine but the same issue again. I'm using windows 7. |
I get 12 errors on Mac OS X (Yosemite), running from a 1.8 jdk, I can send the log from mvn install package if needed. |
@dancinllama: What are the errors that you are getting? I just tried on Mountain Lion and Maverick and both ran all 47 tests. |
Sent the test results to your email address, vazexqi. |
@dancinllama: What version of Java and maven are you running? I'm not sure if it is a configuration issue but it might help narrow it down. For reference, I'm on Java 1.7 and Maven 3.0.5. |
Jdk 1.8.0_25 and Apache Maven 3.2.3 (Installed via homebrew) |
There was a jdk update in the Yosemite update, it bit me on my home Sent from my iPhone On Oct 20, 2014, at 9:02 AM, Nicholas Chen [email protected] wrote: @dancinllama https://github.com/dancinllama: What version of Java and — |
@dancinllama: It's because of Java 8. I installed it on my laptop with Mountain Lion and it gave me the same failures as what you sent me. Could you fall back to Java 7? |
I've received 15 errors both under JDK 7 and 8 under Windows 8. Attached is my verbose error log. |
I am getting the same issues on Windows 10 - has anyone got a work around? I am happy to help work on a resolution on this issue if anyone has some suggestions. |
Looking at the output, it seems that the difference just seems to be the On Thu, Jan 14, 2016 at 10:02 AM, Connor Jackson [email protected]
|
@kren708 - Could you take a look at these Java 8 failures? We have updated to Java 8 for the Force.com IDE and it's time to do the same for Apex2WSDL. |
A workaround to simply skip the maven test step is to add "-DskipTests=true" to your call to mvn, e.g. "mvn install package -DskipTests=true" |
Calls to FileString.getStringFromFile(String Path) are returning strings that have both LF and CRLF as the delimiter in a Windows environment.
This results in 15 test failures when comparing the WSDL2Apex output with the expected output files.
Test set: com.salesforce.ide.wsdl2apex.core.WSDL2ApexTest
Tests run: 47, Failures: 15, Errors: 0, Skipped: 0, Time elapsed: 0.686 sec <<< FAILURE!
testAsyncFalse(com.salesforce.ide.wsdl2apex.core.WSDL2ApexTest) Time elapsed: 0.032 sec <<< FAILURE!
org.junit.ComparisonFailure: Test 8 doesn't match expected:<> but was:<...nerated by wsdl2apex[
]
}> but was:<...nerated by wsdl2apex[
}]
}>
at org.junit.Assert.assertEquals(Assert.java:115)
testNewClassNames(com.salesforce.ide.wsdl2apex.core.WSDL2ApexTest) Time elapsed: 0.038 sec <<< FAILURE!
The result1 output of parseAndGenerate(args) has the extra CR.
My quick hack solution is to modify the return statement of FileString.getStringFromFile() by appending .replaceAll("\r\n", "\n").
Also, are the last two arguments to assertEquals around the correct way? Should the expected value go first and then the actual value?
I might be off the mark of both these points as I don't usually work with Java.
The text was updated successfully, but these errors were encountered: