<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unit Testing on Infinite Script</title><link>https://www.infinitescript.com/tags/unit-testing/</link><description>Recent content in Unit Testing on Infinite Script</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 24 Feb 2018 07:10:14 +0000</lastBuildDate><atom:link href="https://www.infinitescript.com/tags/unit-testing/index.xml" rel="self" type="application/rss+xml"/><item><title>Getting Started with JUnit 5: Test your Spring MVC Application with it</title><link>https://www.infinitescript.com/2018/02/getting-started-with-junit-5-test-your-spring-mvc-application-with-it/</link><pubDate>Sat, 24 Feb 2018 07:10:14 +0000</pubDate><guid>https://www.infinitescript.com/2018/02/getting-started-with-junit-5-test-your-spring-mvc-application-with-it/</guid><description>&lt;p&gt;In this post, we describe how to use JUnit 5 to test your Spring MVC application with Maven. Before diving into the &lt;code&gt;pom.xml&lt;/code&gt;, it helps to know that JUnit 5 is not a single library but three sub-projects: the &lt;strong&gt;Platform&lt;/strong&gt; (the foundation that discovers and launches tests), &lt;strong&gt;Jupiter&lt;/strong&gt; (the new programming and extension model you actually write tests against), and &lt;strong&gt;Vintage&lt;/strong&gt; (a backward-compatible engine that still runs your old JUnit 3/4 tests). This split is what makes the Maven coordinates below, and the &lt;code&gt;SpringExtension&lt;/code&gt; we plug in later, much less mysterious.&lt;/p&gt;</description></item><item><title>Create Unit Testing Cases in Zend Framework</title><link>https://www.infinitescript.com/2015/03/create-unit-testing-cases-in-zend-framework/</link><pubDate>Tue, 03 Mar 2015 02:30:45 +0000</pubDate><guid>https://www.infinitescript.com/2015/03/create-unit-testing-cases-in-zend-framework/</guid><description>&lt;p&gt;A solid unit test suite is essential for ongoing development in large projects, especially those with many people involved. Going back and manually testing every individual component of an application after every change is impractical. Your unit tests will help alleviate that by automatically testing your application’s components and alerting you when something is not working the same way it was when you wrote your tests.&lt;/p&gt;&#10;&lt;p&gt;The Zend Framework 2 API uses PHPUnit, and so does this tutorial application. A detailed explanation of unit testing is beyond the scope of this tutorial, so we will only provide sample tests for the components in the pages that follow. This tutorial assumes that you already have PHPUnit installed.&lt;/p&gt;</description></item><item><title>Unit Testing for Spring MVC Controllers</title><link>https://www.infinitescript.com/2014/05/unit-testing-of-spring-mvc-controllers/</link><pubDate>Sat, 17 May 2014 02:09:38 +0000</pubDate><guid>https://www.infinitescript.com/2014/05/unit-testing-of-spring-mvc-controllers/</guid><description>&lt;p&gt;Once the services, DAO, and supporting classes are tested, it&amp;rsquo;s time for the controller. Controllers are often the hardest layer to test, so many developers (based on observation) reach for Selenium or, worse, test by hand. That works, but it makes exercising individual logic branches awkward and slow, and no one wants to wait for a browser to spin up before checking in code. The Spring MVC Test framework solves this by driving full controller logic through fast unit tests, and it has lived in Spring&amp;rsquo;s core ever since Spring 4.&lt;/p&gt;</description></item></channel></rss>