-
1. Re: Problems with @BMRule.targetLocation
adinn Jan 5, 2012 10:29 AM (in response to belaban)1 of 1 people found this helpfulHi Bela,
Bela Ban wrote:
I have a problem using targetLocation() in @BMRule on a TestNG test.
The same rule in a script file works.
The test method is:
@BMRule(name="test script",
targetClass="Person",
targetMethod="say",
targetLocation="AT READ name",
action="System.out.println(\"hello before returning\");")
// @BMScript(value="bela", dir="target/test-classes")
. . .This is a known problem. With the current releases of BMUnit the AT is added by the annotation processor so you need to write
. . .
targetLocation="READ name",
. . .
When 2.0.0 is released you will be able to write "AT READ name. Also, you will also be able to write AFTER locations like "AFTER READ name".
-
2. Re: Problems with @BMRule.targetLocation
belaban Jan 5, 2012 10:35 AM (in response to adinn)Got you: https://issues.jboss.org/browse/BYTEMAN-182
thanks,