LogsRootEnvVariableProvider implements EnvVarProvider { @Override public Pair<String, String> get(RuntimeIdentity identity) throws InfrastructureException { return Pair.of(WORKSPACE_LOGS_ROOT_ENV_VAR, logsRootPath); } @Inject  LogsRootEnvVariableProvider(@Named("che.workspace.logs.root_dir") String logsRootPath); @Override Pair<String, String> get(RuntimeIdentity identity); static final String WORKSPACE_LOGS_ROOT_ENV_VAR; }
@Test public void testProviderReturnsLogsEnvironmentVariable() throws Exception { final Pair<String, String> eVar = logsRootEnvVariableProvider.get(identity); assertEquals(eVar.first, WORKSPACE_LOGS_ROOT_ENV_VAR); assertEquals(eVar.second, WORKSPACE_LOGS_ROOT_PATH); }