Polishing
This commit is contained in:
parent
4742aa0bfe
commit
a8b5ea1c51
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -25,7 +25,7 @@ import java.lang.annotation.Target;
|
|||
|
||||
/**
|
||||
* Type-level annotation that indicates JMX notifications emitted by a bean,
|
||||
* containing multiple {@link ManagedNotification ManagedNotifications}
|
||||
* containing multiple {@link ManagedNotification ManagedNotifications}.
|
||||
*
|
||||
* @author Rob Harrop
|
||||
* @since 2.0
|
||||
|
|
|
@ -82,6 +82,7 @@ public class EnableMBeanExportConfigurationTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("resource")
|
||||
public void testPackagePrivateExtensionCantBeExposed() {
|
||||
this.thrown.expect(InvalidMetadataException.class);
|
||||
this.thrown.expectMessage(PackagePrivateTestBean.class.getName());
|
||||
|
@ -90,6 +91,7 @@ public class EnableMBeanExportConfigurationTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("resource")
|
||||
public void testPackagePrivateImplementationCantBeExposed() {
|
||||
this.thrown.expect(InvalidMetadataException.class);
|
||||
this.thrown.expectMessage(PackagePrivateAnnotationTestBean.class.getName());
|
||||
|
|
Loading…
Reference in New Issue