org.rhq.helpers.perftest.support.testng
Annotation Type DatabaseState


@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface DatabaseState

An annotation to associate a test method with a required state of the database. The annotation can be given at class or method level, where a method level annotation overrides a class level one.

Author:
Lukas Krejci

Required Element Summary
 String dbVersion
          The version of the RHQ database the export file is generated from.
 String url
          The location of the database state export file.
 
Optional Element Summary
 FileFormat format
          The format of the export file (defaults to zipped xml).
 DatabaseStateStorage storage
          Where is the export file accessible from (defaults to DatabaseStateStorage.CLASSLOADER).
 

Element Detail

url

public abstract String url
The location of the database state export file.


dbVersion

public abstract String dbVersion
The version of the RHQ database the export file is generated from. Before the data from the export file are imported into the database, the database is freshly created and upgraded to this version. After that, the export file is imported to it and the database is then upgraded to the latest version.

storage

public abstract DatabaseStateStorage storage
Where is the export file accessible from (defaults to DatabaseStateStorage.CLASSLOADER).

Default:
org.rhq.helpers.perftest.support.testng.DatabaseStateStorage.CLASSLOADER

format

public abstract FileFormat format
The format of the export file (defaults to zipped xml).

Default:
org.rhq.helpers.perftest.support.FileFormat.ZIPPED_XML


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.