<p>The tests you mention are tests that drive the UI classes directly. They are a bit like robot tests and are a bit fiddly. If you don't run those specific tests you lose a bit of UI test coverage but no coverage of the deeper classes.</p>

<p>RE: the code being poorly documented: There are lots of Java doc comments, pretty much everywhere. You'll appreciate that the documentation effort has been much more on the end user side of things. MultiBit is a fairly typical MVC architecture, though of course it has accumulated a fair amount of cruft over time. Surprisingly code is almost always documented in line.</p>

CC BY-SA 3.0
2014-03-11T15:44:45.503Z
2014-03-11T15:44:45.503Z
jim618
<p>I am trying to compile Multibit on Windows: </p>

<pre><code>Windows 7, 
IDEA 13.0.2, 
Maven 3.0, 
Multibit 0.5.16.
</code></pre>

<p>I am able to compile, but when I try to test there are always 2 failures:</p>

<pre><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 &lt;&lt;&lt; FAILURE!
testExportTransactions(org.multibit.file.ExportTransactionsSubmitActionTest)  Time elapsed: 0.799 sec  &lt;&lt;&lt; FAILURE!
junit.framework.ComparisonFailure: Row 1 incorrect expected:&lt;29 Jul 2013 1[0]:23,"Sent to ""unenc...&gt; but was:&lt;29 Jul 2013 1[2]:23,"Sent to ""unenc...&gt;
</code></pre>

<p>and</p>

<pre><code>Running org.multibit.viewsystem.swing.action.CreateNewReceivingAddressSubmitActionTest
&lt;......&gt;

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 46.048 sec &lt;&lt;&lt; FAILURE!
testAddReceivingAddressesWithEncryptedWallet(org.multibit.viewsystem.swing.action.CreateNewReceivingAddressSubmitActionTest)  Time elapsed: 46.047 sec  &lt;&lt;&lt; FAILURE!
junit.framework.AssertionFailedError: Wrong number of keys after addition of 20 keys expected:&lt;22&gt; but was:&lt;2&gt;
</code></pre>

<p>And more common question. <strong>Multibit code is very poorly documented. Does anybody have any reference/tutorial/explanation about it?</strong></p>

CC BY-SA 3.0
2014-03-11T17:59:29.170Z
Sounds like a wallet file / software versions mismatch, do you have an old wallet file on that PC somewhere maybe?
hafnero
CC BY-SA 3.0
2014-03-11T19:39:28.313Z
I first installed 0.5.17 version, then uninstalled it and got 0.5.16 version from github. Seems like there still are some odds and ends of 0.5.17 though. How can I find them?
Flot2011
<client><multibit><windows>
Test failure for Multibit on Windows
Flot2011
# Test failure for Multibit on Windows

(Asked by: username_0 on 2014-03-11)

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:

```
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

```
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:<22> but was:<2>

```

And more common question. **Multibit code is very poorly documented. Does anybody have any reference/tutorial/explanation about it?**

**Tags:** client, multibit, windows

> **Comments:**
> **username_1**: Sounds like a wallet file / software versions mismatch, do you have an old wallet file on that PC somewhere maybe?  
> **username_0**: I first installed 0.5.17 version, then uninstalled it and got 0.5.16 version from github. Seems like there still are some odds and ends of 0.5.17 though. How can I find them?  

---

## 1 answers

### Answer by username_2 on 2014-03-11. Score: 0 | Accepted answer

The tests you mention are tests that drive the UI classes directly. They are a bit like robot tests and are a bit fiddly. If you don't run those specific tests you lose a bit of UI test coverage but no coverage of the deeper classes.

RE: the code being poorly documented: There are lots of Java doc comments, pretty much everywhere. You'll appreciate that the documentation effort has been much more on the end user side of things. MultiBit is a fairly typical MVC architecture, though of course it has accumulated a fair amount of cruft over time. Surprisingly code is almost always documented in line.


---

