aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/utils
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-11-07 09:36:47 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-11-07 09:47:35 +0100
commit5bd495c4c1d885fba933a7fabff0496935f9d427 (patch)
tree14062aa08d739acf1c94008cb04f86eb882d4995 /sonar-plugin-api/src/test/java/org/sonar/api/utils
parent981a4e65cb275c2661430f29a279f6c4add03c65 (diff)
downloadsonarqube-5bd495c4c1d885fba933a7fabff0496935f9d427.tar.gz
sonarqube-5bd495c4c1d885fba933a7fabff0496935f9d427.zip
Remove class TxtWriter
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/utils')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/utils/text/TxtWriterTest.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/TxtWriterTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/TxtWriterTest.java
deleted file mode 100644
index dca31b0d855..00000000000
--- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/TxtWriterTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.sonar.api.utils.text;
-
-import org.junit.Test;
-
-import java.io.BufferedReader;
-import java.io.StringReader;
-import java.io.StringWriter;
-
-import static org.fest.assertions.Assertions.assertThat;
-
-public class TxtWriterTest {
-
- @Test
- public void write_txt() throws Exception {
- StringWriter output = new StringWriter();
- TxtWriter writer = TxtWriter.of(output);
-
- writer.values("France", "Paris");
- writer.close();
-
- BufferedReader reader = new BufferedReader(new StringReader(output.toString()));
- String line1 = reader.readLine();
- assertThat(line1).isEqualTo("France");
-
- String line2 = reader.readLine();
- assertThat(line2).isEqualTo("Paris");
-
- assertThat(reader.readLine()).isNull();
- }
-
-}