当前位置: 首页>>代码示例>>Java>>正文


Java MavenRuntime类代码示例

本文整理汇总了Java中io.takari.maven.testing.executor.MavenRuntime的典型用法代码示例。如果您正苦于以下问题:Java MavenRuntime类的具体用法?Java MavenRuntime怎么用?Java MavenRuntime使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MavenRuntime类属于io.takari.maven.testing.executor包,在下文中一共展示了MavenRuntime类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AbstractTest

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public AbstractTest(MavenRuntime.MavenRuntimeBuilder mavenBuilder, String projectName)
    throws Exception {
  this.resources =
      new TestResources(
          "src/test/projects",
          Files.createTempDirectory("maven-git-code-format-test").toString());
  this.maven = mavenBuilder.withCliOptions("-B", "-U").build();
  this.projectName = projectName;
}
 
开发者ID:Cosium,项目名称:maven-git-code-format,代码行数:10,代码来源:AbstractTest.java

示例2: testSourceEncoding

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
@Test
public void testSourceEncoding() throws Exception {
  File basedir = resources.getBasedir("filtering-source-encoding");
  // command line -Dfile.encoding=... not work. It must be first params. withCliOptions add it to the end
  // need use JAVA_TOOL_OPTIONS
  Map<String, String> env = new HashMap<>();
  // for test data need encoding windows-1251
  env.put("JAVA_TOOL_OPTIONS", "-Dfile.encoding=windows-1251");
  // default charset cached on first access, so need new process on every test run
  MavenRuntime forkedVerifier = verifierForkedBuilder.withEnvironment(env).build();
  MavenExecution verifierBuilder = forkedVerifier.forProject(basedir);
  Properties props = filter(verifierBuilder);
  String test = props.getProperty("test");
  Assert.assertEquals("'Идентификатор'", test);
}
 
开发者ID:takari,项目名称:takari-lifecycle,代码行数:16,代码来源:FilteringResourcesTest.java

示例3: SingleModuleTest

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public SingleModuleTest(MavenRuntime.MavenRuntimeBuilder mavenBuilder) throws Exception {
  super(mavenBuilder, "single-module");
}
 
开发者ID:Cosium,项目名称:maven-git-code-format,代码行数:4,代码来源:SingleModuleTest.java

示例4: PluginIT

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public PluginIT(MavenRuntime.MavenRuntimeBuilder mavenBuilder) throws Exception {
	this.maven = mavenBuilder.withCliOptions("-B", "-U").build();
}
 
开发者ID:Codearte,项目名称:accurest-maven-plugin,代码行数:4,代码来源:PluginIT.java

示例5: SpringWebGeneratorMojoTest

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public SpringWebGeneratorMojoTest(MavenRuntime.MavenRuntimeBuilder mavenRuntimeBuilder) {
    this.mavenRuntimeBuilder = mavenRuntimeBuilder;
}
 
开发者ID:hubrick,项目名称:raml-maven-plugin,代码行数:4,代码来源:SpringWebGeneratorMojoTest.java

示例6: DocumentationIntegrationTest

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public DocumentationIntegrationTest(MavenRuntime.MavenRuntimeBuilder builder) throws Exception {
  this.mavenRuntime = builder.build();
}
 
开发者ID:ferstl,项目名称:depgraph-maven-plugin,代码行数:4,代码来源:DocumentationIntegrationTest.java

示例7: MergeOptionsIntegrationTest

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public MergeOptionsIntegrationTest(MavenRuntime.MavenRuntimeBuilder builder) throws Exception {
  this.mavenRuntime = builder.build();
}
 
开发者ID:ferstl,项目名称:depgraph-maven-plugin,代码行数:4,代码来源:MergeOptionsIntegrationTest.java

示例8: ReducedEdgesIntegrationTest

import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public ReducedEdgesIntegrationTest(MavenRuntime.MavenRuntimeBuilder builder) throws Exception {
  this.mavenRuntime = builder.build();
}
 
开发者ID:ferstl,项目名称:depgraph-maven-plugin,代码行数:4,代码来源:ReducedEdgesIntegrationTest.java


注:本文中的io.takari.maven.testing.executor.MavenRuntime类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。