@Test public void getRegistry() { Properties props = new Properties(); props.put("jshift.generator.registry", "jshift.io"); setupContextKubernetes(props, null, null); BaseGenerator generator = createGenerator(null); assertEquals("jshift.io", generator.getRegistry()); }
protected String getRegistry() { if (!RuntimeMode.isOpenShiftMode(getProject().getProperties())) { return getConfigWithFallback(Config.registry, "jshift.generator.registry", null); } return null; }
BaseGenerator implements Generator { protected String getRegistry() { if (!RuntimeMode.isOpenShiftMode(getProject().getProperties())) { return getConfigWithFallback(Config.registry, "jshift.generator.registry", null); } return null; } }
BaseGenerator implements Generator { protected String getRegistry() { if (!RuntimeMode.isOpenShiftMode(getProject().getProperties())) { return getConfigWithFallback(Config.registry, "jshift.generator.registry", null); } return null; } BaseGenerator(GeneratorContext context, String name);  BaseGenerator(GeneratorContext context, String name, FromSelector fromSelector); }
BaseGenerator implements Generator { protected String getRegistry() { if (!RuntimeMode.isOpenShiftMode(getProject().getProperties())) { return getConfigWithFallback(Config.registry, "jshift.generator.registry", null); } return null; } BaseGenerator(GeneratorContext context, String name);  BaseGenerator(GeneratorContext context, String name, FromSelector fromSelector); String getName(); GeneratorContext getContext(); }
BaseGenerator implements Generator { protected String getRegistry() { if (!RuntimeMode.isOpenShiftMode(getProject().getProperties())) { return getConfigWithFallback(Config.registry, "jshift.generator.registry", null); } return null; } BaseGenerator(GeneratorContext context, String name);  BaseGenerator(GeneratorContext context, String name, FromSelector fromSelector); String getName(); GeneratorContext getContext();  }