Code example for TreeSet

Methods: iterator

0
 
        // ---------------------------------------------------------------------- 
        // Assert the files in the changed files list 
        // ---------------------------------------------------------------------- 
 
        Iterator<ScmFile> files = new TreeSet<ScmFile>( changedFiles ).iterator();
 
        //Check Foo.java 
        ScmFile file = files.next();
 
        assertPath( "/src/main/java/org/Foo.java", file.getPath() );
 
        assertTrue( file.getStatus().isDiff() );
 
        String postRangeStr = "+/src/main/java/org/Foo.java\n\\ No newline at end of file\n";
        String actualStr = differences.get( file.getPath() ).toString();
        assertTrue( actualStr.endsWith( postRangeStr ) );
 
        //Check readme.txt 
        file = files.next();