File tree Expand file tree Collapse file tree
its/plugin/src/test/java/com/sonar/python/it/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222import com .sonar .orchestrator .Orchestrator ;
2323import com .sonar .orchestrator .build .SonarRunner ;
24+ import java .io .File ;
2425import org .junit .BeforeClass ;
2526import org .junit .ClassRule ;
2627import org .junit .Test ;
2930import org .sonar .wsclient .services .Resource ;
3031import org .sonar .wsclient .services .ResourceQuery ;
3132
32- import java .io .File ;
33-
3433import static org .fest .assertions .Assertions .assertThat ;
3534
3635public class MetricsTest {
@@ -150,11 +149,11 @@ public void file_level() {
150149 public void should_be_compatible_with_DevCockpit () {
151150 // TODO probably bug in Sonar: order might depend on JVM
152151 assertThat (getFileMeasure ("ncloc_data" ).getData ())
153- .contains ("1=0 " )
152+ .doesNotContain ("1=1 " )
154153 .contains ("5=1" );
155154 assertThat (getFileMeasure ("comment_lines_data" ).getData ())
156155 .contains ("1=1" )
157- .contains ("4=0 " );
156+ .doesNotContain ("4=1 " );
158157 }
159158
160159 /* Helper methods */
You can’t perform that action at this time.
0 commit comments