public class ReleaseTests extends ForgeAPITestBase {
@Test
public void testDownloadRelease() throws IOException {
ReleaseService service = getTestUserForge().createReleaseService();
ByteArrayOutputStream content = new ByteArrayOutputStream();
service.download(TEST_USER, TEST_MODULE, TEST_RELEASE_VERSION, content);
assertEquals(
"Wrong release content size", content.size(), TestDataProvider.getTestData(TEST_GZIPPED_RELEASE).length);
}
/* Disabled since it's not really used and puts a hard strain on the server