Browse Source

Fix boxing warnings in PushProcessTest

Change-Id: I5114968536853fb530b8a96c10def675e39c884f
stable-1.1
Tomasz Zarna 13 years ago
parent
commit
90c96eb903
  1. 14
      org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java

14
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java

@ -99,7 +99,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
"refs/heads/master", false, null, null); "refs/heads/master", false, null, null);
final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master", final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master",
ObjectId.fromString("ac7e7e44c1885efb472ad54a78327d66bfc4ecef")); ObjectId.fromString("ac7e7e44c1885efb472ad54a78327d66bfc4ecef"));
testOneUpdateStatus(rru, ref, Status.OK, true); testOneUpdateStatus(rru, ref, Status.OK, Boolean.TRUE);
} }
/** /**
@ -146,7 +146,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
"refs/heads/master", true, null, null); "refs/heads/master", true, null, null);
final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master", final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master",
ObjectId.fromString("2c349335b7f797072cf729c4f3bb0914ecb6dec9")); ObjectId.fromString("2c349335b7f797072cf729c4f3bb0914ecb6dec9"));
testOneUpdateStatus(rru, ref, Status.OK, false); testOneUpdateStatus(rru, ref, Status.OK, Boolean.FALSE);
} }
/** /**
@ -159,7 +159,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
final RemoteRefUpdate rru = new RemoteRefUpdate(db, final RemoteRefUpdate rru = new RemoteRefUpdate(db,
"ac7e7e44c1885efb472ad54a78327d66bfc4ecef", "ac7e7e44c1885efb472ad54a78327d66bfc4ecef",
"refs/heads/master", false, null, null); "refs/heads/master", false, null, null);
testOneUpdateStatus(rru, null, Status.OK, true); testOneUpdateStatus(rru, null, Status.OK, Boolean.TRUE);
} }
/** /**
@ -173,7 +173,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
"refs/heads/master", false, null, null); "refs/heads/master", false, null, null);
final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master", final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master",
ObjectId.fromString("2c349335b7f797072cf729c4f3bb0914ecb6dec9")); ObjectId.fromString("2c349335b7f797072cf729c4f3bb0914ecb6dec9"));
testOneUpdateStatus(rru, ref, Status.OK, true); testOneUpdateStatus(rru, ref, Status.OK, Boolean.TRUE);
} }
/** /**
@ -217,7 +217,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
.fromString("ac7e7e44c1885efb472ad54a78327d66bfc4ecef")); .fromString("ac7e7e44c1885efb472ad54a78327d66bfc4ecef"));
final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master", final Ref ref = new ObjectIdRef.Unpeeled(Ref.Storage.LOOSE, "refs/heads/master",
ObjectId.fromString("ac7e7e44c1885efb472ad54a78327d66bfc4ecef")); ObjectId.fromString("ac7e7e44c1885efb472ad54a78327d66bfc4ecef"));
testOneUpdateStatus(rru, ref, Status.OK, true); testOneUpdateStatus(rru, ref, Status.OK, Boolean.TRUE);
} }
/** /**
@ -290,7 +290,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
advertisedRefs.add(refToChange); advertisedRefs.add(refToChange);
executePush(); executePush();
assertEquals(Status.OK, rruOk.getStatus()); assertEquals(Status.OK, rruOk.getStatus());
assertEquals(true, rruOk.isFastForward()); assertTrue(rruOk.isFastForward());
assertEquals(Status.NON_EXISTING, rruReject.getStatus()); assertEquals(Status.NON_EXISTING, rruReject.getStatus());
} }
@ -384,7 +384,7 @@ public class PushProcessTest extends SampleDataRepositoryTestCase {
final PushResult result = executePush(); final PushResult result = executePush();
assertEquals(expectedStatus, rru.getStatus()); assertEquals(expectedStatus, rru.getStatus());
if (fastForward != null) if (fastForward != null)
assertEquals(fastForward.booleanValue(), rru.isFastForward()); assertEquals(fastForward, Boolean.valueOf(rru.isFastForward()));
return result; return result;
} }

Loading…
Cancel
Save