@Test public void getCurrent_returnsOnlySingleInstance() { Environment firstEnvironment = Environments.getCurrent(); Environment secondEnvironment = Environments.getCurrent(); assertThat(firstEnvironment).isSameAs(secondEnvironment); }
public static Environment getCurrent() { return cfEnvironment; }
Environments { public static Environment getCurrent() { return cfEnvironment; } }
Environments { public static Environment getCurrent() { return cfEnvironment; } private  Environments(); }
Environments { public static Environment getCurrent() { return cfEnvironment; } private  Environments(); static Environment getCurrent(); }
Environments { public static Environment getCurrent() { return cfEnvironment; } private  Environments(); static Environment getCurrent();  }