Ignore:
Timestamp:
02/20/14 16:15:23 (10 years ago)
Author:
pharms
Message:
  • added test cases for SOAP message exchange
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-httpmonitor-test/src/test/java/de/ugoe/cs/autoquest/httpmonitor/HttpMonitorTest.java

    r1376 r1390  
    9494    @Test 
    9595    public void test_SimulatedSession_MonitorOnly() throws Exception { 
    96         monitor = new HttpMonitor(new String[] { LOG_FILE_DIR, PORT +"" }); 
     96        monitor = new HttpMonitor(new String[] { LOG_FILE_DIR, MONITOR_PORT + "" }); 
    9797 
    9898        monitor.init(); 
     
    155155    @Test 
    156156    public void test_SimpleText_ProxyAndMonitor() throws Exception { 
    157         monitor = new HttpMonitor(new String[] { LOG_FILE_DIR, (PORT + 2) + "" }); 
     157        monitor = new HttpMonitor(new String[] { LOG_FILE_DIR, MONITOR_PORT + "" }); 
    158158 
    159159        monitor.init(); 
     
    161161 
    162162        proxy = new HttpMonitoringProxy 
    163             (new String[] { LOG_FILE_DIR, PORT +"", 
    164                             "localhost:" + (PORT + 1), "localhost:" + (PORT + 2) }); 
     163            (new String[] { LOG_FILE_DIR, PROXY_PORT + "", 
     164                            "localhost:" + DUMMY_SERVER_PORT, "localhost:" + MONITOR_PORT }); 
    165165 
    166166        proxy.init(); 
     
    216216    @Test 
    217217    public void test_XMLMessage_ProxyAndMonitor() throws Exception { 
    218         monitor = new HttpMonitor(new String[] { LOG_FILE_DIR, (PORT + 2) + "" }); 
     218        monitor = new HttpMonitor(new String[] { LOG_FILE_DIR, MONITOR_PORT + "" }); 
    219219 
    220220        monitor.init(); 
     
    222222 
    223223        proxy = new HttpMonitoringProxy 
    224             (new String[] { LOG_FILE_DIR, PORT +"", 
    225                             "localhost:" + (PORT + 1), "localhost:" + (PORT + 2) }); 
     224            (new String[] { LOG_FILE_DIR, PROXY_PORT + "", 
     225                            "localhost:" + DUMMY_SERVER_PORT, "localhost:" + MONITOR_PORT }); 
    226226 
    227227        proxy.init(); 
     
    315315         
    316316        for (HttpExchange exchange : exchanges) { 
    317             HttpPost httpRequest = new HttpPost("http://localhost:" + PORT + "/"); 
     317            HttpPost httpRequest = new HttpPost("http://localhost:" + MONITOR_PORT + "/"); 
    318318             
    319319            JAXBContext jaxbContext = 
Note: See TracChangeset for help on using the changeset viewer.