#NEWLINE# def test_junit_runner_failure( self ) : #NEWLINE# #INDENT# with self . assertRaises ( TaskError ) as cm : #NEWLINE# #INDENT# self . execute_junit_runner ( dedent ( '\n          import org.junit.Test;\n          import static org.junit.Assert.assertTrue;\n          public class FooTest {\n            @Test\n            public void testFoo() {\n              assertTrue(5 < 3);\n            }\n          }\n        ' ) ) #NEWLINE# #UNINDENT# self . assertEqual ( [ t . name for t in cm . exception . failed_targets ] , [ 'foo_test' ] )