ANTS v2.0 API

tests
Class Tester

java.lang.Object
  |
  +--ants.core.Entity
        |
        +--ants.core.Application
              |
              +--tests.Tester
Direct Known Subclasses:
ANEPDemultiplexKeyTester, ANTSRDemultiplexKeyTester, CapsuleTester, LineListTokenizerTest, ProtocolTester

public abstract class Tester
extends Application


Fields inherited from class ants.core.Application
defaults
 
Constructor Summary
Tester()
           
 
Method Summary
static void doTests(Tester unit)
           
 void enterSection(java.lang.String name)
           
 void start()
          Start this Application rolling.
 void test(boolean t)
           
abstract  void testUnit()
           
 
Methods inherited from class ants.core.Application
getDefaultResources, getDefaultTTL, getNode, getNodeAddress, getPort, getPrincipal, receive, send, send, setArgs, setDefaultResources, setDefaultTTL, thisNode, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tester

public Tester()
Method Detail

start

public void start()
Description copied from class: Application
Start this Application rolling. This is invoked once by the Node after it has been initialized.

Note that implementations of start should just set things up. If the application wants to do things like send packets, this function should start a new thread to do that. Creating a GUI and associating callbacks is a good thing to do here.

XXX mostly stuff that could just be done in the no-arg constructor, no?

Overrides:
start in class Application

doTests

public static void doTests(Tester unit)

test

public void test(boolean t)
          throws TestFailedException

enterSection

public void enterSection(java.lang.String name)

testUnit

public abstract void testUnit()
                       throws TestFailedException

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/