Learn how to implement automated tests using RestAssured, JUnit, and the Spring test runner.
Let's talk about options for testing your API.…In post-band we have a two-wall called Runner.…If you click on Runner, on the upper left-hand side,…it will open up a Collection Runner interface.…A Collection Runner will quickly test…all of your API end points.…So, let's click on your existing reservation collection,…set one iteration,…and zero delay.…You could output a log file, if wanted.…
Okay?…We've selected our collection.…Let's click Start Run.…You can see it quickly cycled through all of our end points.…Please make sure that your application is running,…at the time that you've run collection Runner.…As you can see, we got a 200 response for each end point.…It will also capture response time,…payload size and other metrics.…You could export the results as a JSON.…
You can also test and validate a rest service…using a JAVA unit test.…One library is REST-assured.…You can learn more about REST-assured…at rest-assured.io…Let's stop our JAVA API server.…Let's try running a REST-assured unit test locally.…First, lets grab the great all dependency.…
Author
Released
5/10/2017- Setting up a development environment
- Using Spring Initializr
- Running a project in Eclipse
- Configuring an API using Spring JavaConfig
- Testing endpoints using Postman
- Using Angular 2 CLI and npm
- Creating and styling an Angular 2 component
- Configuring a persistence layer with Spring JPA
- Using a REST API GET request
- Implementing a REST API POST request
- Using Spring MVC for server-side data validation
- Unit testing with REST Assured
Skill Level Intermediate
Duration
Views
Related Courses
-
Code Clinic: Java
with Patrick Royal1h 33m Intermediate -
Learning Java Threads
with Peggy Fisher1h 9m Intermediate -
Java: Testing with JUnit
with Peggy Fisher1h 10m Intermediate
-
Introduction
-
Welcome56s
-
-
1. Create Your Spring Boot Project
-
What we will build2m 25s
-
Resource modeling2m 11s
-
2. Build a Mobile Responsive UI
-
Create available rooms table6m 54s
-
3. Create the Data Layer with Spring Data
-
Return pageable list of rooms12m 38s
-
4. Client-Side Functionality with Angular
-
5. Testing and Validation
-
Conclusion
-
Next steps1m 25s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Unit testing example with REST Assured