Package com.tacitknowledge.flip.otherfixtures

Examples of com.tacitknowledge.flip.otherfixtures.Test1ContextProvider


        assertEquals("value", contextManager.getContext(ContextMap.GLOBAL).get("key"));
    }
   
    @Test
    public void testGetValueByPriorityFromGlobalContext() {
        environment.getContextProviders().add(new Test1ContextProvider());
        contextManager = new ContextManager(environment);
       
        assertEquals("someValue", contextManager.getContext(ContextMap.GLOBAL).get("value"));
    }
View Full Code Here


        assertEquals("someValue", contextManager.getContext(ContextMap.GLOBAL).get("value"));
    }
   
    @Test
    public void testGetValueByPriorityFromGlobalContextAndHasOnlyInSecondContext() {
        environment.getContextProviders().add(new Test1ContextProvider());
        contextManager = new ContextManager(environment);
       
        assertEquals("second-value", contextManager.getContext(ContextMap.GLOBAL).get("secondValue"));
    }
View Full Code Here

        assertEquals("second-value", contextManager.getContext(ContextMap.GLOBAL).get("secondValue"));
    }
   
    @Test(expected=UnknownContextPropertyException.class)
    public void testGetValueByPriorityFromGlobalContextAndThereIsNoSuchField() {
        environment.getContextProviders().add(new Test1ContextProvider());
        contextManager = new ContextManager(environment);
       
        contextManager.getContext(ContextMap.GLOBAL).get("secondValue1");
    }
View Full Code Here

TOP

Related Classes of com.tacitknowledge.flip.otherfixtures.Test1ContextProvider

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.