5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

Aspire     Java Novice to Javanista     Java Novice to Javanista Track 2: Java Apprentice
Reflection in Java is commonly used to create and use dynamic proxies, which allow you to create objects that implement one or more interfaces at runtime. Reflection is also used to build harnesses for unit testing frameworks to invoke set up and tear down methods and run tests. Use this course to get to grips with these use cases.
Work with and learn why dynamic proxies are incredibly powerful. Investigate what happens to methods you invoke on an instance of a dynamic proxy class. Then create a unit-testing framework harness similar to the JUnit framework in Java.
Use annotations to identify methods and mark tests to run before using reflection to identify them and run them in the correct sequence.
When you're finished, you'll have the ability to use reflection to create dynamic proxies and build harnesses for unit test frameworks.

Objectives

Java: Leveraging Reflection to Build Dynamic Proxies & Unit Tests

  • discover the key concepts covered in this course
  • implement a dynamic proxy to create a dynamic object implementing an interface
  • invoke interface methods and object base class methods on proxies
  • pass proxy method invocations to a real object
  • create annotations for the setup, teardown, and test case for a unit testing framework
  • annotate test case methods for unit testing
  • execute test cases using a custom test harness
  • summarize the key concepts covered in this course