Rework tests with JMockit. Remove EnvProvider adaptor
parent
c08d66de71
commit
c5a0a1985b
@ -1,20 +0,0 @@
|
||||
package org.redisson.config;
|
||||
|
||||
/**
|
||||
* Adaptor for key value storage, a.k.a. Environment.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
interface EnvProvider {
|
||||
|
||||
/**
|
||||
* Gets the value of the specified environment variable. An
|
||||
* environment variable is a system-dependent external named
|
||||
* value.
|
||||
*
|
||||
* @param name the name of the environment variable
|
||||
* @return the string value of the variable, or <code>null</code>
|
||||
* if the variable is not defined in the system environment
|
||||
*/
|
||||
String get(String name);
|
||||
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package org.redisson.config;
|
||||
|
||||
/**
|
||||
* Default implementation for environment values adaptor.
|
||||
*/
|
||||
public class SystemEnvProvider implements EnvProvider {
|
||||
|
||||
/**
|
||||
* @see System#getenv()
|
||||
*/
|
||||
@Override
|
||||
public String get(String name) {
|
||||
return System.getenv(name);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue