fixed some warnings

This commit is contained in:
Jonas Partner
2008-11-17 20:10:56 +00:00
parent e3ae9f6a0f
commit f4e92104aa
2 changed files with 2 additions and 6 deletions

View File

@@ -117,8 +117,6 @@ public class XPathRouterParserTests {
@Test
public void testSetChannelResolver() throws Exception {
Document doc = XmlTestUtil.getDocumentForString("<name>outputOne</name>");
GenericMessage<Document> docMessage = new GenericMessage<Document>(doc);
StringBuffer contextBuffer = new StringBuffer("<si-xml:xpath-router id='router' channel-resolver='stubResolver' input-channel='test-input'><si-xml:xpath-expression expression='/name'/></si-xml:xpath-router>");
contextBuffer.append("<bean id='stubResolver' class='").append(StubChannelResolver.class.getName()).append("'/>");
EventDrivenConsumer consumer = buildContext(contextBuffer.toString());
@@ -133,8 +131,6 @@ public class XPathRouterParserTests {
@Test
public void testSetResolutionRequiredFalse() throws Exception {
Document doc = XmlTestUtil.getDocumentForString("<name>outputOne</name>");
GenericMessage<Document> docMessage = new GenericMessage<Document>(doc);
StringBuffer contextBuffer = new StringBuffer("<si-xml:xpath-router id='router' resolution-required='false' input-channel='test-input'><si-xml:xpath-expression expression='/name'/></si-xml:xpath-router>");
EventDrivenConsumer consumer = buildContext(contextBuffer.toString());
@@ -148,8 +144,6 @@ public class XPathRouterParserTests {
@Test
public void testSetResolutionRequiredTrue() throws Exception {
Document doc = XmlTestUtil.getDocumentForString("<name>outputOne</name>");
GenericMessage<Document> docMessage = new GenericMessage<Document>(doc);
StringBuffer contextBuffer = new StringBuffer("<si-xml:xpath-router id='router' resolution-required='true' input-channel='test-input'><si-xml:xpath-expression expression='/name'/></si-xml:xpath-router>");
EventDrivenConsumer consumer = buildContext(contextBuffer.toString());

View File

@@ -55,6 +55,7 @@ public class JaxbMarshallingIntegrationTests extends AbstractJUnit4SpringContext
PollableChannel unmarshallOut;
@SuppressWarnings("unchecked")
@Test
public void testMarshalling() throws Exception{
JaxbAnnotatedPerson person = new JaxbAnnotatedPerson();
@@ -68,6 +69,7 @@ public class JaxbMarshallingIntegrationTests extends AbstractJUnit4SpringContext
}
@SuppressWarnings("unchecked")
@Test
public void testUnmarshalling() throws Exception{
StringSource source = new StringSource("<person><firstname>bob</firstname></person>");