Skip to content

Annotations

nimcoh0 edited this page Dec 18, 2023 · 1 revision

Build in Annotations

ApiForTesting

: indicate that this method will be exposed for invoking

attributes :

protocol - can be "RPC' or "JAXRS" (as build in protocols)

@ApiForTesting(protocol = "RPC")

ListenerForTesting

: indicate that this method will be serve as a Listener

attributes :

ListenerType type() default ListenerType.NONE can be "BEFORE" or "AFTER" see listener for more details

@ListenerForTesting(type = ListenerType.BEFORE)
@ListenerForTesting(type = ListenerType.AFTER)

InitializeForTesting

define parameters for the target class inject

attributes :

list of parameter that include type and value  

@InitializeForTesting(value = ClassType.INITIALIZE_EVERY_TIME,parameters = @Parameter(type = "String",value = "helo"))

@InitializeForTesting(value = ClassType.SINGLETON)

@InitializeForTesting(value = ClassType.NONE)

Clone this wiki locally