Sha256: d0f9251316abb49501539ef8bdd1f9da42603c90819b8845bf49247c4c8c2d88
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
require "test/unit" require "jmx4r" require "jconsole" class TestConnection < Test::Unit::TestCase def teardown JMX::MBean.remove_connection JConsole::stop end def test_establish_connection_with_bad_port assert_raise(NativeException) { JMX::MBean.establish_connection :port => 9999 } end def test_establish_connection_with_bad_host assert_raise(NativeException) { JMX::MBean.establish_connection :host => "not a valid host" } end def test_establish_connection JConsole::start JMX::MBean.establish_connection end def test_establish_connection_with_custom_port JConsole::start 3001 JMX::MBean.establish_connection :port => 3001 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jmx4r-0.0.1 | test/tc_connection.rb |