Example #1
0
        public virtual File Build()
        {
            File file = new File(_directory, "config");

            ServerTestUtils.writeConfigToFile(_config, file);
            return(file);
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public java.io.File createConfigFiles() throws java.io.IOException
        public virtual File CreateConfigFiles()
        {
            File temporaryConfigFile = ServerTestUtils.createTempConfigFile();
            File temporaryFolder     = ServerTestUtils.createTempDir();

            ServerTestUtils.writeConfigToFile(CreateConfiguration(temporaryFolder), temporaryConfigFile);

            return(temporaryConfigFile);
        }