public class TemporaryLocalMavenRepository
extends org.junit.rules.ExternalResource
Rule
that can provide a LocalArtifactRepository
for a temporary local Maven
repository directory, or other objects needed for testing an LocalArtifactRepository
instance.Constructor and Description |
---|
TemporaryLocalMavenRepository() |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
LocalArtifactRepository |
getLocalArtifactRepository() |
LocalRepositoryP2Indices |
getLocalRepositoryIndex() |
File |
getLocalRepositoryRoot() |
void |
initContentFromResourceFolder(File resourceFolder) |
protected void before() throws Throwable
before
in class org.junit.rules.ExternalResource
Throwable
protected void after()
after
in class org.junit.rules.ExternalResource
public void initContentFromResourceFolder(File resourceFolder) throws IOException
IOException
public File getLocalRepositoryRoot()
public LocalRepositoryP2Indices getLocalRepositoryIndex()
public LocalArtifactRepository getLocalArtifactRepository()
Copyright © 2008–2016 Eclipse Foundation. All rights reserved.