ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/test/test_Activate.pm
Revision: 1.6
Committed: Wed Aug 17 11:03:28 2005 UTC (19 years, 9 months ago) by sashby
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +0 -0 lines
State: FILE REMOVED
Log Message:
Removed obsolete test packages and test data.

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 williamc 1.5 $self->{testcvs}="cvs://cmscvs.cern.ch/cvs_server/repositories/SCRAM?auth=pserver&module=SCRAM/src/ActiveDoc/test/testdata/SimpleDocTest&passkey=AA_:yZZ3e&user=anonymous&module=test";
18 williamc 1.2 $self->{db}=ObjectUtilities::ObjectStore->new(
19     $self->{configarea}."/db");
20     $self->{cache}=URL::URLcache->new($self->{configarea}."/cache");
21     }
22    
23     sub test {
24     my $self=shift;
25     $self->{expectedstring}="";
26    
27     $self->newtest("Initiation test");
28     $self->newobject($self->{configarea});
29     $self->testinterface("verbosity",1);
30    
31     $self->newtest("url test");
32 williamc 1.3 ($file,@rest)=$self->testinterface("get","file:".$self->{testfile});
33 williamc 1.2 $self->verify($self->{verifyfile},$file);
34    
35     $self->newtest("url fail test");
36 williamc 1.4 $self->expect(undef,"Failed to get cvs:&module=rubbish");
37 williamc 1.2 $file=$self->testinterface("get","cvs:&module=rubbish");
38     $self->clearexpect();
39 williamc 1.5
40     $self->newtest("cvs url test");
41     ($file,@rest)=$self->testinterface("get",$self->{testcvs});
42    
43 williamc 1.2
44     $self->newtest("activatedoc test");
45     $self->testinterface("activatedoc","file:".$self->{testfile});
46     }