Unit testing is a critical part of any software development process. JUnit is an open-source testing tool specialized for Java, and it should be part of every Java developer's toolbox. Join Peggy Fisher as she explores Java testing with JUnit. Learn how to integrate JUnit with popular tools and IDEs (Eclipse, NetBeans, IntelliJ, and Maven), and conduct a variety of tests, including exception handling and parameterized tests.
Lecturer at Penn State UniversityPeggy Fisher is a programmer and content manager at LinkedIn Learning.
Peggy's main focus is application programming in Java, Arduino, and C++. She has also worked on courses in COBOL and discrete ,athematics. Previously she was a faculty member at Penn State University's College of Information Sciences and Technology. She started out as a programmer working for a large insurance company, but after 18 years she left her job as a director of information technology to pursue her true passion teaching. She earned a master's degree in math education, and went on to teach high school math and computer science in Pennsylvania. In 2012, Peggy accepted a position as an instructional designer at Penn State, and shortly thereafter began teaching Intro to Application Programming with Java. She is a strong supporter of women in STEM. As one of the few female programming teachers, she serves as a mentor to incoming female freshmen who are considering a career in programming. She was also the K–12 outreach coordinator for the college, where she scheduled, ran, and taught summer camps for middle school and high school students. In a PBS NewsHour interview, she expressed that all students should take at least one programming class either in high school or college. Peggy enjoys constantly learning and finding new and exciting ways to bring technology to life in and outside of the classroom, such as using Arduino microcontrollers or Lego Mindstorms, to help make learning hands-on and fun.
Skills covered in this course
- [Peggy] Hi, I'm Peggy Fisher. And whether you are just getting started with Java programming, or if you've been programming before, I want to introduce a great tool than can be used to help unit test your programs. It's called JUnit. This is a free open source framework that helps automate the process of testing. As most of you know, testing is a critical component of any phase of a programming project. JUnit is easy to use and provides features to perform a single unit test as well as grouping a series of unit tests together into a single suite. To help you get started, we will review the download process, use assertions to test our code, review the syntax for several IDE's, and add features for exception handling test, perimeterized test, and basic unit tests. So let's learn about JUnit.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Download the exercise files for this course. Get started with a free trial today.
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Watch this course anytime, anywhere. Get started with a free trial today.