ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/DocTester.pm
Revision: 1.1
Committed: Thu Jan 20 18:18:45 2000 UTC (25 years, 3 months ago) by williamc
Content type: text/plain
Branch: MAIN
Log Message:
HIP additions

File Contents

# Content
1 #
2 # DocTester.pm
3 #
4 # Originally Written by Christopher Williams
5 #
6 # Description
7 # -----------
8 # Extension of TestUtilities for doc testing
9 #
10 # Interface
11 # ---------
12 # new() : A new DocTester object
13
14 package ActiveDoc::DocTester;
15 require 5.004;
16 use ActiveDoc::Application;
17 use ActiveDoc::Query;
18 use Utilities::TestClass;
19
20 @ISA=qw(Utilities::TestClass);
21
22 sub initdoc {
23 my $self=shift;
24 # make a new tmp store
25 if ( @_ ) {
26 $self->{docstore}=shift;
27 }
28 else {
29 $self->{storedir}=$self->temparea()."/DocTester";
30 $self->{docstore}=ActiveDoc::ActiveConfig->new($self->{storedir});
31 }
32 $self->{appl}=ActiveDoc::Application->new($self->{docstore});
33 $self->{appl}->options(ActiveDoc::Query->new());
34 }
35
36 sub newdoc {
37 my $self=shift;
38 $self->{object}=$self->{appl}->activatedoc(@_);
39 }
40
41 sub options {
42 my $self=shift;
43 $self->{appl}->options(@_);
44 }
45
46 sub userinterface {
47 my $self=shift;
48 $self->{appl}->userinterface(@_);
49 }