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