@Before public void setUp() throws Exception { ForgeService forgeService = ForgeFactory.eINSTANCE.createForgeService(); fixture = forgeService.createForge( URI.create("http://forge.puppetlabs.com"), ForgeTests.getTestOutputFolder("cache", false)); }
@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()); } }
@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()); } }
@Test public void testCreateForge__URI() { assertNotNull(fixture.createForge(URI.create("http://forge.puppetlabs.com"))); }