CatalystX-ExtJS-REST
view release on metacpan or search on metacpan
benchmark/rest.pl view on Meta::CPAN
#
# The (three-clause) BSD License
#
use Test::More;
use Benchmark qw(:all);
use strict;
use warnings;
BEGIN { $ENV{CATALYST_DEBUG} = 0; $ENV{DBIC_TRACE} = 0;};
use HTTP::Request::Common;
use JSON;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header('Accept' => 'application/json');
t/direct/api.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON::XS qw(decode_json);
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header( 'Content-type' => 'application/json' );
my $api = {
t/direct/rest.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON::XS;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
my $tid = 1;
ok(
t/direct/router.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON::XS;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
my $tid = 1;
ok(
t/rest/exception.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header('Accept' => 'application/json');
t/rest/findordefault.t view on Meta::CPAN
use Test::More tests => 5;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header('Accept' => 'application/json');
t/rest/for_browser.t view on Meta::CPAN
use Test::More tests => 5;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header('Accept' => 'application/json');
t/rest/noforms.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use lib qw(t/lib);
use JSON::XS;
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header('Accept' => 'application/json');
t/rest/skip_end.t view on Meta::CPAN
use Test::More tests => 4;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
my $res = $mech->get('/skipend/form/edit_record');
is($res->header('status'), 200, 'status ok');
t/rest/user.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use JSON;
use lib qw(t/lib);
use Test::WWW::Mechanize::Catalyst 'MyApp';
my $mech = Test::WWW::Mechanize::Catalyst->new();
$mech->add_header('Accept' => 'application/json');
t/rest/users.t view on Meta::CPAN
use Test::More;
use strict;
use warnings;
use HTTP::Request::Common;
use File::Spec;
use JSON;
use lib qw(t/lib);
use TestSchema;
use MyApp;
my $schema = MyApp->model('DBIC')->schema;
( run in 0.622 second using v1.01-cache-2.11-cpan-de7293f3b23 )