Package org.apache.felix.ipojo.manipulator

Examples of org.apache.felix.ipojo.manipulator.MetadataProvider


import static org.mockito.Mockito.*;

public class CacheableMetadataProviderTestCase extends TestCase {
    public void testGetMetadatas() throws Exception {
        MetadataProvider delegate = mock(MetadataProvider.class);
        CacheableMetadataProvider provider = new CacheableMetadataProvider(delegate);

        Element returned = new Element("test", null);
        when(delegate.getMetadatas()).thenReturn(Collections.singletonList(returned));

        provider.getMetadatas();
        provider.getMetadatas();
        provider.getMetadatas();
        provider.getMetadatas();
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.MetadataProvider

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.