1 package br
.org
.javadecompiler
.disassembler
;
3 import br
.org
.javadecompiler
.classfile
.JavaClass
;
4 import br
.org
.javadecompiler
.decoder
.Decoder
;
5 import br
.org
.javadecompiler
.decoder
.DecoderTest
;
6 import br
.org
.javadecompiler
.reader
.DefaultClassReader
;
7 import junit
.framework
.TestCase
;
9 public class JasminDisassemblerTest
extends TestCase
{
10 public JasminDisassemblerTest(String testName
) {
14 public void testDisassembleClass() throws Exception
{
15 JavaClass clazz
= DecoderTest
.decodeClass(this.getClass());
16 JasminDisassembler disassembler
= new JasminDisassembler();
17 System
.out
.println(disassembler
.disassembleClass(clazz
));
20 public void testDisassembleClassTestFields() throws Exception
{
21 JavaClass clazz
= Decoder
.decodeClass(DefaultClassReader
.getFromInputStream(getClass().getResourceAsStream("/classes/TestFields.class")));
22 JasminDisassembler disassembler
= new JasminDisassembler();
23 System
.out
.println(disassembler
.disassembleClass(clazz
));