X-Git-Url: https://git.evergreen-ils.org/?p=working%2FNCIPServer.git;a=blobdiff_plain;f=t%2FNCIP_Configuration.t;h=99fda200c1d7d2724082a57a3e1679874edb639b;hp=bba7fce05f287d9476d5e02059c2f3eda017781e;hb=15069fd08e5cf2e0314a40876e625131c4aeccc0;hpb=e56c89621a7560160848c8fb6b51a66f13493f33;ds=sidebyside diff --git a/t/NCIP_Configuration.t b/t/NCIP_Configuration.t index bba7fce..99fda20 100644 --- a/t/NCIP_Configuration.t +++ b/t/NCIP_Configuration.t @@ -17,12 +17,14 @@ use strict; use warnings; +use Sys::Syslog; +use lib 'lib'; -use Test::More tests => 4; # last test to print +use Test::More tests => 5; # last test to print use_ok('NCIP::Configuration'); -ok( my $config = NCIP::Configuration->new('../t/config_sample'), +ok( my $config = NCIP::Configuration->new('t/config_sample'), 'Creating a config object' ); # because the file is called NCIP.xml we now have that namespace @@ -30,3 +32,5 @@ ok( my $server_params = $config->('NCIP.server-params'), 'Get server-params' ); is( $server_params->{'min_servers'}, 1, 'Do we have a minimum of one server' ); +ok ($config->find_service('127.0.0.1','6001','tcp'),'Testing find_service'); +