Skip to content

Commit

Permalink
Unit test fix for not publishing connection state on creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilfb committed Mar 24, 2018
1 parent 6db9c5c commit 41f4772
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void testUnsubscribeAndRemove() throws MqttException, ConfigurationExcept
context.checking(new Expectations()
{
{
oneOf(mockEventBus).publish(with(any(ConnectionStatusChangeEvent.class)));
exactly(0).of(mockEventBus).publish(with(any(ConnectionStatusChangeEvent.class)));
}
});

Expand Down Expand Up @@ -174,7 +174,7 @@ public void testUnsubscribe() throws MqttException, ConfigurationException
context.checking(new Expectations()
{
{
oneOf(mockEventBus).publish(with(any(ConnectionStatusChangeEvent.class)));
exactly(0).of(mockEventBus).publish(with(any(ConnectionStatusChangeEvent.class)));
}
});

Expand Down

0 comments on commit 41f4772

Please sign in to comment.