Search in sources :

Example 1 with FileMetadata

use of org.sonar.api.batch.fs.internal.FileMetadata in project sonarqube by SonarSource.

the class MetadataGeneratorProviderTest method create_builder.

@Test
public void create_builder() {
    StatusDetectionFactory statusDetectionFactory = mock(StatusDetectionFactory.class, Mockito.RETURNS_MOCKS);
    MetadataGeneratorProvider factory = new MetadataGeneratorProvider();
    assertThat(factory.provide(new DefaultInputModule("module"), statusDetectionFactory, new FileMetadata())).isNotNull();
}
Also used : FileMetadata(org.sonar.api.batch.fs.internal.FileMetadata) DefaultInputModule(org.sonar.api.batch.fs.internal.DefaultInputModule) Test(org.junit.Test)

Example 2 with FileMetadata

use of org.sonar.api.batch.fs.internal.FileMetadata in project sonarqube by SonarSource.

the class MetadataGeneratorTest method setUp.

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);
    metadata = new FileMetadata();
    generator = new MetadataGenerator(new DefaultInputModule("module"), statusDetection, metadata);
}
Also used : FileMetadata(org.sonar.api.batch.fs.internal.FileMetadata) DefaultInputModule(org.sonar.api.batch.fs.internal.DefaultInputModule) Before(org.junit.Before)

Aggregations

DefaultInputModule (org.sonar.api.batch.fs.internal.DefaultInputModule)2 FileMetadata (org.sonar.api.batch.fs.internal.FileMetadata)2 Before (org.junit.Before)1 Test (org.junit.Test)1