ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/test/test_Activate.pm
Revision: 1.3
Committed: Fri Oct 20 11:44:17 2000 UTC (24 years, 7 months ago) by williamc
Content type: text/plain
Branch: MAIN
Changes since 1.2: +2 -2 lines
Log Message:
update tests for new returns

File Contents

# User Rev Content
1 williamc 1.2 #
2     # Activate test suite
3     #
4    
5     package ActiveDoc::test::test_Activate;
6     use ActiveDoc::Activate;
7     use Utilities::TestClass;
8     require 5.004;
9    
10     @ISA = ("Utilities::TestClass"); #methods both from the test class
11    
12     sub init {
13     my $self=shift;
14     $self->{testfile}=$self->datadir()."/ActiveDocTest";
15     $self->{verifyfile}=$self->datadir()."/ActiveDocTest-verify";
16     $self->{configarea}=$self->temparea()."/ActiveDoc";
17     $self->{db}=ObjectUtilities::ObjectStore->new(
18     $self->{configarea}."/db");
19     $self->{cache}=URL::URLcache->new($self->{configarea}."/cache");
20     }
21    
22     sub test {
23     my $self=shift;
24     $self->{expectedstring}="";
25    
26     $self->newtest("Initiation test");
27     $self->newobject($self->{configarea});
28     $self->testinterface("verbosity",1);
29    
30     $self->newtest("url test");
31 williamc 1.3 ($file,@rest)=$self->testinterface("get","file:".$self->{testfile});
32 williamc 1.2 $self->verify($self->{verifyfile},$file);
33    
34     $self->newtest("url fail test");
35 williamc 1.3 $self->expect(undef,"");
36 williamc 1.2 $file=$self->testinterface("get","cvs:&module=rubbish");
37     $self->clearexpect();
38    
39     $self->newtest("activatedoc test");
40     $self->testinterface("activatedoc","file:".$self->{testfile});
41     }