-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TP-1103 Add JMX support for shutterable and catchup services #56
Conversation
@@ -11,6 +11,12 @@ | |||
|
|||
<artifactId>subscription-manager</artifactId> | |||
|
|||
<properties> | |||
<org.jboss.arquillian.junit.version>1.0.0.CR7</org.jboss.arquillian.junit.version> | |||
<org.jboss.arquillian.spi.version>1.0.0.Alpha5</org.jboss.arquillian.spi.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these properties needed?
<version>${test-utils.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<groupId>org.mockito</groupId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like there is an issue with the spacing from here onwards
} | ||
|
||
@Test | ||
public void shouldTrowExceptionWhenMBeanUnregisteringIncorrect() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method name "Trow" should be "Throw"
} | ||
|
||
@Test | ||
public void shouldTrowExceptionWhenMBeanRegisteringIncorrect() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method name "Trow" should be "Throw"
private static final String SHUTTERING_BEAN = "DefaultShutteringMBean"; | ||
private static final String CATCHUP_BEAN = "DefaultCatchupMBean"; | ||
|
||
private Map<Object, ObjectName> mbeanMap = createMBeanMap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can make this more extensible by injecting an object that contains the map of MBeans to register
Pull Request Test Coverage Report for Build 436
💛 - Coveralls |
mbeanMap.put(DefaultCatchupMBean.class.newInstance(), new ObjectName(CATCHUP_DOMAIN_NAME, "type", CATCHUP_BEAN)); | ||
|
||
return mbeanMap; | ||
} catch (final Exception exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to catch the actual Exceptions that are thrown rather than this catch all
f76bd6e
to
55ac6f6
Compare
55ac6f6
to
a9a2a2e
Compare
No description provided.