OSDN Git Service

0977418d74fd4dcc615d1787faa5b56aea4993b7
[stigmata/stigmata-plugins.git] / wsp / src / test / java / jp / sourceforge / stigmata / birthmarks / wsp / CurrentDepthTest.java
1 package jp.sourceforge.stigmata.birthmarks.wsp;
2
3 /*
4  * $Id$
5  */
6
7 import jp.sourceforge.stigmata.birthmarks.Opcode;
8
9 import org.junit.Assert;
10 import org.junit.Before;
11 import org.junit.Test;
12
13 /**
14  *
15  * @author Haruaki Tamada
16  * @version $Revision$
17  */
18 public class CurrentDepthTest{
19     private CurrentDepth depth;
20     private WSPOpcode opcode;
21
22     @Before
23     public void setup(){
24         opcode = new WSPOpcode(4, "iconst_1", 0, 1, Opcode.Category.NORMAL);
25         depth = new CurrentDepth(3, opcode);
26     }
27
28     @Test
29     public void testBasic(){
30         Assert.assertEquals(3, depth.getDepth());
31         Assert.assertEquals(opcode, depth.getOpcode());
32     }
33 }