Package com.puppetlabs.geppetto.forge.v2.service

Examples of com.puppetlabs.geppetto.forge.v2.service.ModuleService.create()


    ModuleTemplate template = new ModuleTemplate();
    template.setOwner(TEST_USER);
    template.setName(TEST_MODULE);
    template.setDescription("A Dummy Test Module");
    Module newModule = service.create(template);
    assertNotNull("Null Module", newModule);
  }
}
View Full Code Here


public class ReleaseTestCreate extends ForgeAPITestBase {
  @Test
  public void testCreate() throws IOException {
    ReleaseService service = getTestUserForge().createReleaseService();
    byte[] releaseFile = TestDataProvider.getTestData(TEST_GZIPPED_RELEASE);
    Release newRelease = service.create(
      TEST_USER, TEST_MODULE, "Some notes about this release", new ByteArrayInputStream(releaseFile),
      releaseFile.length);
    assertNotNull("Null Release", newRelease);
    assertEquals("Incorrect release version", newRelease.getVersion(), TEST_RELEASE_VERSION);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.