activity org.ruboto.test_app.NoOnCreateActivity setup do |activity| start = Time.now loop do @text_view = activity.findViewById(42) break if @text_view || (Time.now - start > 60) sleep 1 end assert @text_view end test('activity starts without onCreate implemented') do |activity| assert_equal 'No On Create', @text_view.text.to_s end