Package com.tacitknowledge.flip.fixtures

Examples of com.tacitknowledge.flip.fixtures.TestContextProvider


        assertEquals(Boolean.class, contextDescriptor.getProperties().get("booleanObjectValue").getReturnType());
    }
   
    @Test
    public void testGetIsMethodThatIsNotBooleanGetter() {
        TestContextProvider contextProvider = new TestContextProvider();
        ContextDescriptor contextDescriptor = contextDescriptorFactory.createContextDescriptor(contextProvider);
       
        assertNull(contextDescriptor.getProperties().get("objectValueNonBoolean"));
    }
View Full Code Here


        assertNull(contextDescriptor.getProperties().get("objectValueNonBoolean"));
    }
   
    @Test
    public void testGetAllValuesAsMapMethodThatIsAnonymousAnnotatedWithContextProperty() throws Exception {
        TestContextProvider contextProvider = new TestContextProvider();
        ContextDescriptor contextDescriptor = contextDescriptorFactory.createContextDescriptor(contextProvider);
       
        Method method = contextProvider.getClass().getMethod("getAllValuesAsMap");
        assertThat(contextDescriptor.getAnonymousProperties(), Matchers.hasItem(method));
    }
View Full Code Here

        assertThat(contextDescriptor.getAnonymousProperties(), Matchers.hasItem(method));
    }
   
    @Test
    public void testAnonymousAnnotatedMethodShouldBeMap() throws Exception {
        TestContextProvider contextProvider = new TestContextProvider();
        ContextDescriptor contextDescriptor = contextDescriptorFactory.createContextDescriptor(contextProvider);
       
        Method method = contextProvider.getClass().getMethod("getAnonMethod");
        assertThat(contextDescriptor.getAnonymousProperties(), Matchers.not(Matchers.hasItem(method)));
        assertThat(contextDescriptor.getProperties().values(), Matchers.not(Matchers.hasItem(method)));
    }
View Full Code Here

TOP

Related Classes of com.tacitknowledge.flip.fixtures.TestContextProvider

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.