File tree 8 files changed +31
-17
lines changed
sonar-dotnet-core/src/test/java/org/sonarsource/dotnet/shared/plugins/sensors
8 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .io .File ;
20
20
import java .io .IOException ;
32
32
import org .sonar .api .batch .sensor .internal .SensorContextTester ;
33
33
import org .sonar .api .config .internal .MapSettings ;
34
34
import org .sonar .api .testfixtures .log .LogTester ;
35
- import org .sonarsource .dotnet .shared .plugins .sensors .AbstractFileCacheSensor ;
35
+ import org .sonarsource .dotnet .shared .plugins .HashProvider ;
36
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
36
37
37
38
import static org .assertj .core .api .Assertions .assertThat ;
38
39
import static org .mockito .ArgumentMatchers .any ;
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .io .File ;
20
20
import java .io .IOException ;
33
33
import org .sonar .api .notifications .AnalysisWarnings ;
34
34
import org .sonar .api .testfixtures .log .LogTester ;
35
35
import org .slf4j .event .Level ;
36
- import org .sonarsource .dotnet .shared .plugins .sensors .AnalysisWarningsSensor ;
37
36
38
37
import static org .assertj .core .api .Assertions .assertThat ;
39
38
import static org .mockito .Mockito .anyString ;
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .io .File ;
20
20
import java .nio .file .Path ;
41
41
import org .sonar .api .rule .RuleKey ;
42
42
import org .sonar .api .scanner .sensor .ProjectSensor ;
43
43
import org .sonar .api .testfixtures .log .LogTester ;
44
- import org .sonarsource .dotnet .shared .plugins .sensors .DotNetSensor ;
44
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
45
+ import org .sonarsource .dotnet .shared .plugins .ProjectTypeCollector ;
46
+ import org .sonarsource .dotnet .shared .plugins .ProtobufDataImporter ;
47
+ import org .sonarsource .dotnet .shared .plugins .RealPathProvider ;
48
+ import org .sonarsource .dotnet .shared .plugins .ReportPathCollector ;
49
+ import org .sonarsource .dotnet .shared .plugins .RoslynDataImporter ;
50
+ import org .sonarsource .dotnet .shared .plugins .RoslynReport ;
45
51
46
52
import static org .assertj .core .api .Assertions .assertThat ;
47
53
import static org .mockito .ArgumentMatchers .any ;
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .io .File ;
20
20
import org .junit .Before ;
30
30
import org .sonar .api .batch .sensor .internal .SensorContextTester ;
31
31
import org .sonar .api .config .internal .MapSettings ;
32
32
import org .sonar .api .testfixtures .log .LogTester ;
33
- import org .sonarsource .dotnet .shared .plugins .sensors .FileTypeSensor ;
33
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
34
+ import org .sonarsource .dotnet .shared .plugins .ProjectTypeCollector ;
34
35
35
36
import static org .assertj .core .api .Assertions .assertThat ;
36
37
import static org .mockito .Mockito .mock ;
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .io .File ;
20
20
import java .util .Collections ;
26
26
import org .sonar .api .batch .sensor .internal .DefaultSensorDescriptor ;
27
27
import org .sonar .api .batch .sensor .internal .SensorContextTester ;
28
28
import org .sonar .api .testfixtures .log .LogTester ;
29
- import org .sonarsource .dotnet .shared .plugins .sensors .LogSensor ;
29
+ import org .sonarsource .dotnet .shared .plugins .ModuleConfiguration ;
30
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
30
31
31
32
import static org .assertj .core .api .Assertions .assertThat ;
32
33
import static org .mockito .Mockito .mock ;
@@ -48,7 +49,7 @@ public class LogSensorTest {
48
49
private LogSensor sensor ;
49
50
50
51
@ Before
51
- public void prepare () throws Exception {
52
+ public void prepare () {
52
53
logTester .setLevel (Level .DEBUG );
53
54
context = SensorContextTester .create (temp .getRoot ());
54
55
PluginMetadata metadata = mock (PluginMetadata .class );
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .nio .file .Path ;
20
20
import java .nio .file .Paths ;
21
21
import java .util .Collections ;
22
22
import org .junit .Test ;
23
23
import org .sonar .api .batch .sensor .SensorContext ;
24
24
import org .sonar .api .batch .sensor .SensorDescriptor ;
25
- import org .sonarsource .dotnet .shared .plugins .sensors .PropertiesSensor ;
25
+ import org .sonarsource .dotnet .shared .plugins .ModuleConfiguration ;
26
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
27
+ import org .sonarsource .dotnet .shared .plugins .ReportPathCollector ;
28
+ import org .sonarsource .dotnet .shared .plugins .RoslynReport ;
26
29
27
30
import static org .mockito .ArgumentMatchers .any ;
28
31
import static org .mockito .ArgumentMatchers .anyString ;
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .util .ArrayList ;
20
20
import org .apache .commons .lang3 .tuple .Pair ;
28
28
import org .sonar .api .batch .sensor .internal .SensorContextTester ;
29
29
import org .sonar .api .testfixtures .log .LogTester ;
30
30
import org .sonarsource .dotnet .protobuf .SonarAnalyzer ;
31
- import org .sonarsource .dotnet .shared .plugins .sensors .TelemetryProcessor ;
31
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
32
+ import org .sonarsource .dotnet .shared .plugins .TelemetryCollector ;
32
33
33
34
import static org .assertj .core .api .Assertions .assertThat ;
34
35
import static org .mockito .ArgumentMatchers .anyString ;
Original file line number Diff line number Diff line change 14
14
* You should have received a copy of the Sonar Source-Available License
15
15
* along with this program; if not, see https://sonarsource.com/license/ssal/
16
16
*/
17
- package org .sonarsource .dotnet .shared .plugins ;
17
+ package org .sonarsource .dotnet .shared .plugins . sensors ;
18
18
19
19
import java .io .File ;
20
20
import java .util .Arrays ;
26
26
import org .sonar .api .batch .sensor .internal .DefaultSensorDescriptor ;
27
27
import org .sonar .api .batch .sensor .internal .SensorContextTester ;
28
28
import org .sonar .api .testfixtures .log .LogTester ;
29
- import org .sonarsource .dotnet .shared .plugins .sensors .TelemetrySensor ;
29
+ import org .sonarsource .dotnet .shared .plugins .ModuleConfiguration ;
30
+ import org .sonarsource .dotnet .shared .plugins .PluginMetadata ;
31
+ import org .sonarsource .dotnet .shared .plugins .TelemetryCollector ;
30
32
31
33
import static org .assertj .core .api .Assertions .assertThat ;
32
34
import static org .mockito .Mockito .mock ;
You can’t perform that action at this time.
0 commit comments