@Test public void testGetPropertyValue() { ServletContextConfiguration scc = new ServletContextConfiguration(new MyServletContext()); assertEquals(scc.getPropertyValue("service-port"), "8090"); assertEquals(scc.getPropertyValue("env"), "fws"); }
@Override public String getPropertyValue(String key) { if (StringValues.isNullOrWhitespace(key)) { _logger.warn("ServletContext key is null or empty!"); return null; } String value = _context.getInitParameter(key); return value; }
ServletContextConfiguration implements Configuration { @Override public String getPropertyValue(String key) { if (StringValues.isNullOrWhitespace(key)) { _logger.warn("ServletContext key is null or empty!"); return null; } String value = _context.getInitParameter(key); return value; } }
ServletContextConfiguration implements Configuration { @Override public String getPropertyValue(String key) { if (StringValues.isNullOrWhitespace(key)) { _logger.warn("ServletContext key is null or empty!"); return null; } String value = _context.getInitParameter(key); return value; } ServletContextConfiguration(final ServletContext context); }
ServletContextConfiguration implements Configuration { @Override public String getPropertyValue(String key) { if (StringValues.isNullOrWhitespace(key)) { _logger.warn("ServletContext key is null or empty!"); return null; } String value = _context.getInitParameter(key); return value; } ServletContextConfiguration(final ServletContext context); @Override String getPropertyValue(String key); }
ServletContextConfiguration implements Configuration { @Override public String getPropertyValue(String key) { if (StringValues.isNullOrWhitespace(key)) { _logger.warn("ServletContext key is null or empty!"); return null; } String value = _context.getInitParameter(key); return value; } ServletContextConfiguration(final ServletContext context); @Override String getPropertyValue(String key);  }