Examples of PropertyResolver


Examples of javax.faces.el.PropertyResolver

    }

    @Test
    public void testGetPropertyResolverChainHead() throws Exception
    {
        PropertyResolver resolver = _mocksControl.createMock(PropertyResolver.class);
        EasyMock.expect(_runtimeConfig.getPropertyResolverChainHead()).andReturn(resolver).anyTimes();
        _mocksControl.replay();
        _testImpl.addFromRuntimeConfig(_resolvers);
        _mocksControl.verify();
       
View Full Code Here

Examples of javax.faces.el.PropertyResolver

    }

    @Test
    public void testGetPropertyResolver() throws Exception
    {
        PropertyResolver resolver = _mocksControl.createMock(PropertyResolver.class);
        expect(_runtimeConfig.getPropertyResolver()).andReturn(resolver).anyTimes();
        _mocksControl.replay();
        _testImpl.addFromRuntimeConfig(_resolvers);
        _mocksControl.verify();
       
View Full Code Here

Examples of javax.faces.el.PropertyResolver

    }

    @Test
    public void testGetPropertyResolverChainHead() throws Exception
    {
        PropertyResolver resolver = _mocksControl.createMock(PropertyResolver.class);
        EasyMock.expect(_runtimeConfig.getPropertyResolverChainHead()).andReturn(resolver).anyTimes();
        _mocksControl.replay();
        _testImpl.addFromRuntimeConfig(_resolvers);
        _mocksControl.verify();
       
View Full Code Here

Examples of javax.faces.el.PropertyResolver

    }

    @Test
    public void testGetPropertyResolver() throws Exception
    {
        PropertyResolver resolver = _mocksControl.createMock(PropertyResolver.class);
        expect(_runtimeConfig.getPropertyResolver()).andReturn(resolver).anyTimes();
        _mocksControl.replay();
        _testImpl.addFromRuntimeConfig(_resolvers);
        _mocksControl.verify();
       
View Full Code Here

Examples of javax.faces.el.PropertyResolver

    }

    @Test
    public void testGetPropertyResolverChainHead() throws Exception
    {
        PropertyResolver resolver = _mocksControl.createMock(PropertyResolver.class);
        EasyMock.expect(_runtimeConfig.getPropertyResolverChainHead()).andReturn(resolver).anyTimes();
        _mocksControl.replay();
        _testImpl.addFromRuntimeConfig(_resolvers);
        _mocksControl.verify();
       
View Full Code Here

Examples of jodd.petite.resolver.PropertyResolver

  protected DestroyMethodResolver destroyMethodResolver;
  protected ProviderResolver providerResolver;

  public PetiteResolvers(InjectionPointFactory injectionPointFactory) {
    ctorResolver = new CtorResolver(injectionPointFactory);
    propertyResolver = new PropertyResolver(injectionPointFactory);
    methodResolver = new MethodResolver(injectionPointFactory);
    setResolver = new SetResolver(injectionPointFactory);
    initMethodResolver = new InitMethodResolver();
    destroyMethodResolver = new DestroyMethodResolver();
    providerResolver = new ProviderResolver();
View Full Code Here

Examples of ma.glasnost.orika.property.PropertyResolver

    private static final String NESTED_CLOSE = PropertyResolver.ELEMENT_PROPERT_SUFFIX;
   
    @Test
    public void resolveProperties() {
       
        PropertyResolver propertyResolver = new IntrospectorPropertyResolver();
       
        Property aliasesFirst = propertyResolver.getProperty(TypeFactory.valueOf(PersonDto.class), "aliases" + NESTED_OPEN + "[0]" + NESTED_CLOSE);
       
        Assert.assertNotNull(aliasesFirst);
        Assert.assertEquals(TypeFactory.valueOf(String.class), aliasesFirst.getType());
        Assert.assertNotNull(aliasesFirst.getContainer());
        Assert.assertEquals(TypeFactory.valueOf(String[][].class), aliasesFirst.getContainer().getType());
View Full Code Here

Examples of org.apache.ace.client.repository.helper.PropertyResolver

        assertTrue("With the new assignments, the SGO should need approval.", sgo.needsApprove());
        // create a deploymentversion
        sgo.approve();

        // the preprocessor now has gotten its properties; inspect these
        PropertyResolver target = preprocessor.getProps();
        assertTrue("The property resolver should be able to resolve 'id'.", target.get("id").startsWith(targetId));
        assertTrue("The property resolver should be able to resolve 'name'.", target.get("name").startsWith("mydistribution"));
        assertNull("The property resolver should not be able to resolve 'someunknownproperty'.", target.get("someunknownproperty"));

        cleanUp(); // we need to do this before the helper goes away

        m_dependencyManager.remove(helperService);
    }
View Full Code Here

Examples of org.apache.ace.client.repository.helper.PropertyResolver

   
    @BeforeTest
    public void setUp() throws Exception {
        m_obrUrl = new URL("file://" + System.getProperty("java.io.tmpdir") + "/");
       
        m_resolver = new PropertyResolver() {
            public String get(String key) {
                return "msg".equals(key) ? "Hello World!" : null;
            }
        };
    }
View Full Code Here

Examples of org.docx4j.model.PropertyResolver

    if (lvl.getPStyle()!=null) {
     
      // Get the style
//      StyleDefinitionsPart stylesPart = ((WordprocessingMLPackage)this.getPackage()).
//        getMainDocumentPart().getStyleDefinitionsPart();
      PropertyResolver propertyResolver
        = ((WordprocessingMLPackage)this.getPackage()).getMainDocumentPart().getPropertyResolver();
     
      log.debug("override level has linked style: " + lvl.getPStyle().getVal() );
     
      org.docx4j.wml.Style style = propertyResolver.getStyle( lvl.getPStyle().getVal() );
     
      if (style==null) {
        log.error("Couldn't find style " + lvl.getPStyle().getVal());
        return null;
      }
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.