Search in sources :

Example 1 with OutputType

use of spoon.OutputType in project spoon by INRIA.

the class OutputTypeTest method testOutputTypeLoading.

@Test
public void testOutputTypeLoading() {
    OutputType outputType = OutputType.fromString("nulltest");
    Assert.assertNull(outputType);
    outputType = OutputType.fromString("nooutput");
    Assert.assertEquals(OutputType.NO_OUTPUT, outputType);
    outputType = OutputType.fromString("classes");
    Assert.assertEquals(OutputType.CLASSES, outputType);
    outputType = OutputType.fromString("compilationunits");
    Assert.assertEquals(OutputType.COMPILATION_UNITS, outputType);
}
Also used : OutputType(spoon.OutputType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 OutputType (spoon.OutputType)1