Sha256: 65e7aa71f407c603c8733da7c87e2341cf3f97b4943ce7a4bcca20cd5b1808cd

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

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

# Test for timer.rb
class TestTimer < Test::Unit::TestCase
  include Rubeus::Swing

  # setup method
  def setup
  end

  # normal pattern
  def test_normal
    count = 0
    t = Timer.new(100) do
      count += 1
    end
    t.start

    sleep(1)

    assert(count > 1)

    t.stop
  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_timer.rb
rubeus-0.0.8-java test/rubeus/extensions/javax/swing/test_timer.rb
rubeus-0.0.7-java test/rubeus/extensions/javax/swing/test_timer.rb