Exemplo n.º 1
0
 def test_http_port_is_returned(self):
   server_xml = TomcatServerXml.fromstring(self.get_valid_tomcat_file_content())
   self.assertEquals("8080", server_xml.http_port())
Exemplo n.º 2
0
 def test_raises_if_http_port_not_found(self):
   server_xml = TomcatServerXml.fromstring(self.get_file_without_http_port())
   self.assertRaises(WrongConfigException, server_xml.http_port)
Exemplo n.º 3
0
 def test_http_port_is_returned(self):
     server_xml = TomcatServerXml.fromstring(
         self.get_valid_tomcat_file_content())
     self.assertEquals("8080", server_xml.http_port())
Exemplo n.º 4
0
 def tomcat_server_xml(self):
   return TomcatServerXml.fromfile(self.script_settings.get_tomcat_location() + "/conf/server.xml")
Exemplo n.º 5
0
 def test_raises_if_http_port_not_found(self):
     server_xml = TomcatServerXml.fromstring(
         self.get_file_without_http_port())
     self.assertRaises(WrongConfigException, server_xml.http_port)