package org.jenkinsci.plugins.django;

import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat;
import hudson.model.FreeStyleBuild;

import org.apache.commons.io.FileUtils;

@Rule public JenkinsRule jenkinsRule = new JenkinsRule();

public class TestDjangoBuilder {
	private final static String NO_TASK = "nonsensetask";

    public void setUp() {
        
    }
    @Test
	public void testPluginLoads() throws Exception {
        FreeStyleProject project = JenkinsRule.createFreeStyleProject();
		djangoBuilder = new DjangoJenkinsBuilder(NO_TASK);
		project.getBuildersList().add(djangoBuilder);
		FreeStyleBuild build = project.scheduleBuild2(0).get();
		String s = FileUtils.readFileToString(build.getLogFile());
		assertThat(s, containsString(NO_TASK));
	}
}

@@ -131,16 +131,17 @@
 rtThat;%0A
+%0A
 import h
@@ -169,16 +169,105 @@
 Build;%0A%0A
+import org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.jvnet.hudson.test.JenkinsRule;%0A%0A
 import o
@@ -304,17 +304,17 @@
 ;%0A%0A@Rule
- 
+%0A
 public J
@@ -391,16 +391,17 @@
 ilder %7B%0A
+%0A
 %09private
@@ -452,49 +452,8 @@
 %22;%0A%0A
-    public void setUp() %7B%0A        %0A    %7D%0A
     

Correct imports