1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
use Test::More;
BEGIN { use_ok( 'UI::Dialog::Screen::Druid' ); }
require_ok( 'UI::Dialog::Screen::Druid' );
# #########################
eval { new UI::Dialog::Screen::Druid(test_mode=>1); };
if ( $@ ) {
diag("Unable to load UI::Dialog::Screen::Druid: ".$@);
done_testing();
} else {
my $obj = UI::Dialog::Screen::Druid->new();
isa_ok( $obj, 'UI::Dialog::Screen::Druid' );
my @methods =
qw( perform new
add_input_step add_password_step
add_menu_step add_yesno_step
);
can_ok( 'UI::Dialog::Screen::Druid', @methods );
done_testing();
}
|