org.abora.gold.nkernel
Class WorksTester

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.fm.support.Thunk
                    |
                    +--org.abora.gold.testing.Tester
                          |
                          +--org.abora.gold.nkernel.WorksTester

public class WorksTester
extends Tester


Field Summary
protected  Connection myConnection
           
protected  java.lang.Character myCR
           
protected  ID myTestID
           
protected static WorksTester TheTester
           
 
Fields inherited from class org.abora.gold.xpp.basic.Heaper
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes
 
Fields inherited from class org.abora.gold.java.AboraHeaper
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag
 
Constructor Summary
WorksTester(Rcvr receiver)
           
 
Method Summary
 void allTestsOn(java.io.PrintWriter oo)
          A regression test is run by calling this method.
static ID clubID(Sequence clubName)
          Looks up the ID of a named Club in the directory maintained by the System Admin Club.
Requires read permission on the directory.
 void compareTestOn(java.io.PrintWriter oo)
          Test the various version comparision operations
 void crossTestOn(java.io.PrintWriter oo)
           
 void dumpWorkOn(java.io.PrintWriter oo, java.lang.String tag, FeWork work)
          Print the state and contents of a Work
 void editionTestOn(java.io.PrintWriter oo)
          Test the simple Edition operations
 void endorseTestOn(java.io.PrintWriter oo)
          Test endorsing and unendorsing Editions and Works
 void globalIDTestOn(java.io.PrintWriter oo)
          Test assigning and retrieving by global IDs
 void historyTestOn(java.io.PrintWriter oo)
           
static IntegerPos integer(IntegerVar val)
           
 void kmTestOn(java.io.PrintWriter oo)
          Test the operation of KeyMasters
 void labelTestOn(java.io.PrintWriter oo)
           
static void linkTimeNonInherited()
           
 void makeEditionTestOn(java.io.PrintWriter oo)
          Try making Editions in a variety of ways
 void ownerTestOn(java.io.PrintWriter oo)
           
 void restartWorksTester(Rcvr rcvr)
           
 void sendSelfTo(Xmtr xmtr)
          do nothing
static Sequence sequence(java.lang.String string)
           
 void sponsorTestOn(java.io.PrintWriter oo)
          Test the sponsoring mechanism
static void staticTimeNonInherited()
          PrServer defineFluid: #ClientServer with: XuPromise emulsion with: [NULL]
static PrimArray string(java.lang.String string)
           
 void transcludersBugTestOn(java.io.PrintWriter oo)
           
 void transclusionsTestOn(java.io.PrintWriter oo)
          Test the transclusions query
 void workTestOn(java.io.PrintWriter oo)
          Try the various operations on Works
 
Methods inherited from class org.abora.gold.testing.Tester
auditionFromMenu, defaultRcString, doLinkTime, execute, fetchTester, getTester, publicClass, runTest, spyTest, suppressInitTimeInherited, tryTest, tryTest
 
Methods inherited from class org.abora.gold.fm.support.Thunk
actualHashForEqual, isEqual
 
Methods inherited from class org.abora.gold.xpp.basic.Heaper
abstractDeclarationFor, abstractTypeFor, addMethodAttributeToInOf, addPackage, addPackageCategory, allClientProtocolOn, argumentTypesFor, arrow, blast, blast, BLAST, cachePromiseNameTable, cachePromiseNameTableIn, canYouBecome, cast, cleanPromiseClasses, cleanupGarbage, clientClassesDo, clientFunctionsOn, clientMethodsOn, clientProtocol, clientProtocolDo, clientProtocolOn, clientProtocolOn, collectibleClasses, compare, compileClientSubclasses, compileConstantPromiseMethods, compileCreateFromRcvr, compileEQ, compileGeneratedClassMethod, compileGeneratedMethod, compileHook, compilePromise, compilePromiseDefaultMethods, compilePromiseFluidDeclarations, compilePromiseHandlers, compilePromiseMethods, compileRequestCreateMsgInArguments, compileRequestEvaluateMsgInReturningArguments, compileRPCSpecialistEvaluateMsgForReturningArguments, compileSendSelfTo, compileSendSelfToSendHook, compileStubbleMethods, compileSubclassStubbleMethods, computeMangle, computePreorder, constantTypeValue, convert, convertCopyDeclarations, convertDeferredDeclarations, convertProxyDeclarations, convertSubclassCopyDeclarations, convertSubclassDeferredDeclarations, convertSubclassProxyDeclarations, copyReferencesToType, create, create, create, create, create, create, create, create, create, create, createRequestClassArguments, definesProxyMethods, delete, deref, destroy, destruct, destructor, enum, enumFlags, equals, exportName, fetchAttribute, fetchPackage, fetchSuperCategory, fileOutClientProtocol, findCategory, findSenderAndReceiverMethods, findTailInto, flushPromiseNameTable, foo, freezeClientClasses, freezeClientProtocol, freezeStProtocol, frozenClasses, garbageCollect, garbageCollectFrom, gcOpportunity, gcOpportunity, generatedCategory, generatePromiseNames, getCategory, getOrMakePackage, getSuperCategory, handlerSignaturesFrom, hash, hashForEqual, hasProxyMethods, info_clientClasses, info_clientSideClasses, info_promiseClasses, info_stProtocol, inGC, initializedClasses, initializingClasses, initPackages, initStringHashSBoxes, inspectPieces, instanceSize, IntegerVar, isByProxy, isConstructed, isDestructed, isEqual, isEqualOrSubclassOf, isGenerated, isIntType, isKindOf, isRawType, isUnlocked, make, makeClassTable, makeFillTable, makeRequestTable, mangle, markChildren, markCount, markInstances, mayBecome, mayBecomeAnySubclassOf, new1, newX, nonCopyVariables, notWorking, pack, packageClasses, packagingCategory, parseExportName, passe, pointerToStaticMember, pointerToStaticMember, pointerToVirtualMember, preorderMax, preorderNumber, printOn, PROBLEM, problems, promiseClass, promiseDefaultValue, promiseName, promiseNameTable, promiseToAbstract, registerPackageCategory, removeGeneratedCode, removeStubbleMethods, removeSubclassGeneratedCode, removeSubclassStubbleMethods, requestProcedure, requestProceduresFrom, returnTypeFor, rootName, scheduleTermination, sendProxyTo, serverNameFor, setGC, signal, signals, smalltalkSelector, stClientProtocol, stubbleSelectorTokenReturnsArguments, subclassNonCopyVariables, takeOop, togglePromiseName, togglePromiseOfParse, unimplemented, unmangle, verifyFreeze, wipeStubble
 
