Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/OutputParser.java @ 203:66fd2c73c56f
Basic test for HgOutgoingCommand. Handle cases with no outgoing changes in RepositoryComparator
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 26 Apr 2011 15:52:33 +0200 |
parents | 706bcc7cfee4 |
children | df5009d67be2 |
comparison
equal
deleted
inserted
replaced
202:706bcc7cfee4 | 203:66fd2c73c56f |
---|---|
24 public interface OutputParser { | 24 public interface OutputParser { |
25 | 25 |
26 public void parse(CharSequence seq); | 26 public void parse(CharSequence seq); |
27 | 27 |
28 public class Stub implements OutputParser { | 28 public class Stub implements OutputParser { |
29 private boolean shallDump; | |
30 public Stub() { | |
31 this(false); | |
32 } | |
33 public Stub(boolean dump) { | |
34 shallDump = dump; | |
35 } | |
29 public void parse(CharSequence seq) { | 36 public void parse(CharSequence seq) { |
30 // no-op | 37 if (shallDump) { |
38 System.out.println(seq); | |
39 } | |
40 // else no-op | |
31 } | 41 } |
32 } | 42 } |
33 } | 43 } |