title: 2 same Strings , when compared in a Junit test it tells me they are not equal
body: <p>I try to compare this .txt</p>
  <pre><code>USER bonb Bird
  USER colc Colin Cook
  EVENT alea Class ULE 11/11/2011 9:00 11/11/2011 13:00
  EVENT alea Meeting MIC 11/11/2011 13:00 11/11/2011 14:00
  EVENT alea Lunch Cafeteria 11/11/2011 14:00 11/11/2011 15:00
  EVENT bonb Class ULE 11/11/2011 15:00 11/11/2011 19:00
  EVENT bonb Meeting Library 11/11/2011 13:00 11/11/2011 14:00
  </code></pre>
  <p>In my class File.java I use this method to convert to String the content of the txt.</p>
  <pre><code>public String readElements() throws FileException {
          FileReader fr = null;
          BufferedReader br = null;
          StringBuilder line = new StringBuilder();
          String lineAux = &quot;&quot;;
  
          logger.info(&quot;Reads an element of the file: &quot; + this.fileName);
  
          try {
              fr = new FileReader(this.fileName);
              br = new BufferedReader(fr);
  
              lineAux = br.readLine();
              while (lineAux != null) {
                  line.append(lineAux + System.getProperty(&quot;line.separator&quot;));
                  lineAux = br.readLine();
              }
          } catch (IOException e) {
              logger.warn(&quot;File Error: Can´t open the file: &quot; + this.fileName);
              throw new FileException(&quot;File Error: Can´t open the file &quot; + this.fileName);
          } finally {
              try {
                  if (null != fr) {
                      fr.close();
                  }
              } catch (IOException e) {
                  logger.warn(&quot;File error: Can´t open the file: &quot; + this.fileName);
                  throw new FileException(&quot;File error: Can´t open the file: &quot; + this.fileName);
              }
          }
          return line.toString();
      }
  </code></pre>
  <p>I use this tests to try the File.Java
  The TestReadElements compares that String with the content of the file. And when I use Junit in eclipse or the build.xml in a Linux terminal the test fails.</p>
  <pre><code>@Before
      public void setUp() throws Exception {
          this.fileName = &quot;./etc/test/rightCalendar.txt&quot;;
          this.file = new File(this.fileName);
      }
  
  @Test
      public void testReadElements() throws FileException {
          assertEquals(&quot;USER alea Alex Archer\n&quot; + &quot;USER bonb Bonnie Bird\n&quot; + &quot;USER colc Colin Cook\n&quot;
                  + &quot;EVENT alea Class ULE 11/11/2011 9:00 13:00\n&quot; + &quot;EVENT alea Meeting MIC 11/11/2011 13:00 14:00\n&quot;
                  + &quot;EVENT alea Lunch Cafeteria 11/11/2011 14:00 15:00\n&quot;
                  + &quot;EVENT bonb Class ULE 11/11/2011 15:00 19:00\n&quot;
                  + &quot;EVENT bonb Meeting Library 11/11/2011 13:00 14:00\n&quot;, this.file.readElements());
      }
  </code></pre>
  <p>I don´t know where the problem is(if the problem is within the build.xml or some other file)
  I have been changing little things for hours and I´m tired...
  <a href="https://i.stack.imgur.com/iGo1r.png" rel="nofollow noreferrer">These are the path files and the comparison that tells me it´s incorrect</a></p>