@Test public void getWhenExportContextAlreadyInEC() throws Exception { FilesystemExportContext fec = new FilesystemExportContext(); ec.setProperty("filesystemExportContext", fec); FilesystemExportContext newfec = this.provider.get(); assertSame(newfec, ec.getProperty("filesystemExportContext")); assertSame(newfec, fec); }
@Override public FilesystemExportContext get() { ExecutionContext ec = this.execution.getContext(); FilesystemExportContext exportContext = (FilesystemExportContext) ec.getProperty(CONTEXT_KEY); if (exportContext == null) { exportContext = new FilesystemExportContext(); newProperty(ec, exportContext); } return exportContext; }
FilesystemExportContextProvider implements Provider<FilesystemExportContext> { @Override public FilesystemExportContext get() { ExecutionContext ec = this.execution.getContext(); FilesystemExportContext exportContext = (FilesystemExportContext) ec.getProperty(CONTEXT_KEY); if (exportContext == null) { exportContext = new FilesystemExportContext(); newProperty(ec, exportContext); } return exportContext; } }
FilesystemExportContextProvider implements Provider<FilesystemExportContext> { @Override public FilesystemExportContext get() { ExecutionContext ec = this.execution.getContext(); FilesystemExportContext exportContext = (FilesystemExportContext) ec.getProperty(CONTEXT_KEY); if (exportContext == null) { exportContext = new FilesystemExportContext(); newProperty(ec, exportContext); } return exportContext; }  }
FilesystemExportContextProvider implements Provider<FilesystemExportContext> { @Override public FilesystemExportContext get() { ExecutionContext ec = this.execution.getContext(); FilesystemExportContext exportContext = (FilesystemExportContext) ec.getProperty(CONTEXT_KEY); if (exportContext == null) { exportContext = new FilesystemExportContext(); newProperty(ec, exportContext); } return exportContext; }  @Override FilesystemExportContext get(); static void set(ExecutionContext ec, FilesystemExportContext exportContext); }
FilesystemExportContextProvider implements Provider<FilesystemExportContext> { @Override public FilesystemExportContext get() { ExecutionContext ec = this.execution.getContext(); FilesystemExportContext exportContext = (FilesystemExportContext) ec.getProperty(CONTEXT_KEY); if (exportContext == null) { exportContext = new FilesystemExportContext(); newProperty(ec, exportContext); } return exportContext; }  @Override FilesystemExportContext get(); static void set(ExecutionContext ec, FilesystemExportContext exportContext);  }