]> source.dussan.org Git - jgit.git/commit
RepoCommandTest: Extract method to assert file contents 80/131680/1
authorIvan Frade <ifrade@google.com>
Tue, 30 Oct 2018 19:31:48 +0000 (12:31 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 30 Oct 2018 20:08:16 +0000 (13:08 -0700)
commit17dbaa4fdd06524da18c37299842832c5d00e24b
tree18c4516ecf5b449a05062621e0fc230dc1ca57a3
parentd0f44d43968e83699e87d6dcc73eb86de203e0a9
RepoCommandTest: Extract method to assert file contents

Many tests verify the contents of files in a try-with-resources
incantation that clutters the code.

Extract that verification to an "assertContents" method, that is easier
to read.

Change-Id: If430eac6f5b9ae352e42b2d43867ceb6cd618fbb
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java