You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2023/10/09 12:50:13 UTC

[sling-org-apache-sling-commons-threads] branch master updated: Removed 1 unnecessary stubbings in ThreadPoolMetricsGaugesTest.java (#9)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-threads.git


The following commit(s) were added to refs/heads/master by this push:
     new ca1d53c  Removed 1 unnecessary stubbings in ThreadPoolMetricsGaugesTest.java (#9)
ca1d53c is described below

commit ca1d53c5763b06833d3e35334a7427d9b332bbe5
Author: ARUS2023 <14...@users.noreply.github.com>
AuthorDate: Mon Oct 9 07:50:08 2023 -0500

    Removed 1 unnecessary stubbings in ThreadPoolMetricsGaugesTest.java (#9)
---
 .../apache/sling/commons/threads/impl/ThreadPoolMetricsGaugesTest.java   | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolMetricsGaugesTest.java b/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolMetricsGaugesTest.java
index 525cd07..bde7043 100644
--- a/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolMetricsGaugesTest.java
+++ b/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolMetricsGaugesTest.java
@@ -88,7 +88,6 @@ public class ThreadPoolMetricsGaugesTest {
         when(bean.getMBeanInfo()).thenReturn(info);
         when(bean.getAttribute(eq(ATTR_A_NAME))).thenReturn(new Attributes().getA());
         when(bean.getAttribute(eq(ATTR_B_NAME))).thenReturn(new Attributes().getB());
-        when(bean.getAttribute(eq(ATTR_C_NAME))).thenReturn(new Attributes().getC());
         when(bean.getAttribute(eq(ATTR_D_NAME)))
                 .thenThrow(new JMRuntimeException("this exception is for unit test only"));