Examples of FlipSpringAspect


Examples of com.tacitknowledge.flip.spring.FlipSpringAspect

     * @param featureService the {@link FeatureService} to inject into aspect.
     * @param defaultUrl the default url to use.
     * @return the {@link FlipSpringAspect}.
     */
    public static FlipSpringAspect createFlipSpringAspect(FeatureService featureService, String defaultUrl) {
        FlipSpringAspect aspect = new FlipSpringAspect();
        aspect.setFeatureService(featureService);
        aspect.setDefaultValue(defaultUrl);
        return aspect;
    }
View Full Code Here

Examples of com.tacitknowledge.flip.spring.FlipSpringAspect

     *
     * @param defaultUrl the default url to use.
     * @return the {@link FlipSpringAspect}.
     */
    public static FlipSpringAspect createFlipSpringAspect(String defaultUrl) {
        FlipSpringAspect aspect = new FlipSpringAspect();
        aspect.setDefaultValue(defaultUrl);
        return aspect;
    }
View Full Code Here

Examples of com.tacitknowledge.flip.spring.FlipSpringAspect

    @Mock
    private ValueExpressionEvaluator evaluator1;
   
    @Before
    public void setUp() {
        aspect = new FlipSpringAspect();
    }
View Full Code Here

Examples of com.tacitknowledge.flip.spring.FlipSpringAspect

        assertTrue(context.containsBeanDefinition(FlipSpringAspect.ASPECT_BEAN_NAME));
        BeanDefinition flipHandlerAspectBeanDefinition = context.getBeanDefinition(FlipSpringAspect.ASPECT_BEAN_NAME);
        MutablePropertyValues properties = flipHandlerAspectBeanDefinition.getPropertyValues();
        assertEquals(FlipSpringAspect.class.getName(), flipHandlerAspectBeanDefinition.getBeanClassName());
       
        FlipSpringAspect aspect = context.getBean(FlipSpringAspect.ASPECT_BEAN_NAME, FlipSpringAspect.class);
        assertNotNull(aspect.getFeatureService());
        assertNotNull(aspect.getDefaultValue());
        assertEquals("test", aspect.getDefaultValue());
       
    }
View Full Code Here

Examples of com.tacitknowledge.flip.spring.FlipSpringAspect

   
    @Test
    public void testCreateFlipHandlerAspect() {
        assertTrue(context.containsBeanDefinition(FlipSpringAspect.ASPECT_BEAN_NAME));
       
        FlipSpringAspect aspect = context.getBean(FlipSpringAspect.ASPECT_BEAN_NAME, FlipSpringAspect.class);
        assertNotNull(aspect.getFeatureService());
        assertNotNull(aspect.getDefaultValue());
        assertEquals("test", aspect.getDefaultValue());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.