OSDN Git Service

ec60f360644dd047f21b1d03c635a444d41a1196
[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.plugins.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 Opcode opcode;
21
22     @Before
23     public void setup(){
24         opcode = new Opcode(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 }