view _test/Test/Web/Application.pm @ 62:c64bd1bf727d

Web application Page query handler
author wizard
date Fri, 12 Mar 2010 16:23:46 +0300
parents 8d0ae27d15c1
children 76b878ad6596
line wrap: on
line source

package Test::Web::Application::Instance;
package Test::Web::Application;
use strict;
use base qw(IMPL::Test::Unit);

use IMPL::Test qw(test failed);
require IMPL::Web::Application;

__PACKAGE__->PassThroughArgs;

sub CTOR {
	# simulate CGI environment
}

test SpawnApp => sub {
	my $instance = spawn Test::Web::Application::Instance('Resources/app.xml');
	
	return 1;
};

test ActivateOnDemand => sub {
	my $instance = spawn Test::Web::Application::Instance('Resources/app.xml');
	
	my $ds = $instance->dataSource;
	
	return 1;
};

test SaveXml => sub {
	my $instance = spawn Test::Web::Application::Instance('Resources/app.xml');
	
	warn $instance->xml;	
};

package Test::Web::Application::Instance;
use base qw(IMPL::Web::Application);

__PACKAGE__->PassThroughArgs;

use IMPL::Class::Property;

BEGIN {
	public property name => prop_all;
	public property options => prop_all;
	public property dataSource => prop_all;
	public property securityMod => prop_all;
}


1;