jaroslav@686: /** jaroslav@686: * Back 2 Browser Bytecode Translator jaroslav@686: * Copyright (C) 2012 Jaroslav Tulach jaroslav@686: * jaroslav@686: * This program is free software: you can redistribute it and/or modify jaroslav@686: * it under the terms of the GNU General Public License as published by jaroslav@686: * the Free Software Foundation, version 2 of the License. jaroslav@686: * jaroslav@686: * This program is distributed in the hope that it will be useful, jaroslav@686: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@686: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@686: * GNU General Public License for more details. jaroslav@686: * jaroslav@686: * You should have received a copy of the GNU General Public License jaroslav@686: * along with this program. Look for COPYING file in the top folder. jaroslav@686: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@686: */ jaroslav@686: package org.apidesign.bck2brwsr.compact.tck; jaroslav@686: jaroslav@686: import java.io.IOException; jaroslav@686: import java.io.InputStream; jaroslav@686: import org.apidesign.bck2brwsr.vmtest.Compare; jaroslav@686: import org.apidesign.bck2brwsr.vmtest.VMTest; jaroslav@686: import org.testng.annotations.Factory; jaroslav@686: jaroslav@686: /** jaroslav@686: * jaroslav@686: * @author Jaroslav Tulach jaroslav@686: */ jaroslav@686: public class ZipCompatibilityTest { jaroslav@686: @Compare jaroslav@686: public String testDemoStaticCalculator() throws IOException { jaroslav@686: InputStream is = getClass().getResourceAsStream("demo.static.calculator-0.3-SNAPSHOT.jar"); jaroslav@694: ZipArchive zip = ZipArchive.createZip(is); jaroslav@686: return zip.toString(); jaroslav@686: } jaroslav@686: jaroslav@686: @Factory jaroslav@686: public static Object[] create() { jaroslav@686: return VMTest.create(ZipCompatibilityTest.class); jaroslav@686: } jaroslav@686: }