{"id":110056,"date":"2020-06-12T10:17:00","date_gmt":"2020-06-12T10:17:00","guid":{"rendered":"https:\/\/www.softwaretestinghelp.com\/?page_id=110056"},"modified":"2025-04-01T08:14:47","modified_gmt":"2025-04-01T08:14:47","slug":"junit-tutorial","status":"publish","type":"page","link":"https:\/\/www.softwaretestinghelp.com\/junit-tutorial\/","title":{"rendered":"JUnit Tutorial For Beginners &#8211; What Is JUnit Testing"},"content":{"rendered":"<p><strong>This JUnit Tutorial for Beginners explains what is Unit Testing, Test Coverage and What is JUnit Testing Framework along with Examples of JUnit Testcases:<\/strong><\/p>\n<p>This JUnit series has been prepared to focus on our audiences who are absolute beginners as well as those who have a good knowledge of Java or JUnit with a keen interest in learning JUnit.<\/p>\n<p>The series in totality has been put forth in such a way in which you will able to interpret the difference between JUnit 4 and Junit 5.<\/p>\n<p><em><strong>Let&#8217;s start exploring JUnit now!!<\/strong><\/em><\/p>\n<p><em><strong> <\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/12\/JUnit.png\"><img decoding=\"async\" class=\"alignnone wp-image-112532 size-full\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/12\/JUnit.png\" alt=\"JUnit tutorial\" width=\"650\" height=\"366\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/12\/JUnit.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/12\/JUnit-300x169.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<h2><span style=\"color: #000000;\">List Of Tutorials In This JUnit Series<\/span><\/h2>\n<p><span style=\"color: #ff6600;\"><strong>Tutorial #1:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-tutorial\/\">JUnit Tutorial For Beginners &#8211; What Is JUnit Testing?<\/a>[This Tutorial]<br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #2:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/download-and-install-junit\/\">Download, Install And Configure JUnit In Eclipse<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #3:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-tests-examples\/\">JUnit Tests: How To Write JUnit Test Cases With Examples<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #4:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-test-fixture-with-examples\/\">What Is A JUnit Test Fixture: Tutorial With JUnit 4 Examples<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #5:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/multiple-ways-to-execute-junit-tests\/\">Multiple Ways To Execute JUnit Tests<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #6:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-annotations-tutorial\/\">List Of JUnit Annotations: JUnit 4 Vs JUnit 5<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #7:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-ignore-test-cases\/\">JUnit Ignore Test Case: JUnit 4 @Ignore Vs JUnit 5 @Disabled<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #8:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-test-suite\/\">JUnit Test Suite &amp; Filtering Test Cases: JUnit 4 Vs JUnit 5<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #9:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/juni-test-execution-order\/\">JUnit Test Execution Order: Order Of Tests JUnit 4 Vs JUnit 5<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #10:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-5-repeat-tests\/\">How To Use JUnit 5 Annotation @RepeatedTest With Examples<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #11:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-5-nested-class\/\">JUnit 5 Nested Class: @Nested Tutorial With Examples<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #12:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/display-name-and-conditional-test-execution\/\">JUnit 5 Custom Display Name &amp; Conditional Test Execution<\/a><br \/>\n<strong><span style=\"color: #ff6600;\">Tutorial #13:\u00a0<\/span><\/strong><a href=\"https:\/\/www.softwaretestinghelp.com\/junit-vs-testng\/\">JUnit Vs TestNG \u2013 What Are The Differences<\/a><br \/>\n<strong><span style=\"color: #ff6600;\">Tutorial #14: <\/span><\/strong><a href=\"https:\/\/www.softwaretestinghelp.com\/junit-api-additional-classes\/\">JUnit API Additional Classes: TestSuite, TestCase And TestResult<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #15:<\/strong><\/span> <a href=\"https:\/\/www.softwaretestinghelp.com\/junit-assertions\/\">JUnit Assertions: AssertEquals And AsssertSame With Examples<\/a><br \/>\n<strong><span style=\"color: #ff6600;\">Tutorial #16:<\/span><\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/grouped-assertions-in-junit-5\/\">Grouped Assertions In JUnit 5 \u2013 Tutorial With Examples<\/a><\/p>\n<hr \/>\n<h2>JUnit Tutorial<\/h2>\n<p>In a typical, test-driven development (TDD) approach, developers focus on unit testing every chunk of the code they develop. The better the testing of a product, the better is the quality of it. We all know, that testing should go parallelly with each passing phase of the software development life cycle.<\/p>\n<p>Starting from requirement and analysis to design &amp; development till maintenance, every phase should have an appropriate testing phase associated with it. Unit testing after development is what is advisable to build a robust application and to have an optimized code in place.<\/p>\n<h3><span style=\"color: #ff6600;\">What Is Unit Testing?<\/span><\/h3>\n<p>Unit testing is testing of a small logic or a code to verify that the output of the code is as expected on the input of a specific data and\/or on satisfying certain condition(s). Usually, the unit tests are supposed to be independent of the other tests.<\/p>\n<p>Unit tests are not feasible to test complex interfaces with another application or third party\/external services. A unit test targets only a small unit of code that could be just a method or a class.<\/p>\n<p>It helps the developer discover issues in the current logic and any regression failures due to the current change. Besides, it also provides insight into how the current code could impact future implementation.<\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/UnitTesting_Img1.png\"><img decoding=\"async\" class=\"alignnone wp-image-110070 size-full\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/UnitTesting_Img1.png\" alt=\"Unit Testing\" width=\"700\" height=\"287\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/UnitTesting_Img1.png 700w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/UnitTesting_Img1-300x123.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<h3><span style=\"color: #ff6600;\">Test Coverage<\/span><\/h3>\n<p>The percentage of code that is tested by unit tests is called <em>test coverage<\/em>.<\/p>\n<p>The objective is to have better and more test coverage of the code which in future continues to add up to the regression test suite and helps to increase automated test execution and verification, thereby, reducing the manual effort involved in regression testing.<\/p>\n<p>Running tests automatically helps to identify software regression issues introduced by changes in the current code. Having a high-test coverage of your code allows you to continue developing features without having to perform a lot of manual tests.<\/p>\n<p>Many come with a question as to <em>how much test coverage is essential<\/em>. The answer to this question is that there is no hard and fast rule to how much coverage of tests is essential; it is all judgemental. The judgment gets better with experience on the application workflow and historic knowledge of the defects found so far.<\/p>\n<p>Efficient tests need not necessarily mean having 100% test coverage or incorporating automation tests and\/or unit tests for every single branch or path coverage.<\/p>\n<p>Certain trivial verifications like a validation error message for a mandatory field left blank that hasn\u2019t flawed since years need not be included in the regression suite.<\/p>\n<h3><span style=\"color: #ff6600;\">Manual Testing Vs Automated Testing<\/span><\/h3>\n<p><strong>Unit Testing can be done via two approaches:<\/strong><\/p>\n<ol>\n<li>Manual testing<\/li>\n<li>Automated testing<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/JUnitTestingApproaches_Image2.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-110069\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/JUnitTestingApproaches_Image2.png\" alt=\"JUnit Testing Approaches\" width=\"548\" height=\"153\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/JUnitTestingApproaches_Image2.png 548w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/11\/JUnitTestingApproaches_Image2-300x84.png 300w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><\/a><\/p>\n<p><strong>In both the approaches the workflow remains common:<\/strong><\/p>\n<ol>\n<li>Creating a test case<\/li>\n<li>Reviewing it<\/li>\n<li>Rework if corrections needed<\/li>\n<li>Execute the test case<\/li>\n<li>Analyze the test results<\/li>\n<\/ol>\n<p><strong>Automated Testing is preferred over Manual Testing for the below reasons:<\/strong><\/p>\n\n<div id=\"tablepress-1022-scroll-wrapper\" class=\"tablepress-scroll-wrapper\">\n<table id=\"tablepress-1022\" class=\"tablepress tablepress-id-1022 tablepress-responsive\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Manual Testing<\/th><th class=\"column-2\">Automated testing <\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">When a testcase is executed manually without an intervention of a tool is called manual testing.<\/td><td class=\"column-2\">When a testcase is executed with the help of a tool without much manual intervention is called automated testing.<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">Repetitive manual efforts are included.<\/td><td class=\"column-2\">Repetitive manual efforts may be avoided.<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">Human efforts in manual testing could be erroneous and time consuming. <\/td><td class=\"column-2\">Automation tests are faster and error free compared to the manual efforts. <\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">Testing resources required are more for running every testcase manually thereby, adding to the investment in the resources.<\/td><td class=\"column-2\">Less testers are needed to execute automated tests using the designated automated tool(s) hence there is less investment in testing resources thus adding to the profitability.<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">Manual testing has to be limited to a small test coverage considering the timeline restrictions. Hence, there is a risk of skipping many test scenarios thus leading to risk of defect leakage as well.<\/td><td class=\"column-2\">Many different test scenarios can be automated and can be executed multiple times even under time and resource crisis hence leading to better test coverage and better quality of the deliverable.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<!-- #tablepress-1022 from cache -->\n<h3><span style=\"color: #ff6600;\">Unit Test Framework<\/span><\/h3>\n<p>We may have the next question as to what does a typical automation unit test case looks like and the framework it follows. The developers use the <strong>Unit Test framework<\/strong> for creating automated unit test cases.<\/p>\n<ol>\n<li>In order to verify if the code is logically working as expected, a testcase with a specific checkpoint or verification criterion is created.<\/li>\n<li>When the testcase is executed, either the criteria\/condition passes or fails.<\/li>\n<li>A log is generated as per the testcase workflow.<\/li>\n<li>The framework will report a summarized result on the passed test cases and failed ones.<\/li>\n<li>Per the severity of the failure, the testcase may not proceed further and may stop subsequent execution.<\/li>\n<li>There could be certain low severe failures that get reported in the log however it doesn\u2019t show a hard stop but continues without blocking the further test steps.<\/li>\n<\/ol>\n<h2>What Is JUnit?<\/h2>\n<p>JUnit is an open-source framework that is used for writing and executing unit tests in Java programming language. It is one of the best-known unit testing frameworks.<\/p>\n<p><strong> The below image shows the different well-known automation unit testing tools.<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/AutomationTestingTools_Image3.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-129378\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/AutomationTestingTools_Image3.png\" alt=\"Junit \" width=\"519\" height=\"302\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/AutomationTestingTools_Image3.png 519w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/AutomationTestingTools_Image3-300x175.png 300w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<p><strong>Enlisted below are the attributes that JUnit is packaged with:<\/strong><\/p>\n<ul>\n<li>There is a humongous list of Annotations to identify, execute, and support many features for the test methods.<\/li>\n<li>There are Assertions for verifying the expected results.<\/li>\n<li>It provides Test Runner for executing the tests.<\/li>\n<li>JUnit provides a basic built-in template so that you may write small, simple test cases in no time.<\/li>\n<li>JUnit tests help you to write independent modules, thereby bettering the coverage of the test and the quality of the application.<\/li>\n<li>It not only allows easy creation and execution of tests but also presents the developer with a clean and clear explicit report that eliminates the need for the developer to search through the path of the reports and test results.<\/li>\n<li>Until the test execution is sailing through smoothly, you may relax watching at the green-colored test progress bar that shows while execution is in progress whereas it alerts you in \u2018red\u2019 as soon as the test fails a verification checkpoint.<\/li>\n<li>Test suites can be created in order to put a sequence or related set of test cases together.<\/li>\n<\/ul>\n<h3>Examples Of JUnit Testcase<\/h3>\n<p>Given below are the two examples of a very basic Hello World program to get an understanding of how a JUnit test class looks like or how different does it look when compared with a usual Java class file.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Example #1:<\/strong><\/span><\/p>\n<p>Here is a JUnit testcase HelloWorldJUnit.java that verifies that the string \u201cHello world\u201d matches the string \u201chello world\u201d which fails on execution, as the match is case sensitive. Hence, the two strings don\u2019t match and the test <strong>fails<\/strong>.<\/p>\n<p><strong>The code for HelloWorldJUnit.java<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">package demo.tests;\r\nimport static org.junit.Assert.*;\r\nimport org.junit.Test;\r\npublic class HelloWorldJUnit {\r\n\t@Test\r\n\tpublic void test() {\r\n\t\tassertEquals(&quot;Hello world&quot;,&quot;hello world&quot;);\t\r\n\t}\r\n}\r\n<\/pre>\n<p><strong><span style=\"text-decoration: underline;\">Example #2:<\/span><\/strong><\/p>\n<p>Here, we will see how a usual <strong>Java<\/strong> class file <strong>interacts<\/strong> with a <strong>JUnit<\/strong> testcase. We create a <strong>Java<\/strong> class file <strong><em>HelloWorld_Java.java<\/em><\/strong> with a constructor that allows us to pass a String value and a method getText() to fetch the string value.<\/p>\n<p><strong>JUnit<\/strong> Test class <strong><em>HelloWorldJUnit.java<\/em><\/strong> is created such that the class object for HelloWorld_Java is created and the actual string value is passed to the object. The assertEquals() from JUnit verifies if the expected and actual string values match.<\/p>\n<p><strong>The code for HelloWorld_Java.java<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">package demo.tests;\r\nimport static org.junit.Assert.*;\r\nimport org.junit.Test;\r\npublic class HelloWorldJUnit {\r\n\t@Test\r\n\tpublic void test() {\r\n\t\tassertEquals(&quot;Hello world&quot;,&quot;hello world&quot;);\t\r\n\t}\r\n}\r\n<\/pre>\n<p><strong>The code for HelloWorldJUnit.java<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">package demo.tests;\r\npublic class HelloWorldJUnit{\r\n\tprivate String s;\r\n\tpublic HelloWorld_Java(String s) \r\n{\r\n\t\t@Test\r\n\t\tpublic void test() {\r\n\t\tHelloWorld_Java hw=new HelloWorld_Java(&quot;Hello World&quot;);\r\n\t\tassertEquals(hw.getText(),&quot;Hello World&quot;);\t\r\n}\r\n}\r\n<\/pre>\n<p>The resultant looks like below where we see the two strings match. Hence, JUnit test is <strong>passed.<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/BasicExample2.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-129380\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/BasicExample2.png\" alt=\"BasicExample2\" width=\"700\" height=\"216\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/BasicExample2.png 700w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/05\/BasicExample2-300x93.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>When it comes to providing you a quick overview of what JUnit is and what it does,<strong><em>\u00a0JUnit<\/em><\/strong> is a beautifully crafted framework that enables you to create and execute unit tests in an automated way.<\/p>\n<p>It is an open-source tool yet so hassle-free. Be it the creation of test cases or execution of a testcase or reporting after execution or maintaining the tests, JUnit is elegant in every aspect. Yes, it can fail elegantly too; and we will see how that happens in our upcoming tutorial as we move on.<\/p>\n<p><b>About the Author: <\/b>This tutorial has been written by\u00a0<span class=\"il\">Shobha<\/span> D. She works as a Project Lead and comes with 9+ years of experience in manual, automation and API Testing.<\/p>\n<p><em><strong> Let us continue to illuminate deeper on every aspect of JUNIT here-on.<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/download-and-install-junit\/\"><strong>NEXT Tutorial<\/strong><\/a><\/p>\n\r\n\t\t\t<div id=\"daexthefup-container\"\r\n\t\t\t\tclass=\"daexthefup-container daexthefup-layout-stacked daexthefup-alignment-center\"\r\n\t\t\t\tdata-post-id=\"110056\">\r\n\r\n\t\t\t\t<div class=\"daexthefup-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefup-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefup-title\">Was this helpful?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefup-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefup-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-yes daexthefup-button daexthefup-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_up\">\r\n                        <path class=\"thumb-up-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-up-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-no daexthefup-button daexthefup-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_down\">\r\n                        <path class=\"thumb-down-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-down-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-comment\">\r\n\t\t\t\t\t<div class=\"daexthefup-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefup-comment-label\" class=\"daexthefup-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefup-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefup-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefup-comment-textarea\" class=\"daexthefup-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Type your message\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefup-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-submit daexthefup-button\">Submit<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-cancel daexthefup-button\">Cancel<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-successful-submission-text\">Thanks for your feedback!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>This JUnit Tutorial for Beginners explains what is Unit Testing, Test Coverage and What is JUnit Testing Framework along with Examples of JUnit Testcases: This JUnit series has been prepared to focus on our audiences who are absolute beginners as well as those who have a good knowledge of Java &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"JUnit Tutorial For Beginners &#8211; What Is JUnit Testing\" class=\"read-more button\" href=\"https:\/\/www.softwaretestinghelp.com\/junit-tutorial\/#more-110056\" aria-label=\"Read more about JUnit Tutorial For Beginners &#8211; What Is JUnit Testing\">Read more<\/a><\/p>\n","protected":false},"author":9,"featured_media":112532,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_helpful_pro_status":1,"footnotes":""},"categories":[602],"tags":[],"class_list":{"0":"post-110056","1":"page","2":"type-page","3":"status-publish","4":"has-post-thumbnail","6":"category-junit"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/110056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/comments?post=110056"}],"version-history":[{"count":0,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/110056\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media\/112532"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media?parent=110056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/categories?post=110056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/tags?post=110056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}