package com.salvis.emptracker.tests;

import org.junit.Assert;
import org.junit.Test;

import com.salvis.emptracker.TwitterEmpTracker;

import twitter4j.Status;

public class TweetTest {

	@Test
	public void postTweet() {
		TwitterEmpTracker twitter = new TwitterEmpTracker();
		String text = "SCOTT got a pay raise of $150. Making $3000 a month now. Congrats.";
		Status status = twitter.updateStatus(text);
		Assert.assertEquals(text, status.getText());
	}

}

@@ -83,108 +83,543 @@
 st;%0A
-%0Aimport com.salvis.emptracker.TwitterEmpTracker;%0A%0Aimport twitter4j.Status;%0A%0Apublic class TweetTest %7B
+import org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.context.annotation.Import;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport com.salvis.emptracker.AppConfig;%0A%0Aimport twitter4j.Status;%0Aimport twitter4j.Twitter;%0Aimport twitter4j.TwitterException;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0A@Import(AppConfig.class)%0Apublic class TweetTest %7B%0A%09%0A%09@Autowired%0A%09private Twitter twitter;
 %0A%0A%09@
@@ -652,20 +652,23 @@
 t() 
-%7B%0A%09%09
+throws 
 TwitterE
 mpTr
@@ -667,52 +667,18 @@
 terE
-mpTracker twitter = new TwitterEmpTracker();
+xception %7B
 %0A%09%09S

refactor test using Spring Boot configuration