Skip to content

Commit

Permalink
Remove system.out prints
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-costigliola committed Jul 27, 2019
1 parent 4295387 commit 5475807
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.assertj.core.api.Assertions;
import org.assertj.core.api.Condition;
import org.assertj.core.error.BasicErrorMessageFactory;
import org.assertj.core.internal.Failures;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -55,8 +54,6 @@ public void should_filter_when_custom_assert_throws_assertion_error() {
@Test
public void should_filter_when_abstract_custom_assert_fails() {
try {
System.out.println("removeAssertJRelatedElementsFromStackTrace "
+ Failures.instance().isRemoveAssertJRelatedElementsFromStackTrace());
new CustomAssert("").failInAbstractAssert();
} catch (AssertionError e) {
assertThat(e.getStackTrace()).areNot(elementOf(CustomAbstractAssert.class));
Expand All @@ -76,12 +73,7 @@ public void should_not_filter_when_global_remove_option_is_disabled() {
@BeforeEach
@AfterEach
public void enableStackTraceFiltering() {
System.out.println("removeAssertJRelatedElementsFromStackTrace "
+ Failures.instance().isRemoveAssertJRelatedElementsFromStackTrace());
System.out.println("Assertions.setRemoveAssertJRelatedElementsFromStackTrace(true)");
Assertions.setRemoveAssertJRelatedElementsFromStackTrace(true);
System.out.println("removeAssertJRelatedElementsFromStackTrace "
+ Failures.instance().isRemoveAssertJRelatedElementsFromStackTrace());
}

private static Condition<StackTraceElement> elementOf(final Class<?> clazz) {
Expand Down

0 comments on commit 5475807

Please sign in to comment.