本文整理汇总了Java中hudson.maven.MavenModuleSet.delete方法的典型用法代码示例。如果您正苦于以下问题:Java MavenModuleSet.delete方法的具体用法?Java MavenModuleSet.delete怎么用?Java MavenModuleSet.delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hudson.maven.MavenModuleSet
的用法示例。
在下文中一共展示了MavenModuleSet.delete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testMavenModuleJobbWithHardcodedScript
import hudson.maven.MavenModuleSet; //导入方法依赖的package包/类
@Test public void testMavenModuleJobbWithHardcodedScript() throws Exception {
MavenModuleSet project = j.createMavenProject();
project.getPrebuilders().add(new hudson.tasks.Shell("#!/bin/bash #single line"));
assertFalse(checker.executeCheck(project));
project.delete();
project = j.createMavenProject("Bash_Multiple_Line");
project.getPrebuilders().add(new hudson.tasks.Shell("#!/bin/bash\nline1\nline2\nline3\nline4\nline5\nline6"));
assertTrue(checker.executeCheck(project));
project.delete();
project = j.createMavenProject("Batch_Single_Line");
project.getPrebuilders().add(new hudson.tasks.BatchFile("echo first"));
assertFalse(checker.executeCheck(project));
project.delete();
project = j.createMavenProject("Batch_Multiple_Line");
project.getPrebuilders().add(new hudson.tasks.BatchFile("echo first\nline1\nline2\nline3\nline4\nline5\nline6"));
assertTrue(checker.executeCheck(project));
}
示例2: testMavenModuleJobbWithHardcodedScript
import hudson.maven.MavenModuleSet; //导入方法依赖的package包/类
@Test public void testMavenModuleJobbWithHardcodedScript() throws Exception {
MavenModuleSet project = j.createMavenProject();
project.getPrebuilders().add(new hudson.tasks.Shell("#!/bin/bash #single line"));
assertFalse(checker.executeCheck(project));
project.delete();
project = j.createMavenProject("WithoutWrapper");
project.getPrebuilders().add(new hudson.plugins.gradle.Gradle("description","switches","tasks","rootBuildScriptDir","buildFile","gradleName", false, false, false, false));
project.save();
assertTrue(checker.executeCheck(project));
project.delete();
project = j.createMavenProject("WithWrapper");
project.getPrebuilders().add(new hudson.plugins.gradle.Gradle("description","switches","tasks","rootBuildScriptDir","buildFile","gradleName", true, false, false, false));
assertFalse(checker.executeCheck(project));
}