Add 2016 to Docs Copyright

Close `CuratorFramework` in the `@AfterClass` for `LeaderInitiatorFactoryBeanTests` with the hope to overcome
hanging on the CI server: https://build.spring.io/browse/INT-AT42SIO-75/
This commit is contained in:
Artem Bilan
2016-02-24 10:01:31 -05:00
parent 5ba0800dce
commit a3a926abbe
2 changed files with 9 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.apache.curator.framework.CuratorFramework;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -66,6 +67,13 @@ public class LeaderInitiatorFactoryBeanTests extends ZookeeperTestSupport {
client = createNewClient();
}
@AfterClass
public static void closeClient() {
if (client != null) {
client.close();
}
}
@Test
public void test() throws Exception {
assertTrue(this.config.latch1.await(10, TimeUnit.SECONDS));

View File

@@ -48,6 +48,7 @@
<year>2013</year>
<year>2014</year>
<year>2015</year>
<year>2016</year>
<holder>
Pivotal Software, Inc. All Rights Reserved.
</holder>