Aspire Journeys

Javanista to Java Master

  • 28 Courses | 40h 15m 9s
Likes 11 Likes 11
Javanista to Java Master is the journey intended for Java developers who aspire to sharpen their skills in Java enterprise frameworks and wish to become master’s in enterprise application development.  In this journey, you will first learn how to write and run JUnit tests and identify the right situation to construct and use mock object. The journey continues by discovering how Jakarta Enterprise Edition (JEE) offers a straightforward and comprehensive approach to building state-of-the-art enterprise applications that enables you to create rich web-based interfaces using Java Server Faces (JSF) and effectively construct business logic using Enterprise JavaBeans (EJB). Finally, the journey takes you deeper into the Spring framework where you gradually progress from the Spring principles, Inversion of Control and Aspect Oriented Programming to the Database Integration using ORM frameworks such as JPA & Hibernate, Spring Data JDBC, and Spring Data JPA. You will complete this journey with a clear exploration on Spring Batch for processing batch data.

Track 1: Unit Testing

In this track of the Javanista to Java Master journey, the focus will be on how to write and run JUnit tests and identify the right situation to construct and use mock object.

  • 8 Courses | 10h 55m 49s

Track 2: Java EE

In this track of the Javanista to Java Master journey, the focus will be on how Jakarta Enterprise Edition (JEE) offers a straightforward and comprehensive approach to building state-of-the-art enterprise applications that enables you to create rich web-based interfaces using Java Server Faces (JSF) and effectively construct business logic using Enterprise JavaBeans (EJB). 

  • 5 Courses | 7h 53m 20s

Track 3: Spring Basics

In this track of the Javanista to Java Master journey, the focus will be on Spring principles, Inversion of Control and Aspect Oriented Programming, and database Integration using ORM frameworks such as JPA & Hibernate.

  • 7 Courses | 11h 2m 46s

Track 4: Spring Data

In this track of the Javanista to Java Master journey, the focus will be on working with Spring Data JDBC, Spring Data JPA, and Spring Batch for processing batch data.

  • 8 Courses | 10h 23m 14s

COURSES INCLUDED

Unit Testing: An Introduction to the JUnit Framework
JUnit, an open-source unit testing framework, can be used by Java developers who employ a test-driven development methodology. The platform allows you to write and run tests on sections of code repeatedly. Use this course as a quick theoretical and hands-on introduction to the JUnit framework. Begin by looking at the process of software testing in general, then unit-testing with JUnit in particular. Next, move on to writing a simple Java app for which you will write JUnit test cases to ensure that its functions behave in line with expectations. Moving along, learn how to use annotations to mark out methods as test cases and set up work to be carried out before test case executions and tasks to be performed after they have run. When you're done, you'll be able to get started writing unit tests for your code using the JUnit framework.
10 videos | 1h has Assessment available Badge
Unit Testing: Assertions & Assumptions in JUnit
Assertions, a collection of utility methods in in JUnit, help assert the pass or fail status of test cases. The focus of this course is on assertions that allow you to set the conditions for the success and failure of test cases and assumptions to control the flow of execution in a test case. Begin with simple assert methods to compare the actual values of fields or return values of methods with their expected values. Then, use assertions that ensure your app's performance by failing a test if it takes too long to run, followed by assert methods that check an exception is thrown when invalid data is passed to a method. Next, use assumptions that check for conditions before executing a code block - effectively serving as control structures. When you're done, you'll have a working knowledge of using assertions in JUnit.
9 videos | 1h has Assessment available Badge
Unit Testing: Advanced Annotations in JUnit
Using annotations in JUnit allows you to add a special form of syntactic meta-data to Java source code for better code readability and structure. The aim of this course is to give you hands-on experience with JUnit annotations which allow you to set when and how test-cases should be run. Kick things off with a basic annotation to set the name of a test case that appears in execution summaries. Move on to using annotations that simplify the setting of conditions in which test cases should run - based on the current operating system, JRE version, and even environment variables. Explore the definition of a custom annotation composed of a combination of pre-built annotations. Then, apply annotations that control the order of test case executions and enable parallel runs of tests. When you're done, you'll be able to use JUnit annotations for several useful tasks.
9 videos | 1h has Assessment available Badge
Unit Testing: Parameterized JUnit Tests
Parameterized tests in JUnit help developers save time by running the same tests repeatedly, using only different inputs, and getting different results. The focus of this course is on scaling test case executions using repeated and parameterized tests. Start by setting a particular test case to run multiple times using the RepeatedTest annotation. Next, move on to defining test cases that can accept parameters. Then, look into different ways in which the parameters can be fed into your test case - from hard-coded values defined in your test class to CSV files and method invocations. Finally, learn how to build a specialized class to pre-process your parameters before being fed into test cases. Upon completion, you'll know how to conduct repeated executions of JUnit test cases with or without parameters.
6 videos | 51m has Assessment available Badge
Unit Testing: Executing JUnit Tests
JUnit, the Java unit testing framework, can be used with an IDE but also with a build system, such as Maven. Furthermore, JUnit ConsoleLauncher, a stand-alone application, can be used to launch the platform from the command line. This course will dive deep into the use of Maven as well as the JUnit ConsoleLauncher to run all and specific test cases in your application. Begin by running all test cases you have written for your app using Maven. Then run specific tests and define groups of tests using JUnit tags. Next, run the tests from the command line. Finally, execute such tests using the JUnit ConsoleLauncher, which can be run from a shell without other tools such as Maven. Upon completing the course, you'll be able to execute JUnit test cases from the command line using Apache Maven and the JUnit ConsoleLauncher.
6 videos | 47m has Assessment available Badge
Unit Testing with Mocks: Getting Started with Mockito
Mockito is a Java framework for building mocks during unit testing. When performing unit tests on an object, you often have other, complex objects that the object under test depends upon. Rather than using those complex objects, you can use Mockito to create mocks of those objects and stub their methods to simulate expected behavior. Use this course to get to grips with mocking and its relationship with unit testing. Set up a Maven project and add the required Mockito and JUnit dependencies. Create mocks of built-in classes, such as the ArrayList, and built-in interfaces, such as the Comparator. Then, work with stub methods using Mockito’s when().thenReturn() syntax. When you're done, you'll be able to identify situations where using mocks is a good idea, construct mocks, stub methods in them using Mockito, and use mock objects in unit tests.
15 videos | 1h has Assessment available Badge
Unit Testing with Mocks: Creating Mocks & Verifying Behavior
Mocks built in Mockito do more than just simulate the behavior of complex objects that your object under test depends upon. Mockito makes it easy for you to verify specific aspects of how the object under test and the mock interact. In this course, learn how to build mocks using annotations and use them to perform dependency injection into the object. Then, learn how to work with constructor, setter property, and field injection. Moving along, verify the behavior of the object under test and its interaction with the mock using Mockito constructs, such as verify(), verifyNoInteractions(), and various argument matchers. When you're done, you'll be able to use annotations to construct mocks in a clean and simple manner and test very specific aspects of the interactions between the stubs in your mocks and the object under test.
14 videos | 2h has Assessment available Badge