Package org.wildfly.prospero.test
Class MetadataTestUtils
- java.lang.Object
-
- org.wildfly.prospero.test.MetadataTestUtils
-
public final class MetadataTestUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static PathINSTALLER_CHANNELS_FILE_PATHstatic PathMANIFEST_FILE_PATH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyManifest(String resource, Path targetPath)static voidcreateChannel(String name, String mavenCoordinate, List<String> repositories, Path metadataDir)static org.jboss.galleon.state.ProvisionedStatecreateGalleonProvisionedState(Path installation, String... featurePacks)static InstallationMetadatacreateInstallationMetadata(Path installation)static InstallationMetadatacreateInstallationMetadata(Path installation, org.wildfly.channel.ChannelManifest manifest, List<org.wildfly.channel.Channel> channels)static voidcreateManifest(String name, List<org.wildfly.channel.Stream> streams, Path metadataDir)static org.wildfly.channel.ChannelManifestcreateManifest(Collection<org.wildfly.channel.Stream> streams)static List<org.eclipse.aether.repository.RemoteRepository>defaultRemoteRepositories()static PathprepareChannel(String manifestDescriptor)static voidprepareChannel(Path channelFile, String... manifestDescriptor)static voidprepareChannel(Path channelFile, List<URL> manifestUrls)static voidprepareChannel(Path channelFile, List<URL> manifestUrls, List<org.wildfly.channel.Repository> repositories)static voidprepareChannel(Path channelFile, List<org.wildfly.channel.Repository> repositories, String... manifests)static List<org.wildfly.channel.Channel>readChannels(Path channelFile)static voidupgradeStreamInManifest(Path manifestPath, org.eclipse.aether.artifact.Artifact upgrade)static voidwriteChannels(Path channelFile, List<org.wildfly.channel.Channel> channels)
-
-
-
Method Detail
-
createManifest
public static org.wildfly.channel.ChannelManifest createManifest(Collection<org.wildfly.channel.Stream> streams)
-
createManifest
public static void createManifest(String name, List<org.wildfly.channel.Stream> streams, Path metadataDir) throws IOException
- Throws:
IOException
-
createChannel
public static void createChannel(String name, String mavenCoordinate, List<String> repositories, Path metadataDir) throws IOException
- Throws:
IOException
-
createInstallationMetadata
public static InstallationMetadata createInstallationMetadata(Path installation) throws MetadataException
- Throws:
MetadataException
-
createInstallationMetadata
public static InstallationMetadata createInstallationMetadata(Path installation, org.wildfly.channel.ChannelManifest manifest, List<org.wildfly.channel.Channel> channels) throws MetadataException
- Throws:
MetadataException
-
createGalleonProvisionedState
public static org.jboss.galleon.state.ProvisionedState createGalleonProvisionedState(Path installation, String... featurePacks) throws XMLStreamException, IOException
- Throws:
XMLStreamExceptionIOException
-
prepareChannel
public static Path prepareChannel(String manifestDescriptor) throws IOException
- Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, String... manifestDescriptor) throws IOException
- Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, List<org.wildfly.channel.Repository> repositories, String... manifests) throws IOException
- Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, List<URL> manifestUrls) throws IOException
- Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, List<URL> manifestUrls, List<org.wildfly.channel.Repository> repositories) throws IOException
- Throws:
IOException
-
writeChannels
public static void writeChannels(Path channelFile, List<org.wildfly.channel.Channel> channels) throws IOException
- Throws:
IOException
-
readChannels
public static List<org.wildfly.channel.Channel> readChannels(Path channelFile) throws IOException
- Throws:
IOException
-
defaultRemoteRepositories
public static List<org.eclipse.aether.repository.RemoteRepository> defaultRemoteRepositories()
-
copyManifest
public static void copyManifest(String resource, Path targetPath) throws IOException
- Throws:
IOException
-
upgradeStreamInManifest
public static void upgradeStreamInManifest(Path manifestPath, org.eclipse.aether.artifact.Artifact upgrade) throws IOException
- Throws:
IOException
-
-