Agora a build dos arquivos jasmin esta integrada ao maven
[JavaDecompiler.git] / src / test / java / br / org / javadecompiler / disassembler / JasminDisassemblerTest.java
blob22f0d5be9284e61828e4938807976f0a22004dbe
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) {
11 super(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));