package com.dev9.crash;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = CrashDummyApplication.class)
@WebAppConfiguration
public class CrashDummyApplicationTests {

    @Autowired
    ApplicationContext context;

	@Test
	public void contextLoads() {
        assertThat(context).isNotNull();
	}

    @Test(expected = StackOverflowError.class)
    public void stackOverflow() {
        StackOverflow sf = new StackOverflow();
        sf.run();
    }

}

@@ -189,24 +189,32 @@
 amework.
-contex
+boot.tes
 t.
+Spring
 Applicat
@@ -219,20 +219,26 @@
 ationCon
-text
+figuration
 ;%0Aimport
@@ -258,29 +258,24 @@
 amework.
-test.
 context.
 web.WebA
@@ -270,31 +270,26 @@
 ext.
-web.WebAppConfiguration
+ApplicationContext
 ;%0Aim
@@ -317,48 +317,51 @@
 ork.
-boot.test.SpringApplicationConfiguration
+test.context.junit4.SpringJUnit4ClassRunner
 ;%0Aim
@@ -402,38 +402,83 @@
 ext.
-junit4.SpringJUnit4ClassRunner
+web.WebAppConfiguration;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List
 ;%0A%0Ai
@@ -762,16 +762,22 @@
 t;%0A%0A
-%09
+    
 @Test%0A
-%09
+    
 publ
@@ -846,9 +846,12 @@
 ();%0A
-%09
+    
 %7D%0A%0A 
@@ -1003,10 +1003,748 @@
 %0A    %7D%0A%0A
+    @Test%0A    @Ignore(%22Technically this test will kill your build as written.%22)%0A    public void doAllTheBadThings() %7B%0A        BadThingRegistry btr = BadThingRegistry.getBadThingRegistry();%0A%0A        List%3CString%3E skipList = new ArrayList%3C%3E();%0A        skipList.add(%22Fill Up The Heap%22);%0A%0A        for (BadThing badThing : btr.badThings) %7B%0A            System.out.println(%22Starting: %22 + badThing.badThingName());%0A%0A            try %7B%0A                if (!skipList.contains(badThing.badThingName()))%0A                    badThing.doBadThing();%0A                else%0A                    System.out.println(%22Skipping: %22 + badThing.badThingName());%0A            %7D catch (Exception e) %7B%0A                e.printStackTrace();%0A            %7D%0A        %7D%0A%0A    %7D%0A
 %7D%0A

Add "bad" test.