Class Tooling


  • public final class Tooling
    extends Object
    Helper functions for automated tests.
    Author:
    kai
    • Constructor Detail

      • Tooling

        public Tooling()
    • Method Detail

      • compareFiles

        public boolean compareFiles​(File file1,
                                    File file2)
        compare two files if they are equal.
        Parameters:
        file1 - file one
        file2 - file two
        Returns:
        true if equal
      • listProviders

        public void listProviders()
        List all installed crypto providers.
      • createBinaryTestfile

        public void createBinaryTestfile​(File file)
        Create a binary input file with all byte values possible.
        Parameters:
        file - File to create
      • createBinaryTestfile

        public void createBinaryTestfile​(File file,
                                         long length,
                                         byte bValue)
        Create a binary input file with only one byte values used.
        Parameters:
        file - File to create
        length - how many bytes to write
        bValue - the byte to write