Annotation Type CleanUp


  • @Deprecated
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface CleanUp
    Deprecated.
    use After instead.
    The annotation is used to mark static method which are run after the simulation is completed for each user. It allows test developers to clean up the resources allocated in prepare method - or in scenarios after the simulation run e.g create some resources on server.

    A static clean-up method is useful to release resources created in prepare step - or scenarios in simulations. Test developers might choose to create some resources in prepare method so that scenarios can access the same resources without having need of creating them, repeatedly. And the clean-up method is supposed to clean up allocated resources at the beginning of the simulation.

    Clean-up method must be public and static:

    Since:
    1.1.0
    See Also:
    Prepare, SimulationSession