Author

Topic: Cannot compile MultiBit on Windows (Read 1161 times)

legendary
Activity: 1708
Merit: 1066
March 17, 2014, 03:29:28 PM
#2
There are some tests that drive the GUI elements directly that are a bit brittle
(they are like robot tests)

If you comment them out you'll drop the test coverage of the GUI elements but it's not too bad.
They are typically called 'blah blah SubmitActionTest' and represent 'clicking the submit button' in a form.
newbie
Activity: 1
Merit: 0
March 11, 2014, 06:42:50 AM
#1
I am trying to compile MultiBit on Windows:

Windows 7,
IDEA 13.0.2,
Maven 3.0,
MultiBit 0.5.16.
I am able to compile, but when I try to test there are always 2 failures:

Code:
Running org.multibit.file.ExportTransactionsSubmitActionTest
11:31:54.896 [main] DEBUG org.multibit.model.BaseModel - Initial view from properties file is 'WELCOME_VIEW'
11:31:55.671 [main] DEBUG o.m.model.bitcoin.WalletInfoData - The wallet version in the constructor was '3'. In the wallet info file it was '2'. Using the latter.
11:31:55.678 [main] DEBUG org.multibit.file.FileHandler - rememberFileSizesAndLastModified: Wallet filename C:\Projects\BCColors\multibit-master\.\.\src\test\resources\wallets\protobuf1.wallet , walletFileSize 986 ,walletFileLastModified 1393765318000 ,walletInfoFileSize 688 ,walletInfoFileLastModified 1393765318000
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.8 sec <<< FAILURE!
testExportTransactions(org.multibit.file.ExportTransactionsSubmitActionTest)  Time elapsed: 0.799 sec  <<< FAILURE!
junit.framework.ComparisonFailure: Row 1 incorrect expected:<29 Jul 2013 1[0]:23,"Sent to ""unenc...> but was:<29 Jul 2013 1[2]:23,"Sent to ""unenc...>

and

Code:
Running org.multibit.viewsystem.swing.action.CreateNewReceivingAddressSubmitActionTest
<......>

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 46.048 sec <<< FAILURE!
testAddReceivingAddressesWithEncryptedWallet(org.multibit.viewsystem.swing.action.CreateNewReceivingAddressSubmitActionTest)  Time elapsed: 46.047 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Wrong number of keys after addition of 20 keys expected
What may be the problem?
Thanks.
Jump to: