Class PrivateConstructorDemo

java.lang.Object
samples.constructor.PrivateConstructorDemo

public class PrivateConstructorDemo extends Object
Demonstrates the ability to invoke a test on a private constructor as well as lazy initialization of private collaborators.
  • Field Details

    • privateService

      private Service privateService
    • constructorResult

      private String constructorResult
  • Constructor Details

    • PrivateConstructorDemo

      private PrivateConstructorDemo(String completeName)
  • Method Details

    • getConstructorResult

      public String getConstructorResult()