OSDN Git Service

add test case
[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 org.junit.Assert;
8 import org.junit.Before;
9 import org.junit.Test;
10
11 /**
12  * 
13  * @author Haruaki Tamada
14  * @version $Revision$
15  */
16 public class CurrentDepthTest{
17     private CurrentDepth depth;
18     private Opcode opcode;
19
20     @Before
21     public void setup(){
22         opcode = new Opcode(4, "iconst_1", 0, 1, Opcode.Category.NORMAL);
23         depth = new CurrentDepth(3, opcode);
24     }
25
26     @Test
27     public void testBasic(){
28         Assert.assertEquals(3, depth.getDepth());
29         Assert.assertEquals(opcode, depth.getOpcode());
30     }
31 }