Last active
December 30, 2015 10:19
-
-
Save christopherperry/7815316 to your computer and use it in GitHub Desktop.
Revisions
-
christopherperry revised this gist
Dec 5, 2013 . 1 changed file with 17 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,17 @@ @Test public void happyDebuggingSuckers() throws SecurityException, NoSuchFieldException, IllegalAccessException { Field value = Boolean.class.getDeclaredField("value"); value.setAccessible(true); Boolean trueBool = true; Boolean falseBool = false; value.setBoolean(trueBool, false); value.setBoolean(falseBool, true); Boolean setToTrue = true; assertThat(setToTrue).isFalse(); Boolean setToFalse = false; assertThat(setToFalse).isTrue(); } -
christopherperry created this gist
Dec 5, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ @Test public void happyDebuggingSuckers() throws SecurityException, NoSuchFieldException, IllegalAccessException { Field value = Boolean.class.getDeclaredField("value"); value.setAccessible(true); Boolean manipulatedBoolean = true; value.setBoolean(manipulatedBoolean, false); Boolean setToTrue = true; assertThat(setToTrue).isFalse(); }