HADOOP-10068. Improve log4j regex in testFindContainingJar. Contributed by Robert Rati.
This commit is contained in:
parent
1d175f0f3f
commit
afac7a2640
|
@ -830,6 +830,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HADOOP-12098. Remove redundant test dependencies in Hadoop Archives.
|
||||
(Varun Saxena via wheat9)
|
||||
|
||||
HADOOP-10068. Improve log4j regex in testFindContainingJar.
|
||||
(Robert Rati via wheat9)
|
||||
|
||||
Release 2.7.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -32,9 +32,9 @@ public class TestClassUtil {
|
|||
Assert.assertNotNull("Containing jar not found for Logger",
|
||||
containingJar);
|
||||
File jarFile = new File(containingJar);
|
||||
Assert.assertTrue("Containing jar does not exist on file system",
|
||||
Assert.assertTrue("Containing jar does not exist on file system ",
|
||||
jarFile.exists());
|
||||
Assert.assertTrue("Incorrect jar file" + containingJar,
|
||||
jarFile.getName().matches("log4j.+[.]jar"));
|
||||
Assert.assertTrue("Incorrect jar file " + containingJar,
|
||||
jarFile.getName().matches("log4j.*[.]jar"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue