@Test public void testAnonymizeThrowableDtoClassname() { Throwable throwable = createThrowable(NOT_WHITELISTED_CLASSNAME); visit(throwable, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST)); assertThat(throwable.getClassName(), is(ANONYMIZED_TAG)); }
@Test public void testAnonymizeThrowableDtoWhitelistedClassname() { Throwable throwable = createThrowable(WHITELISTED_CLASSNAME); visit(throwable, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST)); assertThat(throwable.getClassName(), is(WHITELISTED_CLASSNAME)); }