@@ -102,8 +102,7 @@ public void tearDown() {
102
102
@ Test
103
103
public void testGetHistory () throws Exception {
104
104
File root = new File (repository .getSourceRoot (), "mercurial" );
105
- MercurialRepository mr
106
- = (MercurialRepository ) RepositoryFactory .getRepository (root );
105
+ MercurialRepository mr = (MercurialRepository ) RepositoryFactory .getRepository (root );
107
106
History hist = mr .getHistory (root );
108
107
List <HistoryEntry > entries = hist .getHistoryEntries ();
109
108
assertEquals (REVISIONS .length , entries .size ());
@@ -230,8 +229,7 @@ public void testGetHistoryBranch() throws Exception {
230
229
@ Test
231
230
public void testGetHistoryGet () throws Exception {
232
231
File root = new File (repository .getSourceRoot (), "mercurial" );
233
- MercurialRepository mr
234
- = (MercurialRepository ) RepositoryFactory .getRepository (root );
232
+ MercurialRepository mr = (MercurialRepository ) RepositoryFactory .getRepository (root );
235
233
String exp_str = "This will be a first novel of mine.\n "
236
234
+ "\n "
237
235
+ "Chapter 1.\n "
@@ -261,8 +259,7 @@ public void testGetHistoryGet() throws Exception {
261
259
@ Test
262
260
public void testgetHistoryGetForAll () throws Exception {
263
261
File root = new File (repository .getSourceRoot (), "mercurial" );
264
- MercurialRepository mr
265
- = (MercurialRepository ) RepositoryFactory .getRepository (root );
262
+ MercurialRepository mr = (MercurialRepository ) RepositoryFactory .getRepository (root );
266
263
267
264
for (String rev : REVISIONS_novel ) {
268
265
InputStream input = mr .getHistoryGet (root .getCanonicalPath (),
@@ -279,8 +276,7 @@ public void testgetHistoryGetForAll() throws Exception {
279
276
@ Test
280
277
public void testGetHistoryGetRenamed () throws Exception {
281
278
File root = new File (repository .getSourceRoot (), "mercurial" );
282
- MercurialRepository mr
283
- = (MercurialRepository ) RepositoryFactory .getRepository (root );
279
+ MercurialRepository mr = (MercurialRepository ) RepositoryFactory .getRepository (root );
284
280
String exp_str = "This is totally plaintext file.\n " ;
285
281
byte [] buffer = new byte [1024 ];
286
282
0 commit comments