xref: /JGit/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/Assert.java (revision 5c5f7c6b146b24f2bd4afae1902df85ad6e57ea3)
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 
12 import static java.lang.Boolean.valueOf;
13 
14 /**
15  * Assertion class
16  */
17 public class Assert {
18 
19 	/**
20 	 * Assert booleans are equal
21 	 *
22 	 * @param expect
23 	 *            expected value
24 	 * @param actual
25 	 *            actual value
26 	 */
assertEquals(boolean expect, boolean actual)27 	public static void assertEquals(boolean expect, boolean actual) {
28 		org.junit.Assert.assertEquals(valueOf(expect), valueOf(actual));
29 	}
30 
31 	/**
32 	 * Assert booleans are equal
33 	 *
34 	 * @param message
35 	 *            message
36 	 * @param expect
37 	 *            expected value
38 	 * @param actual
39 	 *            actual value
40 	 */
assertEquals(String message, boolean expect, boolean actual)41 	public static void assertEquals(String message, boolean expect,
42 			boolean actual) {
43 		org.junit.Assert
44 				.assertEquals(message, valueOf(expect), valueOf(actual));
45 	}
46 }
47