Lines Matching defs:lv
69 final LocalVariableGen lv = mg.getLocalVariables()[1];
70 assertEquals("variable name", "a", lv.getName());
71 final InstructionHandle start = lv.getStart();
72 final InstructionHandle end = lv.getEnd();
75 assertTrue("scope start not targeted by the local variable", Arrays.asList(start.getTargeters()).contains(lv));
76 assertTrue("scope end not targeted by the local variable", Arrays.asList(end.getTargeters()).contains(lv));
79 mg.removeLocalVariable(lv);
81 assertFalse("scope start still targeted by the removed variable", Arrays.asList(start.getTargeters()).contains(lv));
82 assertFalse("scope end still targeted by the removed variable", Arrays.asList(end.getTargeters()).contains(lv));
83 assertNull("scope start", lv.getStart());
84 assertNull("scope end", lv.getEnd());
90 final LocalVariableGen lv = mg.getLocalVariables()[1];
91 assertEquals("variable name", "a", lv.getName());
92 final InstructionHandle start = lv.getStart();
93 final InstructionHandle end = lv.getEnd();
96 assertTrue("scope start not targeted by the local variable", Arrays.asList(start.getTargeters()).contains(lv));
97 assertTrue("scope end not targeted by the local variable", Arrays.asList(end.getTargeters()).contains(lv));
102 assertFalse("scope start still targeted by the removed variable", Arrays.asList(start.getTargeters()).contains(lv));
103 assertFalse("scope end still targeted by the removed variable", Arrays.asList(end.getTargeters()).contains(lv));
104 assertNull("scope start", lv.getStart());
105 assertNull("scope end", lv.getEnd());