]> source.dussan.org Git - jgit.git/commit
Fix unit tests using MockSystemReader with user configuation 59/559/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 15 Apr 2010 01:39:19 +0000 (18:39 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 15 Apr 2010 01:39:19 +0000 (18:39 -0700)
commit5c780b387f5d2da42885907a58b6829f0f825263
tree791325d6ea6e016754c89f4491aabcb578ad866a
parent6da38b9474f943b66c6594c58510aec234742669
Fix unit tests using MockSystemReader with user configuation

Since cc905e7d4be "Make Repository.getConfig aware of changed config"
its invalid to have a null result from FileBasedConfig.getFile(), as
the path is used to stat the location on disk before returning the
Config object from Repository.getConfig().

Mock out the isOutdated() method to return false all of the time
in the mock test environment, so we don't crash with an NPE when
this mock user configuration is being called.

Change-Id: I0b4d9cbd346d5dc225ec12674da905c35457fa7c
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java