Search in sources :

Example 1 with CustomConfig

use of org.jenkinsci.test.acceptance.plugins.config_file_provider.CustomConfig in project acceptance-test-harness by jenkinsci.

the class ConfigFileProviderTest method testCustomConfigFile.

@Test
public void testCustomConfigFile() {
    final CustomConfig customConfig = this.createCustomConfig();
    final String jobLog = this.createPipelineAndGetConsole(customConfig);
    assertThat(jobLog, containsString(CUSTOM_CONF_CONTENT));
}
Also used : CustomConfig(org.jenkinsci.test.acceptance.plugins.config_file_provider.CustomConfig) Matchers.containsString(org.hamcrest.Matchers.containsString) AbstractJUnitTest(org.jenkinsci.test.acceptance.junit.AbstractJUnitTest) Test(org.junit.Test)

Example 2 with CustomConfig

use of org.jenkinsci.test.acceptance.plugins.config_file_provider.CustomConfig in project acceptance-test-harness by jenkinsci.

the class ConfigFileProviderTest method createCustomConfig.

private CustomConfig createCustomConfig() {
    final CustomConfig customConfig = new ConfigFileProvider(jenkins).addFile(CustomConfig.class);
    customConfig.content(CUSTOM_CONF_CONTENT);
    customConfig.save();
    return customConfig;
}
Also used : CustomConfig(org.jenkinsci.test.acceptance.plugins.config_file_provider.CustomConfig) ConfigFileProvider(org.jenkinsci.test.acceptance.plugins.config_file_provider.ConfigFileProvider)

Aggregations

CustomConfig (org.jenkinsci.test.acceptance.plugins.config_file_provider.CustomConfig)2 Matchers.containsString (org.hamcrest.Matchers.containsString)1 AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)1 ConfigFileProvider (org.jenkinsci.test.acceptance.plugins.config_file_provider.ConfigFileProvider)1 Test (org.junit.Test)1