You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Assert.java 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) 2012, Robin Rosenberg and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.junit;
  11. import static java.lang.Boolean.valueOf;
  12. /**
  13. * Assertion class
  14. */
  15. public class Assert {
  16. /**
  17. * Assert booleans are equal
  18. *
  19. * @param expect
  20. * expected value
  21. * @param actual
  22. * actual value
  23. */
  24. public static void assertEquals(boolean expect, boolean actual) {
  25. org.junit.Assert.assertEquals(valueOf(expect), valueOf(actual));
  26. }
  27. /**
  28. * Assert booleans are equal
  29. *
  30. * @param message
  31. * message
  32. * @param expect
  33. * expected value
  34. * @param actual
  35. * actual value
  36. */
  37. public static void assertEquals(String message, boolean expect,
  38. boolean actual) {
  39. org.junit.Assert
  40. .assertEquals(message, valueOf(expect), valueOf(actual));
  41. }
  42. }