// Path: core/src/main/java/com/github/phantomthief/util/ThrowableUtils.java
// public static void changeThrowableMessage(Throwable throwable, Function<String, String> messageChangeFunc) {
//     changeThrowableMessage(throwable, messageChangeFunc.apply(throwable.getMessage()));
// }


import static com.github.phantomthief.util.ThrowableUtils.changeThrowableMessage;
import static com.google.common.base.Preconditions.checkArgument;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package com.github.phantomthief.util;



/**
 * @author w.vela
 * Created on 2019-06-18.
 */
class ThrowableUtilsTest {

    private static final Logger logger = LoggerFactory.getLogger(ThrowableUtilsTest.class);

    @Test
    void test() {
        try {
            checkArgument(false, "myTest");
        } catch (IllegalArgumentException e) {
// Path: core/src/main/java/com/github/phantomthief/util/ThrowableUtils.java
// public static void changeThrowableMessage(Throwable throwable, Function<String, String> messageChangeFunc) {
//     changeThrowableMessage(throwable, messageChangeFunc.apply(throwable.getMessage()));
// }


// Path: core/src/test/java/com/github/phantomthief/util/ThrowableUtilsTest.java
import static com.github.phantomthief.util.ThrowableUtils.changeThrowableMessage;
import static com.google.common.base.Preconditions.checkArgument;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package com.github.phantomthief.util;



/**
 * @author w.vela
 * Created on 2019-06-18.
 */
class ThrowableUtilsTest {

    private static final Logger logger = LoggerFactory.getLogger(ThrowableUtilsTest.class);

    @Test
    void test() {
        try {
            checkArgument(false, "myTest");
        } catch (IllegalArgumentException e) {
            changeThrowableMessage(e, it -> it + "!!!");