Examples of internalize()


Examples of org.apache.felix.ipojo.manipulator.store.ResourceMapper.internalize()

        String normalized = "jndi.properties";
        String resource = "WEB-INF/classes/jndi.properties";

        Assert.assertEquals(normalized, mapper.externalize(resource));
        Assert.assertEquals(resource, mapper.internalize(normalized));
    }

    public void testWebInfLibResourceIsUnchanged() throws Exception {
        ResourceMapper mapper = new WABResourceMapper();
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.store.ResourceMapper.internalize()

        String normalized = "WEB-INF/lib/commons-logging.jar";
        String resource = "WEB-INF/lib/commons-logging.jar";

        Assert.assertEquals(normalized, mapper.externalize(resource));
        Assert.assertEquals(resource, mapper.internalize(normalized));
    }

    public void testMetaInfManifestIsUnchanged() throws Exception {
        ResourceMapper mapper = new WABResourceMapper();
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.store.ResourceMapper.internalize()

        String normalized = "META-INF/MANIFEST.MF";
        String resource = "META-INF/MANIFEST.MF";

        Assert.assertEquals(normalized, mapper.externalize(resource));
        Assert.assertEquals(resource, mapper.internalize(normalized));
    }

    public void testResourceNotMapped() throws Exception {
        ResourceMapper mapper = new WABResourceMapper();
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.store.ResourceMapper.internalize()

    public void testResourceNotMapped() throws Exception {
        ResourceMapper mapper = new WABResourceMapper();

        String resource = "images/logo.png";

        Assert.assertEquals(resource, mapper.internalize(resource));
    }
}
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.store.ResourceMapper.internalize()

        ResourceMapper delegate = mock(ResourceMapper.class);
        FileSystemResourceMapper mapper = new FileSystemResourceMapper(delegate);

        String path = "this/is/a/unix/like/path.extension";
        when(delegate.internalize(eq(path))).thenReturn(path);

        String result = mapper.internalize(path);

        Assert.assertEquals(path, result);
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.