@Test public void test_equals() { Assertions.assertThrows(HyenaServiceException.class, () -> { HyenaAssert.equals("aaa", "bbb", "expect HyenaServiceException"); log.error("test case fail!!!"); Assertions.fail(); }); }
public static void equals(String expect, String actual, String message) { if (!StringUtils.equals(expect, actual)) { throw new HyenaServiceException(message, Level.WARN); } }
HyenaAssert { public static void equals(String expect, String actual, String message) { if (!StringUtils.equals(expect, actual)) { throw new HyenaServiceException(message, Level.WARN); } } }
HyenaAssert { public static void equals(String expect, String actual, String message) { if (!StringUtils.equals(expect, actual)) { throw new HyenaServiceException(message, Level.WARN); } } private  HyenaAssert(); }
HyenaAssert { public static void equals(String expect, String actual, String message) { if (!StringUtils.equals(expect, actual)) { throw new HyenaServiceException(message, Level.WARN); } } private  HyenaAssert(); static void isTrue(boolean expression, String message); static void isTrue(boolean expression, int code, String message); static void isTrue(boolean expression, int code, String message, Level logLevel); static void isTrue(boolean expression, int code,
                                                        String message, Level logLevel,
                                                        Class<T> exceptionType); static void equals(String expect, String actual, String message); static void notBlank(String expression, String message); static void notBlank(String expression, int code, String message); static void notBlank(String expression, int code, String message, Level logLevel); static void notBlank(String expression, int code,
                                                          String message, Level logLevel,
                                                          Class<T> exceptionType); static void isNull(Object obj, String message); static void isNull(Object obj, int code, String message); static void isNull(Object obj, int code, String message, Level logLevel); static void isNull(Object obj, int code,
                                                        String message, Level logLevel,
                                                        Class<T> exceptionType); static void notNull(Object obj, String message); static void notNull(Object obj, int code, String message); static void notNull(Object obj, int code, String message, Level logLevel); static void notNull(Object obj, int code,
                                                         String message, Level logLevel,
                                                         Class<T> exceptionType); static void notEmpty(Collection<?> obj, String message); }
HyenaAssert { public static void equals(String expect, String actual, String message) { if (!StringUtils.equals(expect, actual)) { throw new HyenaServiceException(message, Level.WARN); } } private  HyenaAssert(); static void isTrue(boolean expression, String message); static void isTrue(boolean expression, int code, String message); static void isTrue(boolean expression, int code, String message, Level logLevel); static void isTrue(boolean expression, int code,
                                                        String message, Level logLevel,
                                                        Class<T> exceptionType); static void equals(String expect, String actual, String message); static void notBlank(String expression, String message); static void notBlank(String expression, int code, String message); static void notBlank(String expression, int code, String message, Level logLevel); static void notBlank(String expression, int code,
                                                          String message, Level logLevel,
                                                          Class<T> exceptionType); static void isNull(Object obj, String message); static void isNull(Object obj, int code, String message); static void isNull(Object obj, int code, String message, Level logLevel); static void isNull(Object obj, int code,
                                                        String message, Level logLevel,
                                                        Class<T> exceptionType); static void notNull(Object obj, String message); static void notNull(Object obj, int code, String message); static void notNull(Object obj, int code, String message, Level logLevel); static void notNull(Object obj, int code,
                                                         String message, Level logLevel,
                                                         Class<T> exceptionType); static void notEmpty(Collection<?> obj, String message);  }