@@ -64,10 +64,8 @@ public void ensureDependsOnMethodsHonoursRegexPatternsAcrossClassesErrorConditio
6464 description = "GITHUB-141" ,
6565 expectedExceptions = TestNGException .class ,
6666 expectedExceptionsMessageRegExp =
67- "\n Method \" test.dependent.issue141.ErrorScenarioNestedSample.a\\ (\\ )\" "
68- + "depends on nonexistent "
69- + "method \" test.dependent.issue141.ErrorScenarioNestedSample\\ $InnerTestClass"
70- + ".rambo.*" )
67+ "\n test.dependent.issue141.ErrorScenarioNestedSample.a\\ (\\ ) "
68+ + "depends on nonexistent method .*" )
7169 public void ensureDependsOnMethodsHonoursRegexPatternsNestedClassesErrorCondition () {
7270 TestNG testng = create (ErrorScenarioNestedSample .class );
7371 MethodNameCollector listener = new MethodNameCollector ();
@@ -101,9 +99,7 @@ public void ensureDependsOnMethodsHonoursRegexPatternsDuplicateMatches() {
10199 @ Test (
102100 description = "GITHUB-141" ,
103101 expectedExceptions = TestNGException .class ,
104- expectedExceptionsMessageRegExp =
105- "\n Method \" test.dependent.issue141.NestedTestClassSample\\ $FirstSample.randomTest\\ (\\ )\" "
106- + "depends on nonexistent method .*" )
102+ expectedExceptionsMessageRegExp = "\n .* depends on nonexistent method .*" )
107103 public void ensureDependsOnMethodsHonoursRegexPatternsDuplicateMatchesNestedClasses () {
108104 TestNG testng = create (NestedTestClassSample .class );
109105 MethodNameCollector listener = new MethodNameCollector ();
@@ -117,7 +113,7 @@ public void ensureDependsOnMethodsHonoursRegexPatternsDuplicateMatchesNestedClas
117113 description = "GITHUB-141" ,
118114 expectedExceptions = TestNGException .class ,
119115 expectedExceptionsMessageRegExp =
120- "\n Method \" test .dependent.issue141.NestedTestClassSample2.randomTest\\ (\\ )\" depends on "
116+ "\n test .dependent.issue141.NestedTestClassSample2.randomTest\\ (\\ ) depends on "
121117 + "nonexistent method .*" )
122118 public void ensureDependsOnMethodsHonourRegexPatternsNestedClasses () {
123119 TestNG testng = create (NestedTestClassSample2 .class );
0 commit comments