@Test public void create_acquired() throws Exception { try (SessionMirror session = provider.create("testing")) { try { createAndClose("testing"); fail(); } catch (SessionException e) { assertThat(e.getSessionId(), is("testing")); assertThat(e.getReason(), is(Reason.ACQUIRED)); } } }
@Override public SessionMirror create(String id) throws SessionException, IOException { if (id == null) { throw new IllegalArgumentException("id must not be null"); } LOG.debug("Creating session: {}", id); return attach(id, true, false); }
FileSessionProvider extends SessionProvider { @Override public SessionMirror create(String id) throws SessionException, IOException { if (id == null) { throw new IllegalArgumentException("id must not be null"); } LOG.debug("Creating session: {}", id); return attach(id, true, false); } }
FileSessionProvider extends SessionProvider { @Override public SessionMirror create(String id) throws SessionException, IOException { if (id == null) { throw new IllegalArgumentException("id must not be null"); } LOG.debug("Creating session: {}", id); return attach(id, true, false); }  }
FileSessionProvider extends SessionProvider { @Override public SessionMirror create(String id) throws SessionException, IOException { if (id == null) { throw new IllegalArgumentException("id must not be null"); } LOG.debug("Creating session: {}", id); return attach(id, true, false); }  @Override List<String> getCreatedIds(); @Override SessionMirror create(String id); @Override SessionMirror open(String id); @Override void delete(String id); }
FileSessionProvider extends SessionProvider { @Override public SessionMirror create(String id) throws SessionException, IOException { if (id == null) { throw new IllegalArgumentException("id must not be null"); } LOG.debug("Creating session: {}", id); return attach(id, true, false); }  @Override List<String> getCreatedIds(); @Override SessionMirror create(String id); @Override SessionMirror open(String id); @Override void delete(String id); static final String KEY_DIRECTORY; }