Methods inherited from class org.abora.gold.java.AboraHeaper
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myConnection

protected Connection myConnection

myCR

protected java.lang.Character myCR

myTestID

protected ID myTestID

TheTester

protected static WorksTester TheTester
Constructor Detail

WorksTester

public WorksTester(Rcvr receiver)
Method Detail

allTestsOn

public void allTestsOn(java.io.PrintWriter oo)
Description copied from class: Tester
A regression test is run by calling this method. What the tester writes to 'oo' is
actually written to file *o.txt and compared against an approved reference
file (*r.txt) of what this tester once used to output. If they match exactly,
then the test is passed. Otherwise, someone needs to manually understand why
they're different. The diff is in file *d.txt.
It is strongly recommended (in order to avoid regression errors) that when a
tester is extended to test something new that its output also be extended with
some result of the new test. The extended test will then fail the first time. The
programmer should verify that the reason for failure is exactly that the
tester now additionally outputs the correct results of the new test, in which
case this output should be made into the new reference output and the test run
again.

Overrides:
allTestsOn in class Tester

compareTestOn

public void compareTestOn(java.io.PrintWriter oo)
Test the various version comparision operations


crossTestOn

public void crossTestOn(java.io.PrintWriter oo)

editionTestOn

public void editionTestOn(java.io.PrintWriter oo)
Test the simple Edition operations


endorseTestOn

public void endorseTestOn(java.io.PrintWriter oo)
Test endorsing and unendorsing Editions and Works


globalIDTestOn

public void globalIDTestOn(java.io.PrintWriter oo)
Test assigning and retrieving by global IDs


historyTestOn

public void historyTestOn(java.io.PrintWriter oo)

kmTestOn

public void kmTestOn(java.io.PrintWriter oo)
Test the operation of KeyMasters


labelTestOn

public void labelTestOn(java.io.PrintWriter oo)

makeEditionTestOn

public void makeEditionTestOn(java.io.PrintWriter oo)
Try making Editions in a variety of ways


ownerTestOn

public void ownerTestOn(java.io.PrintWriter oo)

sponsorTestOn

public void sponsorTestOn(java.io.PrintWriter oo)
Test the sponsoring mechanism


transcludersBugTestOn

public void transcludersBugTestOn(java.io.PrintWriter oo)

transclusionsTestOn

public void transclusionsTestOn(java.io.PrintWriter oo)
Test the transclusions query


workTestOn

public void workTestOn(java.io.PrintWriter oo)
Try the various operations on Works


dumpWorkOn

public void dumpWorkOn(java.io.PrintWriter oo,
                       java.lang.String tag,
                       FeWork work)
Print the state and contents of a Work


restartWorksTester

public void restartWorksTester(Rcvr rcvr)

sendSelfTo

public void sendSelfTo(Xmtr xmtr)
Description copied from class: Heaper
do nothing

Overrides:
sendSelfTo in class Heaper

clubID

public static ID clubID(Sequence clubName)
Looks up the ID of a named Club in the directory maintained by the System Admin Club.
Requires read permission on the directory. Blasts if there is no Club with that name.


integer

public static IntegerPos integer(IntegerVar val)

sequence

public static Sequence sequence(java.lang.String string)

string

public static PrimArray string(java.lang.String string)

linkTimeNonInherited

public static void linkTimeNonInherited()

staticTimeNonInherited

public static void staticTimeNonInherited()
PrServer defineFluid: #ClientServer with: XuPromise emulsion with: [NULL]



Translation - Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.