Package com.linkedin.restli.server.resources.fixtures

Examples of com.linkedin.restli.server.resources.fixtures.SomeResource1


    InjectResourceFactory factory = new InjectResourceFactory(ctx);

    factory.setRootResources(pathRootResourceMap);

    // #1 happy path
    SomeResource1 r1 = factory.create(SomeResource1.class);
    assertNotNull(r1);
    assertNotNull(r1.getDependency1());
    assertNotNull(r1.getDependency2());
    assertNull(r1.getNonInjectedDependency());

    // #2 No deps
    SomeResource2 r2 = factory.create(SomeResource2.class);
    assertNotNull(r2);
View Full Code Here

TOP

Related Classes of com.linkedin.restli.server.resources.fixtures.SomeResource1

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.