HADOOP-10068. Improve log4j regex in testFindContainingJar. Contributed by Robert Rati.
This commit is contained in:
parent
dc46c46b91
commit
c3ba44d858
|
@ -1454,6 +1454,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