Group
Extension

Matches 10

RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/11formatters/02json.t ( view source; MetaCPAN )
json' );
isnt( $json, '' );
isnt( $json, undef );

eval {
($type, $json ) = RDF::Server::Formatter::JSON -> category( );
};

is( $@, '', 'category ran' );
is( $type, 'application/json' );
isnt( $json,
son' );
isnt( $json, '' );
isnt( $json, undef );

eval {
($type, $json ) = RDF::Server::Formatter::JSON -> workspace( );
};

is( $@, '', 'workspace ran' );
is( $type, 'application/json' );
isnt( $json
, '' );
isnt( $json, undef );

eval {
($type, $json ) = RDF::Server::Formatter::JSON -> service( );
};

is( $@, '', 'service ran' );
is( $type, 'application/json' );
isnt( $json, '' );
isnt( $json, un
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/20embedded_rest_atom/06remove_resource.t ( view source; MetaCPAN )
0) unless $response -> is_success;

    is( $response -> code, 201, 'HTTP CREATED status' );

    isnt( $response -> header('Location'), '', 'Location returned' );

    if( $has_xml_xpath ) {
        
          isnt( scalar(@{ [ $doc -> findnodes($path) ] }), $counts -> {$path}, "count($path) != $counts->{$path}");
        }
        foreach my $path ( sort keys %$paths ) {
            isnt( $doc ->
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/05exception.t ( view source; MetaCPAN )
ion -> throw( 
       status => 401,
       content => 'Access forbidden!'
   );
};

my $e = $@;

isnt( $e, undef, 'we have an exception');

isa_ok( $e, 'RDF::Server::Exception' );

is( $e -> status, 
content, 'Access forbidden!' );

eval {
   throw RDF::Server::Exception::Forbidden;
};

$e = $@;

isnt( $e, undef, 'we have an exception');

isa_ok( $e, 'RDF::Server::Exception::Forbidden' );

is( $e 
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/50embedded_rest_rdf/03change_rdf.t ( view source; MetaCPAN )
nless not not eval "require JSON::Any";

    $empty_json = $server -> fetch( "/foo/.json" );

    isnt( $empty_json, '' );

    is( $empty_json, '{}' );
}

    $loaded_doc = $server -> update( "/foo/"
less not not eval "require JSON::Any";

    $loaded_json = $server -> fetch( "/foo/.json" );

    isnt( $loaded_json, $empty_json );
}

like( $loaded_doc, qr{Albuquerque International Airport}, 'Docum
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/20embedded_rest_atom/01build_server.t ( view source; MetaCPAN )
tic::Atom';

    render xml => 'Atom';

    eval {
        render foo => 'Foo';
    };

    main::isnt( $@, '', 'Bad formatter package causes an error' );
};

$e = $@;
is( $e, '', 'No error creating t
     handler => [ collaboration => {
            title => 'title'
        }]
    );
};

$e = $@;

isnt( $e, '' );
like( $e, qr{^Unknown Atom \(.*?\) document type: collaboration}, "Got the right kind 
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/20embedded_rest_atom/04create_resource.t ( view source; MetaCPAN )
', 2 unless $response -> is_success;

   is( $response -> code, 201, 'HTTP CREATED status' );

   isnt( $response -> header('Location'), '', 'Location returned' );

   $returned_content = $response ->
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/11formatters/03atom.t ( view source; MetaCPAN )
     id => "foo-id",
       link => '/some/url',
       entries => $model -> resources
    );

#    diag $r -> fetch;

#    diag $xml;

    isnt( $xml, '' );
    is($type, 'application/atom+xml' );
}
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/20embedded_rest_atom/05update_resource.t ( view source; MetaCPAN )
', 1 unless $response -> is_success;

   is( $response -> code, 201, 'HTTP CREATED status' );

   isnt( $response -> header('Location'), '', 'Location returned' );
}

$returned_content = $server -> up
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/50embedded_rest_rdf/02load_rdf.t ( view source; MetaCPAN )
('t/data/AirportCodes.daml') -> slurp( chomp => 1 )));

my $new_doc = $server -> fetch('/foo/');

isnt( $new_doc, $empty_doc, "Loaded doc isn't empty" );
is($new_doc, $loaded_doc, "Loaded doc and new 
RDF-Server ( J/JS/JSMITH/RDF-Server-0.08.tar.gz, JSMITH, 2008; MetaCPAN )
RDF-Server/t/08build_server.t ( view source; MetaCPAN )
 = 0;
my $bad_render_test = <<'eoCODE';
    eval {
        render foo => 'Foo';
    };

    main::isnt( $@, '', 'Bad formatter package causes an error' );
eoCODE

foreach my $protocol (@protocols) {
 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.