Пример #1
0
 @Before
 public void setUp() throws Exception {
   ForgeService forgeService = ForgeFactory.eINSTANCE.createForgeService();
   fixture =
       forgeService.createForge(
           URI.create("http://forge.puppetlabs.com"),
           ForgeTests.getTestOutputFolder("cache", false));
 }
Пример #2
0
 @Test
 public void testCreateForge__URI_File() {
   try {
     assertNotNull(
         fixture.createForge(
             URI.create("http://forge.puppetlabs.com"),
             ForgeTests.getTestOutputFolder("cachefolder", true)));
   } catch (IOException e) {
     fail(e.getMessage());
   }
 }
Пример #3
0
 @Test
 public void testCreateForge__Repository_Cache() {
   try {
     Repository repository = fixture.createRepository(URI.create("http://forge.puppetlabs.com"));
     File cacheFolder = ForgeTests.getTestOutputFolder("cachefolder", true);
     Cache cache = fixture.createCache(cacheFolder, repository);
     assertNotNull(fixture.createForge(repository, cache));
   } catch (IOException e) {
     fail(e.getMessage());
   }
 }
Пример #4
0
 @Test
 public void testCreateForge__URI() {
   assertNotNull(fixture.createForge(URI.create("http://forge.puppetlabs.com")));
 }