String shippWay = "MM"; boolean expression = shippWay.equals(ShippingWayEnum.ZT.getCode()); System.out.println("Assert.isTrue报错");
shippWay = "ZT"; expression = shippWay.equals(ShippingWayEnum.ZT.getCode());
System.out.println(" Assert.isTrue 不报错");
String status = "600";
expression = status.equals("600");
System.out.println("600==600 Assert.isNotTrue 报错");
BigDecimal requestQty = new BigDecimal(10); BigDecimal total = new BigDecimal(10);
expression = requestQty.compareTo(total) > 0 ;
System.out.println("a>b Assert.isNotTrue 不报错");