1 30 package org.objectweb.asm; 31 32 import junit.framework.TestSuite; 33 34 39 public class ClassWriterTest extends AbstractTest { 40 41 public static TestSuite suite() throws Exception { 42 return new ClassWriterTest().getSuite(); 43 } 44 45 public void test() throws Exception { 46 ClassReader cr = new ClassReader(is); 47 ClassWriter cw = new ClassWriter(false, true); 48 cr.accept(cw, false); 49 assertEquals(cr, new ClassReader(cw.toByteArray())); 50 } 51 } 52 | Popular Tags |