root/honeyclient/tags/exp/UP2-kindlund-filesystem/t/honeyclient_manager.t

Revision 131, 2.2 kB (checked in by kindlund, 2 years ago)

sc: merging branch using tags svn+ssh://kindlund@www.honeyclient.org/home/svn/honeyclient/honeyclient/tags/bug/PRE-42 and svn+ssh://kindlund@www.honeyclient.org/home/svn/honeyclient/honeyclient/tags/bug/POST-42

Line 
1 #!/usr/bin/perl -w
2
3 use strict;
4 use Test::More 'no_plan';
5 $| = 1;
6
7
8
9 # =begin testing
10 {
11 # Make sure the module loads properly, with the exportable
12 # functions shared.
13 BEGIN { use_ok('HoneyClient::Manager', qw(init destroy)) or diag("Can't load HoneyClient::Manager package.  Check to make sure the package library is correctly listed within the path."); }
14 require_ok('HoneyClient::Manager');
15 can_ok('HoneyClient::Manager', 'init');
16 can_ok('HoneyClient::Manager', 'destroy');
17 use HoneyClient::Manager qw(init destroy);
18
19 # Make sure HoneyClient::Util::SOAP loads.
20 BEGIN { use_ok('HoneyClient::Util::SOAP', qw(getServerHandle getClientHandle)) or diag("Can't load HoneyClient::Util::SOAP package.  Check to make sure the package library is correctly listed within the path."); }
21 require_ok('HoneyClient::Util::SOAP');
22 can_ok('HoneyClient::Util::SOAP', 'getServerHandle');
23 can_ok('HoneyClient::Util::SOAP', 'getClientHandle');
24 use HoneyClient::Util::SOAP qw(getServerHandle getClientHandle);
25
26 # Make sure HoneyClient::Util::Config loads.
27 BEGIN { use_ok('HoneyClient::Util::Config', qw(getVar)) or diag("Can't load HoneyClient::Util::Config package.  Check to make sure the package library is correctly listed within the path."); }
28 require_ok('HoneyClient::Util::Config');
29 can_ok('HoneyClient::Util::Config', 'getVar');
30 use HoneyClient::Util::Config qw(getVar);
31
32 # Make sure Storable loads.
33 BEGIN { use_ok('Storable', qw(nfreeze thaw)) or diag("Can't load Storable package.  Check to make sure the package library is correctly listed within the path."); }
34 require_ok('Storable');
35 can_ok('Storable', 'nfreeze');
36 can_ok('Storable', 'thaw');
37 use Storable qw(nfreeze thaw);
38
39 # Make sure MIME::Base64 loads.
40 BEGIN { use_ok('MIME::Base64', qw(encode_base64 decode_base64)) or diag("Can't load MIME::Base64 package.  Check to make sure the package library is correctly listed within the path."); }
41 require_ok('MIME::Base64');
42 can_ok('MIME::Base64', 'encode_base64');
43 can_ok('MIME::Base64', 'decode_base64');
44 use MIME::Base64 qw(encode_base64 decode_base64);
45 }
46
47
48
49 # =begin testing
50 {
51 # XXX: Test init() method.
52 }
53
54
55
56 # =begin testing
57 {
58 # XXX: Test destroy() method.
59
60 # TODO: delete this.
61 #exit;
62 }
63
64
65
66 # =begin testing
67 {
68 # XXX: Fill this in.
69 }
70
71
72
73
74 1;
Note: See TracBrowser for help on using the browser.