Subversion Repositories DevTools

Rev

Rev 814 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 814 Rev 862
Line 101... Line 101...
101
      char[] buildFile2Content = new char[(int)buildFile2.length()];
101
      char[] buildFile2Content = new char[(int)buildFile2.length()];
102
      buildFile2Reader.read(buildFile2Content);
102
      buildFile2Reader.read(buildFile2Content);
103
      buildFile2Reader.close();
103
      buildFile2Reader.close();
104
      String readBuildFile2Content = new String(buildFile2Content);
104
      String readBuildFile2Content = new String(buildFile2Content);
105
      assertTrue( readExpected2Content.compareTo( readBuildFile2Content ) == 0 );
105
      assertTrue( readExpected2Content.compareTo( readBuildFile2Content ) == 0 );
-
 
106
 
-
 
107
      File expected3 = new File(cwd, "expected3.xml");
-
 
108
      FileReader expected3Reader = new FileReader(expected3);
-
 
109
      char[] expected3Content = new char[(int)expected3.length()];
-
 
110
      expected3Reader.read(expected3Content);
-
 
111
      expected3Reader.close();
-
 
112
      String readExpected3Content = new String(expected3Content);
-
 
113
      File buildFile3 = new File(cwd, "build3.xml");
-
 
114
      FileReader buildFile3Reader = new FileReader(buildFile3);
-
 
115
      char[] buildFile3Content = new char[(int)buildFile3.length()];
-
 
116
      buildFile3Reader.read(buildFile3Content);
-
 
117
      buildFile3Reader.close();
-
 
118
      String readBuildFile3Content = new String(buildFile3Content);
-
 
119
      assertTrue( readExpected3Content.compareTo( readBuildFile3Content ) == 0 );
106
    }
120
    }
107
    catch( IOException e )
121
    catch( IOException e )
108
    {
122
    {
109
      caughtException = true;
123
      caughtException = true;
110
    }
124
    }