Package org.aeonbits.owner

Examples of org.aeonbits.owner.Config


    }

    @Test
    public void testRemoveUsingClassAsKey() {
        MyConfig first = ConfigCache.getOrCreate(MyConfig.class);
        Config removed = ConfigCache.remove(MyConfig.class);
        assertNotNull(removed);

        MyConfig second = ConfigCache.getOrCreate(MyConfig.class);
        MyConfig third = ConfigCache.getOrCreate(MyConfig.class);
View Full Code Here


    @Test
    public void testRemoveUsingNameKey() {
        MyConfig first = ConfigCache.getOrCreate("foo", MyConfig.class);

        Config removed = ConfigCache.remove("foo");
        assertNotNull(removed);

        MyConfig second = ConfigCache.getOrCreate("foo", MyConfig.class);
        MyConfig third = ConfigCache.getOrCreate("foo", MyConfig.class);
View Full Code Here

    }

    @Test
    public void testRemove() {
        MyConfig first = ConfigCache.getOrCreate("MyConfig", MyConfig.class);
        Config removed = ConfigCache.remove("MyConfig");
        MyConfig second = ConfigCache.getOrCreate("MyConfig", MyConfig.class);
        assertNotSame(first, second);
        assertSame(first, removed);
    }
View Full Code Here

TOP

Related Classes of org.aeonbits.owner.Config

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.