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.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourcepublic void initContentFromResourceFolder(File resourceFolder) throws IOException
IOExceptionpublic File getLocalRepositoryRoot()
public LocalRepositoryP2Indices getLocalRepositoryIndex()
public LocalArtifactRepository getLocalArtifactRepository()
Copyright © 2008-2015 Eclipse Foundation. All Rights Reserved.