WebXml { public String getEncoding() { return getContextParamValue( ENCODING_CONTEXT_PARAM_NAME ); } WebXml( File pentahoXmlFile );  WebXml( String xml );  WebXml( Document doc );  WebXml(); String getContextConfigFileName(); @Deprecated String getBaseUrl(); String getFullyQualifiedServerUrl(); String getSolutionPath(); String getLocaleLanguage(); String getLocaleCountry(); String getEncoding(); String getHomePage(); void setContextConfigFileName( String fileName ); void setBaseUrl( String baseUrl ); void setFullyQualifiedServerUrl( String fullyQualifiedServerUrl ); void setSolutionPath( String solutionPath ); void setLocaleLanguage( String language ); void setLocaleCountry( String country ); void setEncoding( String encoding ); void setHomePage( String homePage ); Document getDocument(); String getContextParamValue( String name ); void setContextParamValue( String name, String value ); boolean setServletMapping( String name, String value ); String getServletMapping( String name );  }
@Test public void testConstructor_xmlString() throws Exception { webXml = new WebXml( "<web-app></web-app>" ); assertNull( webXml.getEncoding() ); }
@Test public void testGetEncoding() throws Exception { webXmlSpy.getEncoding(); verify( webXmlSpy ).getContextParamValue( WebXml.ENCODING_CONTEXT_PARAM_NAME ); }