Hmm, you're right I also forgot about that. There is XD-553 for it.

Still, I don't think we should ship a test with all those hardcoded values.

Fixing XD-553 is not too difficult I guess, will tackle it while you work
on your PR.


On Thu, Aug 8, 2013 at 12:40 PM, Ilayaperumal Gopinathan <
notifications@github.com> wrote:

> In
> spring-xd-shell/src/test/java/org/springframework/xd/shell/command/MetricsTests.java:
>
> > @@ -98,6 +103,36 @@ public void testRichGaugeDelete() throws Exception {
> >  		richGauge().deleteDefaultRichGauge();
> >  	}
> >
> > +	@Test
> > +	public void testFieldValueCounterList() throws Exception {
> > +		FileSource fileSource = newFileSource(new File(FILE_SOURCE_INPUT_DIR + TEST_STREAM_NAME));
> > +		createFileSourceFVCStream(fileSource, "fromUser");
> > +		copyTweetFiles(fileSource);
> > +		fvc().verifyDefaultExists();
> > +	}
> > +
> > +	@Test
> > +	public void testFieldValueCounterDisplay() throws Exception {
> > +		TreeMap<String, Double> fvcMap = new TreeMap<String, Double>();
> > +		fvcMap.put("BestNoSQL", 1d);
> > +		fvcMap.put("SpringSource", 2d);
> > +		FileSource fileSource = newFileSource(new File(FILE_SOURCE_INPUT_DIR + TEST_STREAM_NAME));
>
> Yes, currently, I see the file.xml source module is hard coded to have
> "/tmp/xd/input" as the starting path in directory name. Do you think we can
> fix that and use the same approach as FileSink?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/SpringSource/spring-xd/pull/197/files#r5654620>
> .
>