BaseGenerator implements Generator { protected String getFromAsConfigured() { return getConfigWithFallback(Config.from, FABRIC8_GENERATOR_FROM, null); } BaseGenerator(GeneratorContext context, String name);  BaseGenerator(GeneratorContext context, String name, FromSelector selector); String getName(); GeneratorContext getContext();  }
@Test public void fromAsConfigured() { final Properties projectProps = new Properties(); projectProps.put("fabric8.generator.from","propFrom"); setupContextKubernetes(projectProps,"configFrom", null); BaseGenerator generator = createGenerator(null); assertEquals("configFrom",generator.getFromAsConfigured()); setupContextKubernetes(projectProps,null, null); generator = createGenerator(null); assertEquals("propFrom",generator.getFromAsConfigured()); }