#NEWLINE# def test_junit_runner_timeout_success( self ) : #NEWLINE# #INDENT# "When we set a timeout and don't force failure, succeed." #NEWLINE# with patch ( 'pants.task.testrunner_task_mixin.Timeout' ) as mock_timeout : #NEWLINE# #INDENT# self . set_options ( timeout_default = 1 ) #NEWLINE# self . set_options ( timeouts = True ) #NEWLINE# 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# ( args , kwargs ) = mock_timeout . call_args #NEWLINE# self . assertEqual ( args , ( 1 , ) )