]> source.dussan.org Git - sonarqube.git/commitdiff
Fix default mime type of ProfileExporter
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 31 Mar 2016 10:23:23 +0000 (12:23 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 31 Mar 2016 10:23:23 +0000 (12:23 +0200)
"plain/text" is not a valid type. It must be "text/plain"

server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java
sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java

index 37639fcb1dc4ab5d3095ec7cb1f4e2a9096dec8e..b958e49f1df41d3d039b10f1d1e23157b820fcac 100644 (file)
@@ -98,7 +98,7 @@ public class QProfileExportersTest {
     assertThat(exporters.mimeType("xootool")).isEqualTo("plain/custom");
 
     // default mime type
-    assertThat(exporters.mimeType("standard")).isEqualTo("plain/text");
+    assertThat(exporters.mimeType("standard")).isEqualTo("text/plain");
   }
 
   @Test
index 8920904bc60a3abf6193fc90d8cadeb662fb3194..c6283fefe342199fd9e41aad00426d53061e381f 100644 (file)
@@ -38,7 +38,7 @@ public abstract class ProfileExporter {
   private String[] supportedLanguages = new String[0];
   private String key;
   private String name;
-  private String mimeType = "plain/text";
+  private String mimeType = "text/plain";
 
   protected ProfileExporter(String key, String name) {
     this.key = key;