OSDN Git Service

63aa4861e2b1c323caefa0ce3a292ca317c8b3fb
[stigmata/stigmata-plugins.git] / wsp / src / test / java / jp / sourceforge / stigmata / birthmarks / wsp / LabelOpcodeTest.java
1 package jp.sourceforge.stigmata.birthmarks.wsp;
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 }