Package de.idos.updates.configuration

Examples of de.idos.updates.configuration.Configurator


        new File(repository, "1.0.1").mkdir();
    }

    @Given("^a file called 'update.properties' in the working directory$")
    public void a_file_called_update_properties_in_the_working_directory() throws Throwable {
        Configurator configurator = createBaseProperties();
        configurator.setRepositoryLocationForLatestVersionTo(Repo_From_WorkingDir);
        configurator.saveConfiguration();
        File repository = new File(Repo_From_WorkingDir, FilesystemRepository.AVAILABLE_VERSIONS);
        repository.mkdirs();
        new File(repository, "1.0.2").mkdir();
    }
View Full Code Here


    @Given("^the file specifies a fixed version to be loaded$")
    public void the_file_specifies_a_fixed_version_to_be_loaded() throws Throwable {
        Properties properties = new Properties();
        properties.load(new FileInputStream(workingDirConfig));
        Configurator configurator = new Configurator(properties);
        configurator.toggleFixedVersion();
        configurator.changeFixedVersionLocationTo(Fixed_Version_Location);
        configurator.saveConfiguration();
    }
View Full Code Here

        deleteQuietly(new File(Repo_From_Classpath));
        deleteQuietly(new File(Fixed_Version_Location));
    }

    private Configurator createBaseProperties() {
        Configurator configurator = new Configurator();
        configurator.setApplicationNameTo("integrationtest");
        configurator.toggleLatestVersion();
        configurator.toggleFileRepositoryForLatestVersion();
        return configurator;
    }
View Full Code Here

TOP

Related Classes of de.idos.updates.configuration.Configurator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.