This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 7503eec Fix failing unit test
7503eec is described below
commit 7503eece8f05053c279840b402af5e4e5c903f44
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Apr 19 08:30:52 2019 +0100
Fix failing unit test
Not all of the interfaces implemented by StandardContext in 8.5.x
onwards exist in 7.0.x. Switch the tests for those to check that they
are not present.
---
test/org/apache/tomcat/util/TestIntrospectionUtils.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/tomcat/util/TestIntrospectionUtils.java
b/test/org/apache/tomcat/util/TestIntrospectionUtils.java
index 64864f6..2468178 100644
--- a/test/org/apache/tomcat/util/TestIntrospectionUtils.java
+++ b/test/org/apache/tomcat/util/TestIntrospectionUtils.java
@@ -62,7 +62,8 @@ public class TestIntrospectionUtils {
@Test
public void testIsInstanceStandardContext06() {
- Assert.assertTrue(IntrospectionUtils.isInstance(
+ // This interface doesn't exist in 7.0.x
+ Assert.assertFalse(IntrospectionUtils.isInstance(
StandardContext.class, "org.apache.catalina.JmxEnabled"));
}
@@ -83,7 +84,8 @@ public class TestIntrospectionUtils {
@Test
public void testIsInstanceStandardContext09() {
- Assert.assertTrue(IntrospectionUtils.isInstance(
+ // This interface doesn't exist in 7.0.x
+ Assert.assertFalse(IntrospectionUtils.isInstance(
StandardContext.class, "org.apache.tomcat.ContextBind"));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]