com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in hooks.ServerHooks. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

anyflip.com | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The Cucumber for Java Book Pages 201 - 250 - Text Version | AnyFlip

    anyflip.com | 9 months ago
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in hooks.ServerHooks. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

    Root Cause Analysis

    1. com.google.inject.ConfigurationException

      Guice configuration errors: 1) Could not find a suitable constructor in hooks.ServerHooks. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

      at hooks.ServerHooks.class()
    2. hooks
      ServerHooks.class
      1. hooks.ServerHooks.class(ServerHooks.java:19)
      1 frame