Package org.aeonbits.owner

Examples of org.aeonbits.owner.Factory


        assertSame(first, second);
    }

    @Test
    public void testGetOrCreateWithFactory() {
        Factory factory = ConfigFactory.newInstance();
        Factory spy = spy(factory);
        MyConfig first = ConfigCache.getOrCreate(spy, MyConfig.class);
        MyConfig second = ConfigCache.getOrCreate(spy, MyConfig.class);
        MyConfig third = ConfigCache.getOrCreate(spy, MyConfig.class);
        assertSame(first, second);
        assertSame(second, third);
View Full Code Here

TOP

Related Classes of org.aeonbits.owner.Factory

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.