Changeset 1912


Ignore:
Timestamp:
03/11/15 16:56:55 (10 years ago)
Author:
pharms
Message:
  • added possibility to specify default client name
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-http-test/src/test/java/de/ugoe/cs/autoquest/http/eventcore/SOAPEventTypeTest.java

    r1910 r1912  
    228228     */ 
    229229    @Test 
     230    public void test_ClientName_13() throws Exception { 
     231        HttpExchange exchange = createDummyExchange(); 
     232        SOAPMessage dummyMessage = createDummySOAPMessage(); 
     233        Properties properties = new Properties(); 
     234        properties.put("clientName.default", "defaultName"); 
     235         
     236        SOAPEventType fixture = new SOAPEventType(exchange, dummyMessage, null, properties); 
     237         
     238        assertEquals("defaultName", fixture.getClientName()); 
     239    } 
     240 
     241    /** 
     242     *  
     243     */ 
     244    @Test 
     245    public void test_ClientName_14() throws Exception { 
     246        HttpExchange exchange = createDummyExchange(); 
     247        SOAPMessage dummyMessage = createDummySOAPMessage(); 
     248        Properties properties = new Properties(); 
     249        properties.put("clientName.default", "defaultName"); 
     250        properties.put("clientName.receiver.server.receiver:5678", "replacedSender"); 
     251         
     252        SOAPEventType fixture = new SOAPEventType(exchange, dummyMessage, null, properties); 
     253         
     254        assertEquals("replacedSender", fixture.getClientName()); 
     255    } 
     256 
     257    /** 
     258     *  
     259     */ 
     260    @Test 
    230261    public void test_ServiceName_01() throws Exception { 
    231262        HttpExchange exchange = createDummyExchange(); 
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/eventcore/SOAPEventType.java

    r1910 r1912  
    145145            } 
    146146             
     147            if (value == null) { 
     148                key = "clientName.default"; 
     149                value = urlNameMap.getProperty(key); 
     150            } 
     151 
    147152            if (value != null) { 
    148153                clientName = value; 
Note: See TracChangeset for help on using the changeset viewer.