Class org.as2lib.test.unit.XmlSocketTestListener

Implemented Interfaces

ProcessStartListener ProcessPauseListener ProcessResumeListener ProcessUpdateListener ProcessErrorListener ProcessFinishListener

Description

XmlSocketTestListener writes-out received test execution information with the xml socket.

The written-out information is formatted as follows:

This format is also expected by the Unit Test Task of As2ant, so you may easily use this test listener and the task in conjunction.

Method Index

new XmlSocketTestListener()
onProcessError(), onProcessFinish(), onProcessPause(), onProcessResume(), onProcessStart(), onProcessUpdate()

Constructor Detail

XmlSocketTestListener

public function XmlSocketTestListener(host:String, port:Number)

Constructs a new XmlSocketTestListener instance.

If host is not specified, "localhost" is used. If port is not specified, 3212 is used.

Parameters

hostthe host of the connection to open
portthe port of the connection to open

Method Detail

onProcessStart

public function onProcessStart(process:Process):Void

onProcessUpdate

public function onProcessUpdate(process:Process):Void

onProcessPause

public function onProcessPause(process:Process):Void

onProcessResume

public function onProcessResume(process:Process):Void

onProcessFinish

public function onProcessFinish(process:Process):Void

onProcessError

public function onProcessError(process:Process, error):Boolean