@Test( expected = IllegalArgumentException.class ) public void testSetFileType_4() { FileDefinition def = new FileDefinition( new File( "toto.txt" )); def.setFileType( FileDefinition.UNDETERMINED ); }
public void setFileType( int fileType ) { if( fileType != GRAPH && fileType != INSTANCE && fileType != AGGREGATOR && fileType != EMPTY ) throw new IllegalArgumentException( "The file type was expected to be GRAPH, INSTANCE, AGGREGATOR or EMPTY." ); this.fileType = fileType; }
FileDefinition { public void setFileType( int fileType ) { if( fileType != GRAPH && fileType != INSTANCE && fileType != AGGREGATOR && fileType != EMPTY ) throw new IllegalArgumentException( "The file type was expected to be GRAPH, INSTANCE, AGGREGATOR or EMPTY." ); this.fileType = fileType; } }
FileDefinition { public void setFileType( int fileType ) { if( fileType != GRAPH && fileType != INSTANCE && fileType != AGGREGATOR && fileType != EMPTY ) throw new IllegalArgumentException( "The file type was expected to be GRAPH, INSTANCE, AGGREGATOR or EMPTY." ); this.fileType = fileType; } FileDefinition( File editedFile ); }
FileDefinition { public void setFileType( int fileType ) { if( fileType != GRAPH && fileType != INSTANCE && fileType != AGGREGATOR && fileType != EMPTY ) throw new IllegalArgumentException( "The file type was expected to be GRAPH, INSTANCE, AGGREGATOR or EMPTY." ); this.fileType = fileType; } 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 { public void setFileType( int fileType ) { if( fileType != GRAPH && fileType != INSTANCE && fileType != AGGREGATOR && fileType != EMPTY ) throw new IllegalArgumentException( "The file type was expected to be GRAPH, INSTANCE, AGGREGATOR or EMPTY." ); this.fileType = fileType; } 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; }