require File.expand_path("test_helper", File.dirname(__FILE__)) # FIXME(uwe): Remove check when we stop supporting JRuby older than 1.7.0.rc1 # FIXME(uwe): Remove check when we stop supporting Android < 4.0.3 if RubotoTest::JRUBY_JARS_VERSION >= Gem::Version.new('1.7.0.rc1') && (RubotoTest::ANDROID_OS >= 15 || RubotoTest::RUBOTO_PLATFORM != 'STANDALONE') require 'bigdecimal' require 'test/app_test_methods' class SqldroidTest < Test::Unit::TestCase def setup generate_app :bundle => :sqldroid end def teardown cleanup_app end def test_sqldroid Dir.chdir APP_DIR do File.open('src/ruboto_test_app_activity.rb', 'w'){|f| f << < LinearLayout::VERTICAL do @text_view_margins = text_view :text => 'What hath Matz wrought?', :id => 42 @list_view = list_view :adapter => adapter, :id => 43 end end end EOF File.open('test/src/ruboto_test_app_activity_test.rb', 'w'){|f| f << < 60) sleep 1 end assert @text_view assert @list_view end test("activity starts") do |activity| assert true end EOF end run_app_tests end end end # EMXIF