{"id":25,"date":"2004-08-11T09:20:46","date_gmt":"2004-08-10T23:20:46","guid":{"rendered":"http:\/\/www.thunderguy.com\/plusplus\/20050422\/dont-write-useless-junit-tests\/"},"modified":"2005-04-22T09:21:14","modified_gmt":"2005-04-21T23:21:14","slug":"dont-write-useless-junit-tests","status":"publish","type":"post","link":"https:\/\/thunderguy.com\/semicolon\/2004\/08\/11\/dont-write-useless-junit-tests\/","title":{"rendered":"Don&#8217;t write useless Junit tests"},"content":{"rendered":"<p>This may seem obvious, but many JUnit tests are written that don&#8217;t really test anything useful.<\/p>\n<p>Don&#8217;t write tests cases for code that&#8217;s too simple to fail on its own: that would be a waste of time. You&#8217;re supposed to write tests that test your application code, not the test framework or the compiler.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This may seem obvious, but many JUnit tests are written that don&#8217;t really test anything useful. Don&#8217;t write tests cases for code that&#8217;s too simple to fail on its own: that would be a waste of time. You&#8217;re supposed to write tests that test your application code, not the test framework or the compiler.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[4,8],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","tag-java","tag-junit"],"_links":{"self":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":0,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}