コード例 #1
0
ファイル: ForgeTest.java プロジェクト: 8carroll/geppetto
 @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")));
 }