1 package jp.sourceforge.stigmata.birthmarks.wsp;
7 import jp.sourceforge.stigmata.birthmarks.Opcode;
9 import org.junit.Assert;
10 import org.junit.Before;
11 import org.junit.Test;
15 * @author Haruaki Tamada
18 public class CurrentDepthTest{
19 private CurrentDepth depth;
20 private WSPOpcode opcode;
24 opcode = new WSPOpcode(4, "iconst_1", 0, 1, Opcode.Category.NORMAL);
25 depth = new CurrentDepth(3, opcode);
29 public void testBasic(){
30 Assert.assertEquals(3, depth.getDepth());
31 Assert.assertEquals(opcode, depth.getOpcode());