{"id":304,"date":"2009-05-09T09:28:00","date_gmt":"2009-05-09T09:28:00","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/?p=304"},"modified":"2009-05-09T09:28:00","modified_gmt":"2009-05-09T09:28:00","slug":"junit-4-6-ist-raus","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2009\/05\/junit-4-6-ist-raus\/","title":{"rendered":"JUnit 4.6 ist raus"},"content":{"rendered":"<p>Seit l\u00e4ngerem gibt es mal wieder in Update in <a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=15278&amp;package_id=12472\">JUnit<\/a>. Das Projekt ist relativ fehlerfrei und daher ist das neue Release kein Bug-Fix-Release, sondern <a href=\"http:\/\/sourceforge.net\/project\/shownotes.php?release_id=675664&amp;group_id=15278\">JUnit 4.6<\/a> integriert einige interessante Neuigkeiten.<\/p>\n<p>MaxCore:<\/p>\n<blockquote>\n<pre>JUnit now includes a new experimental Core, `MaxCore`.  `MaxCore`<br \/>remembers the results of previous test runs in order to run new<br \/>tests out of order.  `MaxCore` prefers new tests to old tests, fast<br \/>tests to slow tests, and recently failing tests to tests that last<br \/>failed long ago.  There's currently not a standard UI for running<br \/>`MaxCore` included in JUnit, but there is a UI included in the JUnit<br \/>Max Eclipse plug-in.<\/pre>\n<p><\/p><\/blockquote>\n<p>Scheduling-Strategien f\u00fcr parallele Abarbeitung von Tests:<\/p>\n<blockquote><p>  <\/p>\n<pre>`JUnitCore` now includes an experimental method that allows you to<br \/>specify a model of the `Computer` that runs your tests.  Currently,<br \/>the only built-in Computers are the default, serial runner, and two<br \/>runners provided in the `ParallelRunner` class:<br \/>`ParallelRunner.classes()`, which runs classes in parallel, and<br \/>`ParallelRunner.methods()`, which runs classes and methods in parallel.<br \/>This feature is currently less stable than MaxCore, and may be<br \/>merged with MaxCore in some way in the future.<\/pre>\n<p><\/p><\/blockquote>\n<p>Dann lassen sich Arrays mit Flie\u00dfkommazahlen auch mit einem Delta vergleichen:<\/p>\n<pre>assertArrayEquals(new double[] {1.0, 2.0}, new double[] {1.0, 2.0}, 0.01);<\/pre>\n<p>Das <a href=\"http:\/\/www.tutego.de\/seminare\/java-schulung\/junit-seminar-testen-java-junit-schulung-kurs.html\">tutego-JUnit-Seminar<\/a> ber\u00fccksichtigt diese \u00c4nderungen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seit l\u00e4ngerem gibt es mal wieder in Update in JUnit. Das Projekt ist relativ fehlerfrei und daher ist das neue Release kein Bug-Fix-Release, sondern JUnit 4.6 integriert einige interessante Neuigkeiten. MaxCore: JUnit now includes a new experimental Core, `MaxCore`. `MaxCore`remembers the results of previous test runs in order to run newtests out of order. `MaxCore` [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[4],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-open-source"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":0,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}