cbeust/testng — Issue #141: regular expression in "dependsOnMethods" not work
Author: missedone
Created: 2011-12-04 04:57:19+00:00
State: open

hi, cbeust

I read the user guide
>Both dependsOnGroups and dependsOnMethods accept regular expressions as parameters.

so i tried to use regular expression in "dependsOnMethods", for example:
```java

@Test
public void testMethod1() {...};

@Test
public void testMethod2() {...};

@Test (dependsOnMethods="test.*")
public void testMethod3() {...};
```

but i got an error below:

org.testng.TestNGException:
example.testMethod3() depends on nonexistent method **test.***
at org.testng.internal.MethodHelper.findDependedUponMethods(MethodHelper.java:98)

though the workaround is quit straightforward, just let you know this issue.
thanks