OSDN Git Service

fbdeffc1480022a9ba679e50e909662b0d5568ac
[stigmata/stigmata-plugins.git] / opcodes / opcodes-1.0.0 / src / test / java / jp / sourceforge / stigmata / birthmarks / LabelOpcodeTest.java
1 package jp.sourceforge.stigmata.birthmarks;
2
3 /*
4  * $Id$
5  */
6
7 import org.junit.Assert;
8 import org.junit.Before;
9 import org.junit.Test;
10 import org.objectweb.asm.Label;
11
12 /**
13  * 
14  * @author Haruaki Tamada
15  * @version $Revision$
16  */
17 public class LabelOpcodeTest{
18     private LabelOpcode opcode;
19     private Label label;
20
21     @Before
22     public void setup(){
23         label = new Label();
24         opcode = new LabelOpcode(label);
25     }
26
27     @Test
28     public void testBasic(){
29         Assert.assertEquals(Opcode.Category.TARGETER, opcode.getCategory());
30         Assert.assertEquals(-1, opcode.getOpcode());
31         Assert.assertEquals("targeter", opcode.getName());
32         Assert.assertEquals(label, opcode.getLabel());
33     }
34 }