test/sqldroid_test.rb in ruboto-0.11.0 vs test/sqldroid_test.rb in ruboto-0.12.0.rc.0
- old
+ new
@@ -1,11 +1,9 @@
-require File.expand_path("test_helper", File.dirname(__FILE__))
+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')
+if RubotoTest::ANDROID_OS >= 15 || RubotoTest::RUBOTO_PLATFORM != 'STANDALONE'
require 'bigdecimal'
require 'test/app_test_methods'
class SqldroidTest < Test::Unit::TestCase
@@ -26,17 +24,16 @@
ruboto_import_widgets :LinearLayout, :ListView, :TextView
class MyArrayAdapter < android.widget.ArrayAdapter
def get_view(position, convert_view, parent)
- puts "IN get_view!!!"
@inflater ||= context.getSystemService(Context::LAYOUT_INFLATER_SERVICE)
row = convert_view ? convert_view : @inflater.inflate(mResource, nil)
row.findViewById(mFieldId).text = get_item(position)
row
rescue Exception
puts "Exception getting list item view: \#$!"
- puts $!.backtrace.join("\n")
+ puts $!.backtrace.join("\\n")
convert_view
end
end
class RubotoTestAppActivity