IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6595


Ignore:
Timestamp:
Mar 15, 2006, 12:06:58 PM (20 years ago)
Author:
jhoblitt
Message:

test that ->requset() doesn't accept any params

Location:
trunk/DataStore/t
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/t/05_product.t

    r6584 r6595  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: 05_product.t,v 1.2 2006-03-14 23:24:05 jhoblitt Exp $
     5# $Id: 05_product.t,v 1.3 2006-03-15 22:06:58 jhoblitt Exp $
    66
    77use strict;
     
    1010use lib qw( ./lib ./t );
    1111
    12 use Test::More tests => 21;
     12use Test::More tests => 22;
    1313
    1414=head1 NAME
     
    166166# cleanup HTTP server
    167167kill 9, $pid;
     168
     169eval {
     170    my $dsp = DataStore::Product->new( uri => 'http://example.org/' );
     171
     172    $dsp->request( foo => 1 );
     173};
     174like($@, qr/not listed in the validation options/,
     175    '->request() fails whe passed extra params');
  • trunk/DataStore/t/06_fileset.t

    r6587 r6595  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: 06_fileset.t,v 1.2 2006-03-15 03:18:25 jhoblitt Exp $
     5# $Id: 06_fileset.t,v 1.3 2006-03-15 22:06:58 jhoblitt Exp $
    66
    77use strict;
     
    1010use lib qw( ./lib ./t );
    1111
    12 use Test::More tests => 17;
     12use Test::More tests => 18;
    1313
    1414=head1 NAME
     
    151151# cleanup HTTP server
    152152kill 9, $pid;
     153
     154eval {
     155    my $dsf = DataStore::FileSet->new(
     156        uri         => 'http://example.org/',
     157        fileset     => '12buckelyourshoe',
     158        datetime    => '2042-01-01T00:00:00Z',
     159        type        => 'foo',
     160    );
     161
     162    $dsf->request( foo => 1 );
     163};
     164like($@, qr/not listed in the validation options/,
     165    '->request() fails whe passed extra params');
     166
Note: See TracChangeset for help on using the changeset viewer.