@Test public void testOnApplicationEventShouldSetResponseFormatterPath() { String responseFormatterPath = "responseFormatterPath"; given(propertyHolder.get("stub.response.formatter.path")).willReturn(responseFormatterPath); underTest.setProperties(); verify(stubResourcePathProvider).setResponseFormatterPath(responseFormatterPath); }
public void setProperties() { String templatePath = propertyHolder.get("stub.template.path"); String conditionCheckerPath = propertyHolder.get("stub.condition.checker.path"); String responseFormatterPath = propertyHolder.get("stub.response.formatter.path"); String interceptorPath = propertyHolder.get("stub.interceptor.path"); String jarPath = propertyHolder.get("stub.jar.path"); String cachePath = propertyHolder.get("stub.descriptors.cache.path"); String sequenceHandlerPath = propertyHolder.get("stub.sequence.handler.path"); stubResourcePathProvider.setTemplatesPath(templatePath); stubResourcePathProvider.setConditionCheckerPath(conditionCheckerPath); stubResourcePathProvider.setResponseFormatterPath(responseFormatterPath); stubResourcePathProvider.setInterceptorPath(interceptorPath); stubResourcePathProvider.setJarPath(jarPath); stubResourcePathProvider.setCachePath(cachePath); stubResourcePathProvider.setSequenceHandlerPath(sequenceHandlerPath); classNameMapper.initialize(stubResourcePathProvider.getEveryPathAsString()); }
StubConfigurationAccess implements ConfigurationAccessBase { public void setProperties() { String templatePath = propertyHolder.get("stub.template.path"); String conditionCheckerPath = propertyHolder.get("stub.condition.checker.path"); String responseFormatterPath = propertyHolder.get("stub.response.formatter.path"); String interceptorPath = propertyHolder.get("stub.interceptor.path"); String jarPath = propertyHolder.get("stub.jar.path"); String cachePath = propertyHolder.get("stub.descriptors.cache.path"); String sequenceHandlerPath = propertyHolder.get("stub.sequence.handler.path"); stubResourcePathProvider.setTemplatesPath(templatePath); stubResourcePathProvider.setConditionCheckerPath(conditionCheckerPath); stubResourcePathProvider.setResponseFormatterPath(responseFormatterPath); stubResourcePathProvider.setInterceptorPath(interceptorPath); stubResourcePathProvider.setJarPath(jarPath); stubResourcePathProvider.setCachePath(cachePath); stubResourcePathProvider.setSequenceHandlerPath(sequenceHandlerPath); classNameMapper.initialize(stubResourcePathProvider.getEveryPathAsString()); } }
StubConfigurationAccess implements ConfigurationAccessBase { public void setProperties() { String templatePath = propertyHolder.get("stub.template.path"); String conditionCheckerPath = propertyHolder.get("stub.condition.checker.path"); String responseFormatterPath = propertyHolder.get("stub.response.formatter.path"); String interceptorPath = propertyHolder.get("stub.interceptor.path"); String jarPath = propertyHolder.get("stub.jar.path"); String cachePath = propertyHolder.get("stub.descriptors.cache.path"); String sequenceHandlerPath = propertyHolder.get("stub.sequence.handler.path"); stubResourcePathProvider.setTemplatesPath(templatePath); stubResourcePathProvider.setConditionCheckerPath(conditionCheckerPath); stubResourcePathProvider.setResponseFormatterPath(responseFormatterPath); stubResourcePathProvider.setInterceptorPath(interceptorPath); stubResourcePathProvider.setJarPath(jarPath); stubResourcePathProvider.setCachePath(cachePath); stubResourcePathProvider.setSequenceHandlerPath(sequenceHandlerPath); classNameMapper.initialize(stubResourcePathProvider.getEveryPathAsString()); }  }
StubConfigurationAccess implements ConfigurationAccessBase { public void setProperties() { String templatePath = propertyHolder.get("stub.template.path"); String conditionCheckerPath = propertyHolder.get("stub.condition.checker.path"); String responseFormatterPath = propertyHolder.get("stub.response.formatter.path"); String interceptorPath = propertyHolder.get("stub.interceptor.path"); String jarPath = propertyHolder.get("stub.jar.path"); String cachePath = propertyHolder.get("stub.descriptors.cache.path"); String sequenceHandlerPath = propertyHolder.get("stub.sequence.handler.path"); stubResourcePathProvider.setTemplatesPath(templatePath); stubResourcePathProvider.setConditionCheckerPath(conditionCheckerPath); stubResourcePathProvider.setResponseFormatterPath(responseFormatterPath); stubResourcePathProvider.setInterceptorPath(interceptorPath); stubResourcePathProvider.setJarPath(jarPath); stubResourcePathProvider.setCachePath(cachePath); stubResourcePathProvider.setSequenceHandlerPath(sequenceHandlerPath); classNameMapper.initialize(stubResourcePathProvider.getEveryPathAsString()); }  @Override void loadProperties(); PropertyDto getProperties(); void setProperties(); }
StubConfigurationAccess implements ConfigurationAccessBase { public void setProperties() { String templatePath = propertyHolder.get("stub.template.path"); String conditionCheckerPath = propertyHolder.get("stub.condition.checker.path"); String responseFormatterPath = propertyHolder.get("stub.response.formatter.path"); String interceptorPath = propertyHolder.get("stub.interceptor.path"); String jarPath = propertyHolder.get("stub.jar.path"); String cachePath = propertyHolder.get("stub.descriptors.cache.path"); String sequenceHandlerPath = propertyHolder.get("stub.sequence.handler.path"); stubResourcePathProvider.setTemplatesPath(templatePath); stubResourcePathProvider.setConditionCheckerPath(conditionCheckerPath); stubResourcePathProvider.setResponseFormatterPath(responseFormatterPath); stubResourcePathProvider.setInterceptorPath(interceptorPath); stubResourcePathProvider.setJarPath(jarPath); stubResourcePathProvider.setCachePath(cachePath); stubResourcePathProvider.setSequenceHandlerPath(sequenceHandlerPath); classNameMapper.initialize(stubResourcePathProvider.getEveryPathAsString()); }  @Override void loadProperties(); PropertyDto getProperties(); void setProperties();  }