This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new 0534f43 Remove unused exception from test method signature.
0534f43 is described below
commit 0534f43684a6672ff38758f3873c6b44861ad901
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Feb 2 20:52:28 2021 -0500
Remove unused exception from test method signature.
---
.../logging/log4j/web/Log4jWebInitializerImplTest.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git
a/log4j-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java
b/log4j-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java
index d648cbf..042bb69 100644
---
a/log4j-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java
+++
b/log4j-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java
@@ -100,7 +100,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void
testInitializeWithNoParametersThenSetLoggerContextThenDeinitialize() throws
Exception {
+ public void
testInitializeWithNoParametersThenSetLoggerContextThenDeinitialize() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
@@ -137,7 +137,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void
testInitializeWithClassLoaderNoParametersThenSetLoggerContextThenDeinitialize()
throws Exception {
+ public void
testInitializeWithClassLoaderNoParametersThenSetLoggerContextThenDeinitialize()
{
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("false");
@@ -176,7 +176,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void testInitializeIsIdempotent() throws Exception {
+ public void testInitializeIsIdempotent() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("nothing");
@@ -199,7 +199,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void testInitializeFailsAfterDeinitialize() throws Exception {
+ public void testInitializeFailsAfterDeinitialize() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
@@ -222,7 +222,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void testDeinitializeIsIdempotent() throws Exception {
+ public void testDeinitializeIsIdempotent() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
@@ -243,7 +243,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void testInitializeUsingJndiSelectorFails() throws Exception {
+ public void testInitializeUsingJndiSelectorFails() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("true");
@@ -255,7 +255,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void testInitializeUsingJndiSelector() throws Exception {
+ public void testInitializeUsingJndiSelector() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn("helloWorld06");
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("true");
@@ -287,7 +287,7 @@ public class Log4jWebInitializerImplTest {
}
@Test
- public void testWrapExecutionWithNoParameters() throws Exception {
+ public void testWrapExecutionWithNoParameters() {
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);