@@ -0,0 +1,1467 @@
+package co.uk.jiveelection.campaign.output.twitter;%0A%0Aimport co.uk.jiveelection.campaign.jive.Jive;%0Aimport org.junit.Before;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.junit.MockitoJUnitRunner;%0Aimport twitter4j.Status;%0Aimport twitter4j.Twitter;%0Aimport twitter4j.TwitterException;%0A%0Aimport static org.mockito.Mockito.verify;%0A%0A/**%0A * Unit Tests for TwitterOutput%0A */%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class TwitterOutputTest %7B%0A%0A    @Mock%0A    Jive mockJiveBot;%0A%0A    @Mock%0A    Twitter mockTwitter;%0A%0A    private TwitterOutput twitterOutput;%0A%0A    @Before%0A    public void setUp() %7B%0A        twitterOutput = new TwitterOutput(mockJiveBot, %22jivebot_token%22, %22jivebot_token_secret%22);%0A    %7D%0A%0A    @Test%0A    public void should_CallJiveComplete_When_OutputCompletes() %7B%0A        // Given%0A        final Status status = new StatusBuilder()%0A                .text(%22tweet tweet%22)%0A                .build();%0A%0A        // When%0A        twitterOutput.onOutputComplete(status);%0A%0A        // Then%0A        verify(mockJiveBot).onJiveComplete(status);%0A    %7D%0A%0A    @Test%0A    @Ignore%0A    public void should_UpdateStatus_When_OutputJiveCalled() throws TwitterException %7B%0A        // Given%0A        final String jive = %22jive%22;%0A%0A        // When%0A        twitterOutput.outputJive(jive);%0A%0A        // Then%0A        verify(mockTwitter).updateStatus(jive);%0A        // TODO: collaborate with the Twitter object and verify%0A    %7D%0A%7D

Add unit test for TwitterOutput