Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Introduction1:46 with Chris Ramacciotti
In this video, I talk briefly about the content that this workshop will cover. In short, you'll learn about using the Spring testing framework to unit test a Spring MVC app, leveraging Mockito as a mocking library, and DBUnit to test our data layer.
Using Git with this Workshop
See the README on Github for information on how to use Git with this repo to follow along with this workshop.
[SOUND] Hi there, I'm Chris and 0:00 I teach Java here at tree house. 0:03 What we're going to talk about today is a unit testing a web application that was 0:08 developed using the Spring Framework. 0:11 If you've spent time in our library you may have watched Craig talk about unit 0:14 testing with JUnit that's a great place to start if you're new to unit testing 0:18 In general, you'll want to unit test an application to ensure that it does indeed 0:23 do what you intend it to do. 0:28 You can use unit test to check for boundary cases or 0:30 special cases, as well as testing that normal functionality is working. 0:33 In general, if you aren't incorporating unit tests, 0:37 you haven't done your due diligence in creating reliable software. 0:40 As far as spring is concerned you may have also spent time with me learning 0:46 about the power of the spring framework in developing scalable web applications 0:50 in our library we've used the Model View Controller pattern 0:55 to nicely separate the functionality into distinct layers. 0:58 It is especially important when writing applications in bigger frameworks like 1:02 spring, that you incorporate unit tests to ensure as much as possible, 1:06 that your code is functioning as intended. 1:11 Fortunately, spring provides a whole testing library that allows you to test 1:14 each one of these layers and includes ways for 1:18 you to incorporate the mocking of parts that don't need to be present 1:21 in their full production forms for purposes of testing. 1:25 Marking simply means faking certain functionality. 1:28 During this workshop, we’ll discuss how to test controllers, views, services and 1:32 DAOs as well as incorporate the marking of objects that are being tested directly. 1:37 All right with that said let's get to it. 1:43
You need to sign up for Treehouse in order to download course files.Sign up