@Test public void testToString() { FileDefinition def = new FileDefinition( new File( "toto.txt" )); Assert.assertNotNull( def.toString()); def = new FileDefinition( new File( "htpp: Assert.assertNotNull( def.toString()); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( this.editedFile.getName()); sb.append( " with " ); sb.append( this.blocks.size()); sb.append( " block" ); if( this.blocks.size() > 1 ) sb.append( "s" ); return sb.toString(); }
FileDefinition { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( this.editedFile.getName()); sb.append( " with " ); sb.append( this.blocks.size()); sb.append( " block" ); if( this.blocks.size() > 1 ) sb.append( "s" ); return sb.toString(); } }
FileDefinition { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( this.editedFile.getName()); sb.append( " with " ); sb.append( this.blocks.size()); sb.append( " block" ); if( this.blocks.size() > 1 ) sb.append( "s" ); return sb.toString(); } FileDefinition( File editedFile ); }
FileDefinition { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( this.editedFile.getName()); sb.append( " with " ); sb.append( this.blocks.size()); sb.append( " block" ); if( this.blocks.size() > 1 ) sb.append( "s" ); return sb.toString(); } FileDefinition( File editedFile ); void setEditedFile( File editedFile ); File getEditedFile(); List<ParsingError> getParsingErrors(); List<AbstractBlock> getBlocks(); int getFileType(); void setFileType( int fileType ); @Override String toString(); static String fileTypeAsString( int fileType ); }
FileDefinition { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( this.editedFile.getName()); sb.append( " with " ); sb.append( this.blocks.size()); sb.append( " block" ); if( this.blocks.size() > 1 ) sb.append( "s" ); return sb.toString(); } FileDefinition( File editedFile ); void setEditedFile( File editedFile ); File getEditedFile(); List<ParsingError> getParsingErrors(); List<AbstractBlock> getBlocks(); int getFileType(); void setFileType( int fileType ); @Override String toString(); static String fileTypeAsString( int fileType ); static final int UNDETERMINED; static final int GRAPH; static final int INSTANCE; static final int AGGREGATOR; static final int EMPTY; }