单元测试断言

package com.spring_boot.guava;

import com.google.common.base.Objects;
import org.junit.Assert;
import org.junit.Test;


/**
 * Created by wanggs on 2017/9/25.
 */
public class TestGuava {
    @Test
    public void test(){
        Assert.assertEquals(Objects.equal("1",null),false);
        Assert.assertFalse(Objects.equal("2",null));
        Assert.assertTrue(true);
        Assert.assertNull(null);
        Assert.assertNotNull("2");
    }

}

你可能感兴趣的:(单元测试断言)