Download bad tests good tests Free Java Code
Description
Book devoted to tests. Real life examples of not so perfect tests, and discussion about how to improve them.
Icons
Source Files
The download file bad-tests-good-tests-master.zip has the following entries.
README.asciidoc/* ww w . j a va 2 s.c om*/
book.txt
bookinfo.txt
btgt.sh
code/asserting_private_methods/src/main/java/com/practicalunittesting/AndroidTransaction.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/AndroidTransactionState.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/AndroidTransactionStep.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/Client.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/ClientMessage.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/ExtendedState.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/Processor.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/RequestType.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/ResultCode.java
code/asserting_private_methods/src/main/java/com/practicalunittesting/TxDTO.java
code/asserting_private_methods/src/test/java/com/practicalunittesting/CustomAssertionsTest.java
code/asserting_private_methods/src/test/java/com/practicalunittesting/OriginalTest.java
code/build.gradle
code/builders/src/test/java/com/practicalunittesting/BigDecimalBuilderTest.java
code/change_test_after_logic_is_changed/src/main/java/com/practicalunittesting/ExternalUser.java
code/change_test_after_logic_is_changed/src/main/java/com/practicalunittesting/InternalUser.java
code/change_test_after_logic_is_changed/src/main/java/com/practicalunittesting/Transaction.java
code/change_test_after_logic_is_changed/src/main/java/com/practicalunittesting/User.java
code/change_test_after_logic_is_changed/src/test/java/com/practicalunittesting/TransactionTest.java
code/fizzbuzz/src/main/java/com/practicalunittesting/FizzBuzz.java
code/fizzbuzz/src/test/java/com/practicalunittesting/testng/FizzBuzzTest.java
code/fizzbuzz_original/src/main/java/com/practicalunittesting/FizzBuzz.java
code/fizzbuzz_original/src/test/java/com/practicalunittesting/FizzBuzzTest.java
code/localized_exceptions/src/main/java/com/practicalunittesting/MaliciousMyList.java
code/localized_exceptions/src/main/java/com/practicalunittesting/MyList.java
code/localized_exceptions/src/test/java/com/practicalunittesting/MaliciousMyListTest.java
code/localized_exceptions/src/test/java/com/practicalunittesting/updated/MyListCatchExceptionTest.java
code/localized_exceptions/src/test/java/com/practicalunittesting/updated/MyListTryCatchFestAssertTest.java
code/localized_exceptions/src/test/java/com/practicalunittesting/updated/MyListTryCatchTest.java
code/pager/src/main/java/com/practicalunittesting/Pager.java
code/pager/src/test/java/com/practicalunittesting/PagerTest.java
code/settings.gradle
code/thread_sleep/src/test/java/com/practicalunittesting/SynchronousExecutorService.java
code/thread_sleep_memcached/src/main/java/com/practicalunittesting/MemcachedRepository.java
code/thread_sleep_memcached/src/test/java/com/practicalunittesting/MemcachedRepositoryStaticValuesTest.java
code/thread_sleep_memcached/src/test/java/com/practicalunittesting/MemcachedRepositoryTest.java
code/thread_sleep_memcached/src/test/java/com/practicalunittesting/MemcachedRepositoryTimeoutTest.java
code/true_false/src/main/java/com/practicalunittesting/MockServer.java
code/true_false/src/main/java/com/practicalunittesting/ResponseType.java
code/true_false/src/test/java/com/practicalunittesting/BuilderTest.java
code/true_false/src/test/java/com/practicalunittesting/ConstantsTest.java
code/true_false/src/test/java/com/practicalunittesting/OriginalTest.java
code/true_false/src/test/java/com/practicalunittesting/PrivateMethodTest.java
code/what_is_asserted/src/main/java/com/practicalunittesting/CompilerSupport.java
code/what_is_asserted/src/main/java/com/practicalunittesting/CompilerSupportFactory.java
code/what_is_asserted/src/test/java/com/practicalunittesting/CompilerTest.java
docinfo.xml
images/600/work_in_progress.png
images/72/work_in_progress.png
images/cover/cover_btgt_a4.jpg
images/cover/cover_btgt_usletter.jpg
images/icons/callouts/1.png
images/icons/callouts/10.png
images/icons/callouts/10_big.png
images/icons/callouts/11.png
images/icons/callouts/12.png
images/icons/callouts/13.png
images/icons/callouts/14.png
images/icons/callouts/15.png
images/icons/callouts/1_big.png
images/icons/callouts/2.png
images/icons/callouts/2_big.png
images/icons/callouts/3.png
images/icons/callouts/3_big.png
images/icons/callouts/4.png
images/icons/callouts/4_big.png
images/icons/callouts/5.png
images/icons/callouts/5_big.png
images/icons/callouts/6.png
images/icons/callouts/6_big.png
images/icons/callouts/7.png
images/icons/callouts/7_big.png
images/icons/callouts/8.png
images/icons/callouts/8_big.png
images/icons/callouts/9.png
images/icons/callouts/9_big.png
images/icons/caution.png
images/icons/example.png
images/icons/home.png
images/icons/important.png
images/icons/next.png
images/icons/note.png
images/icons/prev.png
images/icons/tip.png
images/icons/up.png
images/icons/warning.png
images/icons_epub/callouts/1.png
images/icons_epub/callouts/10.png
images/icons_epub/callouts/11.png
images/icons_epub/callouts/12.png
images/icons_epub/callouts/13.png
images/icons_epub/callouts/14.png
images/icons_epub/callouts/15.png
images/icons_epub/callouts/2.png
images/icons_epub/callouts/3.png
images/icons_epub/callouts/4.png
images/icons_epub/callouts/5.png
images/icons_epub/callouts/6.png
images/icons_epub/callouts/7.png
images/icons_epub/callouts/8.png
images/icons_epub/callouts/9.png
images/icons_epub/note.png
images/icons_epub/tip.png
images/icons_epub/warning.png
images/icons_html/callouts/1.png
images/icons_html/callouts/10.png
images/icons_html/callouts/11.png
images/icons_html/callouts/12.png
images/icons_html/callouts/13.png
images/icons_html/callouts/14.png
images/icons_html/callouts/15.png
images/icons_html/callouts/2.png
images/icons_html/callouts/3.png
images/icons_html/callouts/4.png
images/icons_html/callouts/5.png
images/icons_html/callouts/6.png
images/icons_html/callouts/7.png
images/icons_html/callouts/8.png
images/icons_html/callouts/9.png
images/icons_html/note.png
images/icons_html/tip.png
images/icons_html/warning.png
images/icons_kindle/note.png
images/icons_kindle/tip.png
images/icons_kindle/warning.png
images/put/cover_junit_a4_300.jpg
images/put/cover_testng_a4_300.jpg
images/work_in_progress.svg
preface.txt
put_advertisment.txt
resources/custom-docbook-font-11.xsl
resources/custom-docbook_a4.xsl
resources/custom-docbook_btgt_a4.xsl
resources/custom-docbook_btgt_usletter.xsl
resources/custom-docbook_usletter.xsl
resources/custom-format.xml
text.txt
Download
Click the following link to download bad-tests-good-tests-master.zip.
bad-tests-good-tests-master.zip