use of org.apereo.cas.configuration.model.support.git.services.GitServiceRegistryProperties in project cas by apereo.
the class TypeAwareGitRepositoryRegisteredServiceLocatorTests method verifyOperation.
@Test
public void verifyOperation() throws Exception {
val strategy = new DefaultRegisteredServiceResourceNamingStrategy();
val locator = new TypeAwareGitRepositoryRegisteredServiceLocator(strategy, FileUtils.getTempDirectory(), new GitServiceRegistryProperties().setRootDirectory("sample-root"));
val service = RegisteredServiceTestUtils.getRegisteredService();
val file = locator.determine(service, "json");
assertTrue(file.getCanonicalPath().endsWith("sample-root" + File.separator + service.getFriendlyName() + File.separator + strategy.build(service, "json")));
}
use of org.apereo.cas.configuration.model.support.git.services.GitServiceRegistryProperties in project cas by apereo.
the class DefaultGitRepositoryRegisteredServiceLocatorTests method verifyOperation.
@Test
public void verifyOperation() throws Exception {
val strategy = new DefaultRegisteredServiceResourceNamingStrategy();
val locator = new DefaultGitRepositoryRegisteredServiceLocator(strategy, FileUtils.getTempDirectory(), new GitServiceRegistryProperties().setRootDirectory("sample-root"));
val service = RegisteredServiceTestUtils.getRegisteredService();
val file = locator.determine(service, "json");
assertTrue(file.getCanonicalPath().endsWith("sample-root" + File.separator + strategy.build(service, "json")));
}
Aggregations