| java.lang.Object org.apache.harmony.auth.tests.support.TestUtils
TestUtils | public class TestUtils (Code) | | Test utility class
|
createJavaPropertiesFile | public static String createJavaPropertiesFile(Properties props) throws IOException(Code) | | Creates security properties file.
The method puts to the file all initial security providers and adds
passed custom properties.
Parameters: props - -security properties to be added to properties file path to created file. throws: IOException - if failed to create the file |
printAsHex | public static void printAsHex(int perLine, String prefix, String delimiter, byte[] data)(Code) | | Prints byte array data as hex to the
System.out in the customizable form.
Parameters: perLine - how many numbers put on single line Parameters: prefix - custom output number prefix Parameters: delimiter - custom output number delimiter Parameters: data - data to be printed |
setSystemProperty | public static void setSystemProperty(String key, String value)(Code) | | Sets system property
Parameters: key - - the name of the system property. Parameters: value - - the value to be set |
|
|