1 |
williamc |
1.1 |
#
|
2 |
|
|
# Tool test suite
|
3 |
|
|
#
|
4 |
|
|
|
5 |
|
|
package Configuration::test::test_ConfigArea;
|
6 |
|
|
require 5.001;
|
7 |
|
|
use Configuration::ConfigureStore;
|
8 |
|
|
use Configuration::ConfigArea;
|
9 |
|
|
use ActiveDoc::ActiveConfig;
|
10 |
|
|
use ActiveDoc::Application;
|
11 |
|
|
|
12 |
|
|
@ISA = ("ActiveDoc::DocTester"); #methods both from the test class
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
sub init {
|
16 |
|
|
my $self=shift;
|
17 |
|
|
$self->initdoc();
|
18 |
|
|
$self->{testfile}=$self->datadir("")."/ConfigAreaDoc";
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
sub test {
|
22 |
|
|
my $self=shift;
|
23 |
|
|
$self->newtest("Initiation test - file not existing");
|
24 |
|
|
$self->newdoc("file:".$self->{testfile});
|
25 |
|
|
$self->newtest("setup");
|
26 |
|
|
$self->testinterface("setup");
|
27 |
williamc |
1.3 |
$self->newtest("simple persistence testing");
|
28 |
|
|
$location=$self->temparea("")."/".$self->newfilename();
|
29 |
|
|
$self->testinterface("store", $location);
|
30 |
williamc |
1.2 |
undef $self->{object};
|
31 |
williamc |
1.3 |
$self->newobject($self->docstore());
|
32 |
williamc |
1.1 |
$self->testinterface("restore",$location);
|
33 |
|
|
$self->expect("feature1","feature2");
|
34 |
williamc |
1.2 |
$self->testinterface("configitem");
|
35 |
williamc |
1.1 |
$self->clearexpect();
|
36 |
|
|
}
|