Made AbstractMethodEndpointMapping generic

This commit is contained in:
Arjen Poutsma
2010-09-17 10:45:14 +00:00
parent 327011a3a3
commit c8c647cbe8
2 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ public abstract class AbstractMethodEndpointMapping<T> extends AbstractEndpointM
}
endpointMap.put(key, endpoint);
if (logger.isDebugEnabled()) {
logger.debug("Mapped key [" + key + "] onto endpoint [" + endpoint + "]");
logger.debug("Mapped [" + key + "] onto endpoint [" + endpoint + "]");
}
}

View File

@@ -55,14 +55,14 @@ public class PayloadRootAnnotationMethodEndpointMappingTest {
@Test
public void testRegistration() throws NoSuchMethodException {
MethodEndpoint endpoint = mapping.lookupEndpoint("{http://springframework.org/spring-ws}Request");
MethodEndpoint endpoint = mapping.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Request"));
assertNotNull("MethodEndpoint not registered", endpoint);
Method doIt = PayloadRootEndpoint.class.getMethod("doIt", Source.class);
MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doIt);
assertEquals("Invalid endpoint registered", expected, endpoint);
assertNull("Invalid endpoint registered",
mapping.lookupEndpoint("{http://springframework.org/spring-ws}Request2"));
mapping.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Request2")));
}
@Test