<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bitmask_thunderbird.git/tests/unit/mail, branch 0.10rc1</title>
<subtitle>[bitmask_thunderbird] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/bitmask_thunderbird.git/'/>
<entry>
<title>[bug] fix notification for incoming mail with several listeners registered</title>
<updated>2017-05-16T17:28:35+00:00</updated>
<author>
<name>Kali Kaneko (leap communications)</name>
<email>kali@leap.se</email>
</author>
<published>2017-04-27T13:20:24+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/bitmask_thunderbird.git/commit/?id=c980cae46d101c0def23bf3398b65b2e0c614d2a'/>
<id>c980cae46d101c0def23bf3398b65b2e0c614d2a</id>
<content type='text'>
When setting the listeners in the IMAP Folder, we avoid setting more
than one listener for the same imap mailbox (because in some situations
we were registering way too many listeners).

this was making the pixelated inbox registering the notification and
therefore the imap mailbox not being registered.

this MR also refactors the way pixelated is initialized, so that it
avoid creating a second Account instance. In this way, we make sure that
the pixelated mua and the imap server share the same collections for a
given mailbox, and therefore any of the two is able to get a
notification whenever the other adds a message to the mailbox.

- Resolves: #8846, #8798
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When setting the listeners in the IMAP Folder, we avoid setting more
than one listener for the same imap mailbox (because in some situations
we were registering way too many listeners).

this was making the pixelated inbox registering the notification and
therefore the imap mailbox not being registered.

this MR also refactors the way pixelated is initialized, so that it
avoid creating a second Account instance. In this way, we make sure that
the pixelated mua and the imap server share the same collections for a
given mailbox, and therefore any of the two is able to get a
notification whenever the other adds a message to the mailbox.

- Resolves: #8846, #8798
</pre>
</div>
</content>
</entry>
<entry>
<title>[tests] do not mock failures</title>
<updated>2016-11-04T13:50:55+00:00</updated>
<author>
<name>Kali Kaneko (leap communications)</name>
<email>kali@leap.se</email>
</author>
<published>2016-11-04T13:50:36+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/bitmask_thunderbird.git/commit/?id=68ecf00553bb870e6a2026e3672f0ac3268f274b'/>
<id>68ecf00553bb870e6a2026e3672f0ac3268f274b</id>
<content type='text'>
in the variant that was merged, we call a failure method to get the
exception, so it's better to test a real failure initialized with an
exception.

besides, I'm starting to hate mocks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in the variant that was merged, we call a failure method to get the
exception, so it's better to test a real failure initialized with an
exception.

besides, I'm starting to hate mocks.
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] add tests for outgoing service</title>
<updated>2016-11-04T13:21:07+00:00</updated>
<author>
<name>Tulio Casagrande</name>
<email>tcasagra@thoughtworks.com</email>
</author>
<published>2016-11-02T15:49:59+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/bitmask_thunderbird.git/commit/?id=10877a35de605b0a554558de56f1aae92b39df71'/>
<id>10877a35de605b0a554558de56f1aae92b39df71</id>
<content type='text'>
This commit originall contained a fix for a wrong variable name that
avoided the outgoing service to be launched. This had been fixed in a
concurrent mr that got merged before this one. However, this MR
contained a couple of tests for the OutgoingService, and I'm merging
those tests now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit originall contained a fix for a wrong variable name that
avoided the outgoing service to be launched. This had been fixed in a
concurrent mr that got merged before this one. However, this MR
contained a couple of tests for the OutgoingService, and I'm merging
those tests now.
</pre>
</div>
</content>
</entry>
</feed>
