Sha256: c5f4aff35f48b9bdfe3d77d0b4c9e76a7a21146d35b0cd2b7b8e2f4a3de3b0ae

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

require 'test/unit'
require 'rubygems'
require 'rubeus'

# Test for j_split_pane.rb
class TestJSplitPane < Test::Unit::TestCase
	include Rubeus::Swing

	# setup method
	def setup
	end

	# normal pattern with Symbol
	def test_normal_with_symbol
		assert_nothing_raised do
			JFrame.new do |f|
				JSplitPane.new(:HORIZONTAL_SPLIT) do
					JButton.new("Push!")
					JLabel.new("ラベル")
				end
			end
		end

		assert_nothing_raised do
			JFrame.new do |f|
				JSplitPane.new(:VERTICAL_SPLIT) do
					JButton.new("Push!")
					JLabel.new("ラベル")
				end
			end
		end
	end

	# normal pattern with original constructor
	def test_normal_with_original_constructor
		assert_nothing_raised do
			JFrame.new do |f|
				JSplitPane.new(javax.swing.JSplitPane::HORIZONTAL_SPLIT) do
					JButton.new("Push!")
					JLabel.new("ラベル")
				end
			end
		end

		assert_nothing_raised do
			JFrame.new do |f|
				JSplitPane.new(javax.swing.JSplitPane::VERTICAL_SPLIT) do
					JButton.new("Push!")
					JLabel.new("ラベル")
				end
			end
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubeus-0.0.9-java test/rubeus/extensions/javax/swing/test_j_split_pane.rb
rubeus-0.0.8-java test/rubeus/extensions/javax/swing/test_j_split_pane.rb
rubeus-0.0.7-java test/rubeus/extensions/javax/swing/test_j_split_pane.rb