public class IntegrationTestManager extends Object implements TestManager
| Constructor and Description |
|---|
IntegrationTestManager(ClientConfig clientConfig,
RESTClient restClient,
File tmpFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAppArtifact(Id.Artifact artifactId,
Class<?> appClass) |
void |
addAppArtifact(Id.Artifact artifactId,
Class<?> appClass,
Manifest manifest) |
void |
addAppArtifact(Id.Artifact artifactId,
Class<?> appClass,
String... exportPackages) |
void |
addArtifact(Id.Artifact artifactId,
File artifactFile) |
<T extends DatasetAdmin> |
addDatasetInstance(Id.Namespace namespace,
String datasetTypeName,
String datasetInstanceName) |
<T extends DatasetAdmin> |
addDatasetInstance(Id.Namespace namespace,
String datasetTypeName,
String datasetInstanceName,
DatasetProperties props) |
void |
addPluginArtifact(Id.Artifact artifactId,
Id.Artifact parent,
Class<?> pluginClass,
Class<?>... pluginClasses) |
void |
addPluginArtifact(Id.Artifact artifactId,
Id.Artifact parent,
Set<PluginClass> additionalPlugins,
Class<?> pluginClass,
Class<?>... pluginClasses) |
void |
addPluginArtifact(Id.Artifact artifactId,
Set<ArtifactRange> parents,
Class<?> pluginClass,
Class<?>... pluginClasses) |
void |
addPluginArtifact(Id.Artifact artifactId,
Set<ArtifactRange> parents,
Set<PluginClass> additionalPlugins,
Class<?> pluginClass,
Class<?>... pluginClasses) |
void |
clear() |
void |
createNamespace(NamespaceMeta namespaceMeta) |
void |
deleteArtifact(Id.Artifact artifactId) |
void |
deleteNamespace(Id.Namespace namespace) |
ApplicationManager |
deployApplication(Id.Application appId,
AppRequest appRequest) |
ApplicationManager |
deployApplication(Id.Namespace namespace,
Class<? extends Application> applicationClz,
Config configObject,
File... bundleEmbeddedJars) |
ApplicationManager |
deployApplication(Id.Namespace namespace,
Class<? extends Application> applicationClz,
File... bundleEmbeddedJars) |
void |
deployDatasetModule(Id.Namespace namespace,
String moduleName,
Class<? extends DatasetModule> datasetModule) |
ApplicationManager |
getApplicationManager(Id.Application appId) |
<T> DataSetManager<T> |
getDataset(Id.Namespace namespace,
String datasetInstanceName) |
Connection |
getQueryClient(Id.Namespace namespace) |
StreamManager |
getStreamManager(Id.Stream streamId) |
public IntegrationTestManager(ClientConfig clientConfig, RESTClient restClient, File tmpFolder)
public ApplicationManager deployApplication(Id.Namespace namespace, Class<? extends Application> applicationClz, File... bundleEmbeddedJars)
deployApplication in interface TestManagerpublic ApplicationManager deployApplication(Id.Namespace namespace, Class<? extends Application> applicationClz, @Nullable Config configObject, File... bundleEmbeddedJars)
deployApplication in interface TestManagerpublic ApplicationManager deployApplication(Id.Application appId, AppRequest appRequest) throws Exception
deployApplication in interface TestManagerExceptionpublic ApplicationManager getApplicationManager(Id.Application appId)
getApplicationManager in interface TestManagerpublic void addArtifact(Id.Artifact artifactId, File artifactFile) throws Exception
addArtifact in interface TestManagerExceptionpublic void addAppArtifact(Id.Artifact artifactId, Class<?> appClass) throws Exception
addAppArtifact in interface TestManagerExceptionpublic void addAppArtifact(Id.Artifact artifactId, Class<?> appClass, String... exportPackages) throws Exception
addAppArtifact in interface TestManagerExceptionpublic void addAppArtifact(Id.Artifact artifactId, Class<?> appClass, Manifest manifest) throws Exception
addAppArtifact in interface TestManagerExceptionpublic void addPluginArtifact(Id.Artifact artifactId, Id.Artifact parent, Class<?> pluginClass, Class<?>... pluginClasses) throws Exception
addPluginArtifact in interface TestManagerExceptionpublic void addPluginArtifact(Id.Artifact artifactId, Set<ArtifactRange> parents, Class<?> pluginClass, Class<?>... pluginClasses) throws Exception
addPluginArtifact in interface TestManagerExceptionpublic void addPluginArtifact(Id.Artifact artifactId, Id.Artifact parent, Set<PluginClass> additionalPlugins, Class<?> pluginClass, Class<?>... pluginClasses) throws Exception
addPluginArtifact in interface TestManagerExceptionpublic void addPluginArtifact(Id.Artifact artifactId, Set<ArtifactRange> parents, @Nullable Set<PluginClass> additionalPlugins, Class<?> pluginClass, Class<?>... pluginClasses) throws Exception
addPluginArtifact in interface TestManagerExceptionpublic void deleteArtifact(Id.Artifact artifactId) throws Exception
deleteArtifact in interface TestManagerExceptionpublic void clear()
throws Exception
clear in interface TestManagerExceptionpublic void deployDatasetModule(Id.Namespace namespace, String moduleName, Class<? extends DatasetModule> datasetModule) throws Exception
deployDatasetModule in interface TestManagerExceptionpublic <T extends DatasetAdmin> T addDatasetInstance(Id.Namespace namespace, String datasetTypeName, String datasetInstanceName, DatasetProperties props) throws Exception
addDatasetInstance in interface TestManagerExceptionpublic <T extends DatasetAdmin> T addDatasetInstance(Id.Namespace namespace, String datasetTypeName, String datasetInstanceName) throws Exception
addDatasetInstance in interface TestManagerExceptionpublic <T> DataSetManager<T> getDataset(Id.Namespace namespace, String datasetInstanceName) throws Exception
getDataset in interface TestManagerExceptionpublic Connection getQueryClient(Id.Namespace namespace) throws Exception
getQueryClient in interface TestManagerExceptionpublic void createNamespace(NamespaceMeta namespaceMeta) throws Exception
createNamespace in interface TestManagerExceptionpublic void deleteNamespace(Id.Namespace namespace) throws Exception
deleteNamespace in interface TestManagerExceptionpublic StreamManager getStreamManager(Id.Stream streamId)
getStreamManager in interface TestManagerCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.