jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-127 (#32)
Date Mon, 17 Jun 2013 13:39:23 GMT
> +   void testCloserCallOneClose() throws IOException, InterruptedException {
> +      Injector i = createInjector();
> +      final Closer closer = i.getInstance(Closer.class);
> +      assert closer.getState() == Closer.State.OPEN;
> +
> +      Closeable closeable = EasyMock.createMock(Closeable.class);
> +
> +      closeable.close();
> +
> +      EasyMock.expectLastCall().times(1);
> +
> +      EasyMock.replay(closeable);
> +
> +      closer.addToClose(closeable);
> +
> +      Runnable close = new Runnable() {

Perhaps call it something like `closeContext`..?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/32/files#r4723943

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message