From 8e66e5357666c3e87e36bc34c96ef98690c808ae Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 24 Apr 2017 17:54:59 -0400 Subject: [PATCH] More JMX tests polishing --- .../integration_/mbeanexporterhelper/INT_2626Tests.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-integration-jmx/src/test/java/org/springframework/integration_/mbeanexporterhelper/INT_2626Tests.java b/spring-integration-jmx/src/test/java/org/springframework/integration_/mbeanexporterhelper/INT_2626Tests.java index 40c0aed41f..71140b33d2 100644 --- a/spring-integration-jmx/src/test/java/org/springframework/integration_/mbeanexporterhelper/INT_2626Tests.java +++ b/spring-integration-jmx/src/test/java/org/springframework/integration_/mbeanexporterhelper/INT_2626Tests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2017 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. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package org.springframework.integration_.mbeanexporterhelper; import org.junit.Test; @@ -23,6 +24,8 @@ public class INT_2626Tests { @Test // This context failed to load before the INT-2626 fix was applied public void testInt2626(){ - new ClassPathXmlApplicationContext("INT-2626-config.xml", this.getClass()); + new ClassPathXmlApplicationContext("INT-2626-config.xml", this.getClass()) + .close(); } + }