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);
}