|
From: Larry N. <ln...@sw...> - 2018-10-22 01:21:03
|
These errors occur in the Gradle build of branch rails_2_develop:
1. junit.framework.AssertionFailedError: Class net.sf.rails.test.TestGame
has no public constructor TestCase(String name) or TestCase()
2. junit.framework.ComparisonFailure: Reports differ in line 2
expected:<PlayerIs,1,Klaus-J[ü]rgen> but was:<PlayerIs,1,Klaus-J[ü]rgen>
3. junit.framework.ComparisonFailure: Reports differ in line 503
expected:<..._COMPANY_LOG,Arne,KK[ÃB,90,180,2,20,KKÃ]B> but
was:<..._COMPANY_LOG,Arne,KK[ÖB,90,180,2,20,KKÖ]B>
4. junit.framework.ComparisonFailure: Reports differ in line 477
expected:<...OMPANY_LOG,Martin,KK[ÃB,75,150,2,20,KKÃ]B> but
was:<...OMPANY_LOG,Martin,KK[ÖB,75,150,2,20,KKÖ]B>
Error 1 occurs because the Gradle test task attempts to run TestGame, which
is not intended as a standalone test class.
The others occur because UTF-8 was not the default file encoding.
I fixed these errors by adding this to build.gradle:
test {
systemProperty 'file.encoding', 'UTF-8'
exclude 'net/sf/rails/test/TestGame.class'
}
Do you want a patch or pull request?
Larry North
|