Search in sources :

Example 1 with ComponentType

use of org.sonar.scanner.protocol.output.ScannerReport.Component.ComponentType in project sonarqube by SonarSource.

the class BuildComponentTreeStepTest method allComponentTypes.

@DataProvider
public static Object[][] allComponentTypes() {
    Object[][] res = new Object[ComponentType.values().length - 2][1];
    int i = 0;
    for (ComponentType componentType : from(asList(ComponentType.values())).filter(not(in(asList(UNSET, UNRECOGNIZED))))) {
        res[i][0] = componentType;
        i++;
    }
    return res;
}
Also used : ComponentType(org.sonar.scanner.protocol.output.ScannerReport.Component.ComponentType) DataProvider(com.tngtech.java.junit.dataprovider.DataProvider) UseDataProvider(com.tngtech.java.junit.dataprovider.UseDataProvider)

Aggregations

DataProvider (com.tngtech.java.junit.dataprovider.DataProvider)1 UseDataProvider (com.tngtech.java.junit.dataprovider.UseDataProvider)1 ComponentType (org.sonar.scanner.protocol.output.ScannerReport.Component.ComponentType)1