Search in sources :

Example 1 with ChangeLogTestProject

use of org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject in project linuxtools by eclipse.

the class GNUFormatTest method setUp.

@Before
public void setUp() throws Exception {
    gnuFormatter = new GNUFormat();
    project = new ChangeLogTestProject("GNUFormatterTest");
}
Also used : GNUFormat(org.eclipse.linuxtools.internal.changelog.core.formatters.GNUFormat) ChangeLogTestProject(org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject) Before(org.junit.Before)

Example 2 with ChangeLogTestProject

use of org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject in project linuxtools by eclipse.

the class ChangeLogWriterTest method setUp.

/**
 * @throws java.lang.Exception
 */
@Before
public void setUp() throws Exception {
    clogWriter = new ChangeLogWriter();
    // create a testproject and add a file to it
    project = new ChangeLogTestProject("changelogWriterProject");
    // Generate full path to ChangeLog file
    changelogFilePath = CHANGELOG_FILE_PATH + CHANGELOG_FILE_NAME;
    // add a ChangeLog file to the project at the path specified by
    // CHANGELOG_FILE_PATH_SEGMENTS
    InputStream newFileInputStream = new ByteArrayInputStream(changeLogContent.getBytes());
    changelogFile = project.addFileToProject(CHANGELOG_FILE_PATH + CHANGELOG_FILE_NAME, CHANGELOG_FILE_NAME, newFileInputStream);
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) ChangeLogWriter(org.eclipse.linuxtools.internal.changelog.core.ChangeLogWriter) FileInputStream(java.io.FileInputStream) ByteArrayInputStream(java.io.ByteArrayInputStream) InputStream(java.io.InputStream) ChangeLogTestProject(org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject) Before(org.junit.Before)

Example 3 with ChangeLogTestProject

use of org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject in project linuxtools by eclipse.

the class CParserTest method setUp.

@Before
public void setUp() throws Exception {
    cParser = ChangeLogExtensionManager.getExtensionManager().getParserContributor("CEditor");
    project = new ChangeLogTestProject("c-parser-test-project");
}
Also used : ChangeLogTestProject(org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject) Before(org.junit.Before)

Example 4 with ChangeLogTestProject

use of org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject in project linuxtools by eclipse.

the class JavaParserTest method setUp.

@Before
public void setUp() throws Exception {
    javaParser = ChangeLogExtensionManager.getExtensionManager().getParserContributor("CompilationUnitEditor");
    project = new ChangeLogTestProject("java-parser-test-project");
    // make it a Java project
    project.addJavaNature();
}
Also used : ChangeLogTestProject(org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject) Before(org.junit.Before)

Aggregations

ChangeLogTestProject (org.eclipse.linuxtools.changelog.tests.fixtures.ChangeLogTestProject)4 Before (org.junit.Before)4 ByteArrayInputStream (java.io.ByteArrayInputStream)1 FileInputStream (java.io.FileInputStream)1 InputStream (java.io.InputStream)1 ChangeLogWriter (org.eclipse.linuxtools.internal.changelog.core.ChangeLogWriter)1 GNUFormat (org.eclipse.linuxtools.internal.changelog.core.formatters.GNUFormat)1