diff --git a/spring-integration-feed/src/test/java/org/springframework/integration/feed/FeedEntryReaderMessageSourceTests.java b/spring-integration-feed/src/test/java/org/springframework/integration/feed/FeedEntryReaderMessageSourceTests.java index 2744dc58f8..a1226963c8 100644 --- a/spring-integration-feed/src/test/java/org/springframework/integration/feed/FeedEntryReaderMessageSourceTests.java +++ b/spring-integration-feed/src/test/java/org/springframework/integration/feed/FeedEntryReaderMessageSourceTests.java @@ -26,12 +26,10 @@ import java.net.URL; import java.util.ArrayList; import java.util.Date; import java.util.List; -import java.util.Properties; import org.junit.Before; import org.junit.Test; import org.springframework.integration.Message; -import org.springframework.integration.context.metadata.MetadataStore; import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; @@ -43,7 +41,7 @@ import com.sun.syndication.feed.synd.SyndFeed; public class FeedEntryReaderMessageSourceTests { @Before public void prepare(){ - File persisterFile = new File(System.getProperty("java.io.tmpdir") + "spring-integration/", "feedReader.last.entry"); + File persisterFile = new File(System.getProperty("java.io.tmpdir") + "/spring-integration/", "feedReader.last.entry"); if (persisterFile.exists()){ persisterFile.delete(); } diff --git a/spring-integration-feed/src/test/java/org/springframework/integration/feed/config/FeedMessageSourceBeanDefinitionParserTests.java b/spring-integration-feed/src/test/java/org/springframework/integration/feed/config/FeedMessageSourceBeanDefinitionParserTests.java index e35e6daff9..79a5a37f0e 100644 --- a/spring-integration-feed/src/test/java/org/springframework/integration/feed/config/FeedMessageSourceBeanDefinitionParserTests.java +++ b/spring-integration-feed/src/test/java/org/springframework/integration/feed/config/FeedMessageSourceBeanDefinitionParserTests.java @@ -57,7 +57,7 @@ public class FeedMessageSourceBeanDefinitionParserTests { private static CountDownLatch latch; @Before public void prepare(){ - File persisterFile = new File(System.getProperty("java.io.tmpdir") + "spring-integration/", "feedAdapter.last.entry"); + File persisterFile = new File(System.getProperty("java.io.tmpdir") + "/spring-integration/", "feedAdapter.last.entry"); if (persisterFile.exists()){ persisterFile.delete(); } @@ -87,7 +87,7 @@ public class FeedMessageSourceBeanDefinitionParserTests { @Test public void validateSuccessfullNewsRetrievalWithFileUrlAndMessageHistory() throws Exception{ - File persisterFile = new File(System.getProperty("java.io.tmpdir") + "spring-integration/", "feedAdapterUsage.last.entry"); + File persisterFile = new File(System.getProperty("java.io.tmpdir") + "/spring-integration/", "feedAdapterUsage.last.entry"); if (persisterFile.exists()){ persisterFile.delete(); }