Class: Nobbie::Wx::ApplicationLauncher

Inherits:
Object
  • Object
show all
Defined in:
lib/nobbie/wx/application_launcher.rb

Overview

:nodoc:

Constant Summary collapse

AUT_NOT_WX_APP =
"application_under_test must be an instance of a Wx::App"

Instance Method Summary collapse

Constructor Details

#initialize(application_under_test) ⇒ ApplicationLauncher

Returns a new instance of ApplicationLauncher.



22
23
24
25
# File 'lib/nobbie/wx/application_launcher.rb', line 22

def initialize(application_under_test)
  @app = application_under_test
  Kernel.raise(AUT_NOT_WX_APP) unless @app.is_a?(Wxruby2::App)
end

Instance Method Details

#runObject



27
28
29
30
31
32
# File 'lib/nobbie/wx/application_launcher.rb', line 27

def run
  start
  set_top_window_for_use_in_operations
  Thread.pass
  stop
end