org.eso.ias.supervisor.test

Members list

Type members

Classlikes

class CommandManagerMock(id: String) extends CommandManager

Attributes

Companion
object
Supertypes
class CommandManager
class Object
trait Matchable
class Any

Companion object

Companion object

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object DasuMock

Companion object

Companion object

The companion provides the factory method used by the Supervisor to build a DASU.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
DasuMock.type
class DasuMock(dasuIdentifier: Identifier, dasuDao: DasuDao, outputPublisher: OutputPublisher, inputSubscriber: InputSubscriber) extends Dasu

A mockup of the DASUs to run in the Supervisor without the complexity of DASUs and ASCEs

A mockup of the DASUs to run in the Supervisor without the complexity of DASUs and ASCEs

Value parameters

dasuDao

the DASU configuration

inputSubscriber

the subscriber getting events to be processed

outputPublisher

the publisher to send the output

Attributes

Companion
object
Supertypes
class Dasu
class Object
trait Matchable
class Any
class SupervisorTest extends AnyFlatSpec

Attributes

Supertypes
class AnyFlatSpec
trait AnyFlatSpecLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait CanVerb
trait MustVerb
trait ShouldVerb
trait TestRegistration
trait TestSuite
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
class SupervisorWithTemplatesTest extends AnyFlatSpec

Attributes

Supertypes
class AnyFlatSpec
trait AnyFlatSpecLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait CanVerb
trait MustVerb
trait ShouldVerb
trait TestRegistration
trait TestSuite
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
class TemplatedInputTest extends AnyFlatSpec

This test checks if the the TF running in a templated ASCE is able to get the inputs by their IDs by calling getValue.

This test checks if the the TF running in a templated ASCE is able to get the inputs by their IDs by calling getValue.

It instantiates a templated DASU with one ASCE that has 2 inputs of type Long plus 2 inputs of type alarm. The TF simes the values of the longs plus 2 and 1 for the alarms. One input is from a non templated input, other one one is templated annd the alarms are templated input instances. The TF gets the values of the inputs by calling getEval and not directly accessing the map. getEval must recognize the templated and not templated parameters. For templated parameters, getValue must take into account the instance of the DASU/ASCE and the instance of templated inputs instances.

The test instantiates the DASU with the ASCE and send the inputs. Finally, it checks the output.

The test, instantiates a real DASU and ASCE i.e. no mock used here.

The configuration is read from test/CDB: Supervisor: SupervisorToTestInputs Template: TemplToTestInputs DASU: DasuToTestInputs ASCE: AsceToTestInputs Inputs: Templated: TemplatedId (Long) Non Templated: NonTemplatedId (Long) Output: TemplatedOutId (Long)

Attributes

Supertypes
class AnyFlatSpec
trait AnyFlatSpecLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait CanVerb
trait MustVerb
trait ShouldVerb
trait TestRegistration
trait TestSuite
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all