本文整理汇总了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;
}
示例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);
}
示例3: SingleModuleTest
import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public SingleModuleTest(MavenRuntime.MavenRuntimeBuilder mavenBuilder) throws Exception {
super(mavenBuilder, "single-module");
}
示例4: PluginIT
import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public PluginIT(MavenRuntime.MavenRuntimeBuilder mavenBuilder) throws Exception {
this.maven = mavenBuilder.withCliOptions("-B", "-U").build();
}
示例5: SpringWebGeneratorMojoTest
import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public SpringWebGeneratorMojoTest(MavenRuntime.MavenRuntimeBuilder mavenRuntimeBuilder) {
this.mavenRuntimeBuilder = mavenRuntimeBuilder;
}
示例6: DocumentationIntegrationTest
import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public DocumentationIntegrationTest(MavenRuntime.MavenRuntimeBuilder builder) throws Exception {
this.mavenRuntime = builder.build();
}
示例7: MergeOptionsIntegrationTest
import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public MergeOptionsIntegrationTest(MavenRuntime.MavenRuntimeBuilder builder) throws Exception {
this.mavenRuntime = builder.build();
}
示例8: ReducedEdgesIntegrationTest
import io.takari.maven.testing.executor.MavenRuntime; //导入依赖的package包/类
public ReducedEdgesIntegrationTest(MavenRuntime.MavenRuntimeBuilder builder) throws Exception {
this.mavenRuntime = builder.build();
}