Code example for URI

Methods: getPath

0
 
        URI uri = layout.getPath( new StubArtifact( "g.i.d", "a-i.d", "cls", "ext", "1.0" ) );
        assertEquals( "g/i/d/a-i.d/1.0/a-i.d-1.0-cls.ext", uri.getPath() );
 
        uri = layout.getPath( new StubArtifact( "g.i.d", "aid", "", "ext", "1.0" ) );
        assertEquals( "g/i/d/aid/1.0/aid-1.0.ext", uri.getPath() );
 
        uri = layout.getPath( new StubArtifact( "g.i.d", "aid", "", "", "1.0" ) );
        assertEquals( "g/i/d/aid/1.0/aid-1.0", uri.getPath() );
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java