2 #===============================================================================
4 # FILE: NCIP_Configuration.t
11 # AUTHOR: Chris Cormack (rangi), chrisc@catalyst.net.nz
12 # ORGANIZATION: Koha Development Team
14 # CREATED: 28/08/13 10:35:44
16 #===============================================================================
23 use Test::More tests => 5; # last test to print
25 use_ok('NCIP::Configuration');
27 ok( my $config = NCIP::Configuration->new('t/config_sample'),
28 'Creating a config object' );
30 # because the file is called NCIP.xml we now have that namespace
31 ok( my $server_params = $config->('NCIP.server-params'), 'Get server-params' );
33 is( $server_params->{'min_servers'}, 1, 'Do we have a minimum of one server' );
35 ok ($config->find_service('127.0.0.1','6001','tcp'),'Testing find_service');