@Test public void getInstance() { assertThat(CFEnvironment.getInstance()).isNotSameAs(CFEnvironment.getInstance()); assertThat(cut.getType()).isEqualTo(Environment.Type.CF); }
public static CFEnvironment getInstance() { return getInstance(System::getenv, System::getProperty); }
CFEnvironment implements Environment { public static CFEnvironment getInstance() { return getInstance(System::getenv, System::getProperty); } }
CFEnvironment implements Environment { public static CFEnvironment getInstance() { return getInstance(System::getenv, System::getProperty); } private  CFEnvironment(); }
CFEnvironment implements Environment { public static CFEnvironment getInstance() { return getInstance(System::getenv, System::getProperty); } private  CFEnvironment(); static CFEnvironment getInstance(); @Override OAuth2ServiceConfiguration getXsuaaConfiguration(); @Nullable @Override OAuth2ServiceConfiguration getIasConfiguration(); @Override int getNumberOfXsuaaConfigurations(); @Override OAuth2ServiceConfiguration getXsuaaConfigurationForTokenExchange(); @Override Type getType(); @Nullable OAuth2ServiceConfiguration loadForServicePlan(Service service, Plan plan); }
CFEnvironment implements Environment { public static CFEnvironment getInstance() { return getInstance(System::getenv, System::getProperty); } private  CFEnvironment(); static CFEnvironment getInstance(); @Override OAuth2ServiceConfiguration getXsuaaConfiguration(); @Nullable @Override OAuth2ServiceConfiguration getIasConfiguration(); @Override int getNumberOfXsuaaConfigurations(); @Override OAuth2ServiceConfiguration getXsuaaConfigurationForTokenExchange(); @Override Type getType(); @Nullable OAuth2ServiceConfiguration loadForServicePlan(Service service, Plan plan);  }