Uses of Class
com.sun.javatest.util.BackupPolicy
Packages that use BackupPolicy
Package
Description
This package provides facilities for reading, executing
and monitoring tests.
This package contains utility classes provided in support of the Javatest test harness.
-
Uses of BackupPolicy in com.sun.javatest
Fields in com.sun.javatest declared as BackupPolicyModifier and TypeFieldDescriptionprotected BackupPolicy
Script.backupPolicy
A backup policy object that specifies how files should be backed up, if a file is found to exist when a new one of the same name is to be written.Methods in com.sun.javatest that return BackupPolicyModifier and TypeMethodDescriptionHarness.getBackupPolicy()
Get the backup policy object used by this harness, used to determine the policy for backing up files before overwriting them.InterviewParameters.getBackupPolicy()
Get the backup policy to be used when saving configuration files.TestRunner.getBackupPolicy()
Get the backup policy to be used when creating the test result files generated by this test runner.Methods in com.sun.javatest with parameters of type BackupPolicyModifier and TypeMethodDescriptionTestSuite.createScript
(TestDescription td, String[] exclTestCases, TestEnvironment scriptEnv, WorkDirectory workDir, BackupPolicy backupPolicy) Create and initialize a Script that can be used to run a test.void
Script.initBackupPolicy
(BackupPolicy backupPolicy) Initialize the backup policy to be used when creating a test result file in which to store the results of running this test.void
Harness.setBackupPolicy
(BackupPolicy bp) Set the backup policy object to be used by this harness, used to determine the policy for backing up files before overwriting them.void
InterviewParameters.setBackupPolicy
(BackupPolicy backupPolicy) Set the backup policy to be used when saving configuration files.void
TestResult.writeResults
(WorkDirectory workDir, BackupPolicy backupPolicy) Writes the TestResult into a version 2 jtr file. -
Uses of BackupPolicy in com.sun.javatest.util
Methods in com.sun.javatest.util that return BackupPolicyModifier and TypeMethodDescriptionstatic BackupPolicy
BackupPolicy.noBackups()
Get a BackupPolicy object which does no backups for any files.static BackupPolicy
BackupPolicy.simpleBackups
(int n) Get a BackupPolicy object which does a set number of backups for all files.