Search in sources :

Example 1 with FileBasedRepositoryConfiguration

use of org.eclipse.winery.repository.configuration.FileBasedRepositoryConfiguration in project winery by eclipse.

the class EnvironmentTest method environmentProvidesDataFromMinimalWineryProperties.

@Test
public void environmentProvidesDataFromMinimalWineryProperties() throws Exception {
    final Optional<FileBasedRepositoryConfiguration> filebasedRepositoryConfiguration = Environment.getFilebasedRepositoryConfiguration();
    Assert.assertTrue(filebasedRepositoryConfiguration.isPresent());
    final Path repositoryPath = filebasedRepositoryConfiguration.get().getRepositoryPath().get();
    Assert.assertEquals(Paths.get("/tmp/winery-repository"), repositoryPath);
}
Also used : Path(java.nio.file.Path) FileBasedRepositoryConfiguration(org.eclipse.winery.repository.configuration.FileBasedRepositoryConfiguration) Test(org.junit.Test)

Aggregations

Path (java.nio.file.Path)1 FileBasedRepositoryConfiguration (org.eclipse.winery.repository.configuration.FileBasedRepositoryConfiguration)1 Test (org.junit.Test)1