Пример #1
0
 @Test
 public void testCreateCache__File_Repository() {
   try {
     Repository repository = fixture.createRepository(URI.create("http://forge.puppetlabs.com"));
     File cacheFolder = ForgeTests.getTestOutputFolder("cachefolder", true);
     assertNotNull(fixture.createCache(cacheFolder, repository));
   } catch (IOException e) {
     fail(e.getMessage());
   }
 }
Пример #2
0
 @Test
 public void testCreateRepository__URI() {
   assertNotNull(fixture.createRepository(URI.create("http://forge.puppetlabs.com")));
 }