Class WSUpdateTest


  • public class WSUpdateTest
    extends BaseWSTest
    Test webservice for reading, updating and posting. The test cases here require a running Openbravo at http://localhost:8080/openbravo. IMPORTANT: Test cases are called by one of them called testContent(). The name of the rest of the test cases NOT begin by "test...".
    Author:
    mtaal
    • Constructor Detail

      • WSUpdateTest

        public WSUpdateTest()
    • Method Detail

      • testACreateCity

        public void testACreateCity()
        Creates a city through a webservice calls. This test must be run before the others because it sets the cityId member in this class.
      • testBReadUpdateCity

        public void testBReadUpdateCity()
                                 throws Exception
        Read the created city using a webservice and make a small change and post it back.
        Throws:
        Exception
      • testCIncorrectRootTag

        public void testCIncorrectRootTag()
                                   throws Exception
        Test is an error is returned if an incorrect message is posted.
        Throws:
        Exception
      • testDReadAddDeleteCity

        public void testDReadAddDeleteCity()
                                    throws Exception
        Test case executes the following steps: 1) get a city, 2) create a city, 3) count the cities, 4) retrieve the cities through a query, 5) delete the new city, 6) check that it has been deleted.
        Throws:
        Exception
      • testEReadAddDeleteQueryCity

        public void testEReadAddDeleteQueryCity()
                                         throws Exception
        Throws:
        Exception
      • testFDoTest14973

        public void testFDoTest14973()
                              throws Exception
        DalWebServiceServlet does not report errors which occur at commit time
        Throws:
        Exception
      • testGReadAddCityWrongMethodError

        public void testGReadAddCityWrongMethodError()
                                              throws Exception
        Add a new city using the wrong HTTP method.
        Throws:
        Exception
      • testHRemoveCity

        public void testHRemoveCity()
                             throws Exception
        Cleans up the database by removing the city. Is run as last therefore the use of the Z character in the name.
        Throws:
        Exception