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@694: import org.testng.annotations.Test; jaroslav@686: jaroslav@686: /** jaroslav@686: * jaroslav@686: * @author Jaroslav Tulach jaroslav@686: */ jaroslav@694: public class ZipVsJzLibTest { jaroslav@694: @Test public void r() throws IOException { jaroslav@686: InputStream is = getClass().getResourceAsStream("demo.static.calculator-0.3-SNAPSHOT.jar"); jaroslav@694: ZipArchive zip = ZipArchive.createZip(is); jaroslav@694: jaroslav@694: is = getClass().getResourceAsStream("demo.static.calculator-0.3-SNAPSHOT.jar"); jaroslav@694: ZipArchive real = ZipArchive.createReal(is); jaroslav@694: jaroslav@694: real.assertEquals(zip, "Are they the same?"); jaroslav@686: } jaroslav@686: jaroslav@686: }