Skip to content

Commit 137b872

Browse files
Vladimir Kotalahornace
authored andcommitted
join lines for better readability
1 parent a3d4ed5 commit 137b872

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/MercurialRepositoryTest.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ public void tearDown() {
102102
@Test
103103
public void testGetHistory() throws Exception {
104104
File root = new File(repository.getSourceRoot(), "mercurial");
105-
MercurialRepository mr
106-
= (MercurialRepository) RepositoryFactory.getRepository(root);
105+
MercurialRepository mr = (MercurialRepository) RepositoryFactory.getRepository(root);
107106
History hist = mr.getHistory(root);
108107
List<HistoryEntry> entries = hist.getHistoryEntries();
109108
assertEquals(REVISIONS.length, entries.size());
@@ -230,8 +229,7 @@ public void testGetHistoryBranch() throws Exception {
230229
@Test
231230
public void testGetHistoryGet() throws Exception {
232231
File root = new File(repository.getSourceRoot(), "mercurial");
233-
MercurialRepository mr
234-
= (MercurialRepository) RepositoryFactory.getRepository(root);
232+
MercurialRepository mr = (MercurialRepository) RepositoryFactory.getRepository(root);
235233
String exp_str = "This will be a first novel of mine.\n"
236234
+ "\n"
237235
+ "Chapter 1.\n"
@@ -261,8 +259,7 @@ public void testGetHistoryGet() throws Exception {
261259
@Test
262260
public void testgetHistoryGetForAll() throws Exception {
263261
File root = new File(repository.getSourceRoot(), "mercurial");
264-
MercurialRepository mr
265-
= (MercurialRepository) RepositoryFactory.getRepository(root);
262+
MercurialRepository mr = (MercurialRepository) RepositoryFactory.getRepository(root);
266263

267264
for (String rev : REVISIONS_novel) {
268265
InputStream input = mr.getHistoryGet(root.getCanonicalPath(),
@@ -279,8 +276,7 @@ public void testgetHistoryGetForAll() throws Exception {
279276
@Test
280277
public void testGetHistoryGetRenamed() throws Exception {
281278
File root = new File(repository.getSourceRoot(), "mercurial");
282-
MercurialRepository mr
283-
= (MercurialRepository) RepositoryFactory.getRepository(root);
279+
MercurialRepository mr = (MercurialRepository) RepositoryFactory.getRepository(root);
284280
String exp_str = "This is totally plaintext file.\n";
285281
byte[] buffer = new byte[1024];
286282

0 commit comments

Comments
 (0)