public static class FakePackage.FakeRemotePackage extends FakePackage implements RemotePackage
RemotePackage for use in unit tests.FakePackage.FakeLocalPackage, FakePackage.FakeRemotePackagePATH_SEPARATOR| Constructor and Description |
|---|
FakeRemotePackage(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RepoPackage other) |
Archive |
getArchive() |
Channel |
getChannel()
Gets the update channel (e.g.
|
java.io.File |
getInstallDir(RepoManager manager,
ProgressIndicator progress)
Gets the path into which this
RemotePackage should be installed. |
RepositorySource |
getSource() |
void |
setChannel(Channel channel) |
void |
setCompleteUrl(java.lang.String url) |
void |
setPatchInfo(java.lang.String url,
Revision src) |
void |
setSource(RepositorySource source) |
asMarshallable, createFactory, equals, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, hashCode, obsolete, setDependencies, setDisplayName, setLicense, setObsolete, setRevision, setTypeDetails, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasMarshallable, createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsoletepublic void setCompleteUrl(java.lang.String url)
public void setPatchInfo(java.lang.String url,
Revision src)
@Nullable public Archive getArchive()
getArchive in interface RemotePackagenull if there is none.@NonNull public RepositorySource getSource()
getSource in interface RemotePackageRepositorySource from which we got this package.public void setChannel(Channel channel)
public void setSource(@NonNull
RepositorySource source)
setSource in interface RemotePackagesource - The RepositorySource from which we got this package.@NonNull
public java.io.File getInstallDir(@NonNull
RepoManager manager,
@NonNull
ProgressIndicator progress)
RemotePackageRemotePackage should be installed.getInstallDir in interface RemotePackage@NonNull public Channel getChannel()
RemotePackagegetChannel in interface RemotePackagepublic int compareTo(@NonNull
RepoPackage other)
compareTo in interface java.lang.Comparable<RepoPackage>compareTo in class FakePackage