Guice

  • 03
    Sep

    TestNG Annotations

    AfterClass, AfterGroups, AfterMethod, AfterSuite, AfterTest, BeforeClass, BeforeGroups, BeforeMethod, BeforeSuite, BeforeTest, CustomAttribute, DataProvider, Factory, Guice, IAnnotation, IConfigurationAnnotation, IDataProviderAnnotation, IFactoryAnnotation, IListenersAnnotation, IObjectFactoryAnnotation, IParameterizable, IParametersAnnotation, ITestAnnotation, ITestOrConfiguration, Ignore, Listeners, NoInjection, ObjectFactory, Optional,...

    Read More
  • 12
    Jun

    Dependency injection with Guice

    Step 1: ======= public interface Discountable { double getDiscount(); } Step 2: Implement above interface =================================== public class EarlyBirdDiscount implements Discountable { @Override public double getDiscount() { return .25;...

    Read More