// Path: core/src/main/java/com/github/phantomthief/util/MorePreconditions.java
// public static <X extends Throwable> void checkOrThrow(boolean expression, Supplier<X> exception) throws X {
//     if (!expression) {
//         throw exception.get();
//     }
// }


import static com.github.phantomthief.util.MorePreconditions.checkOrThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.io.IOException;
import org.junit.jupiter.api.Test;
package com.github.phantomthief.util;




/**
 * @author w.vela
 * Created on 2020-02-26.
 */
class MorePreconditionsTest {

    @Test
    void test() throws IOException {
// Path: core/src/main/java/com/github/phantomthief/util/MorePreconditions.java
// public static <X extends Throwable> void checkOrThrow(boolean expression, Supplier<X> exception) throws X {
//     if (!expression) {
//         throw exception.get();
//     }
// }


// Path: core/src/test/java/com/github/phantomthief/util/MorePreconditionsTest.java
import static com.github.phantomthief.util.MorePreconditions.checkOrThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.io.IOException;
import org.junit.jupiter.api.Test;

package com.github.phantomthief.util;




/**
 * @author w.vela
 * Created on 2020-02-26.
 */
class MorePreconditionsTest {

    @Test
    void test() throws IOException {
        checkOrThrow(true, IOException::new, "test");