mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
+2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user