JFlexTask extends Task { public final void setVerbose(boolean verbose) { Options.verbose = verbose; Options.unused_warning = verbose; } JFlexTask(); @Override void execute(); void findPackageAndClass(); void normalizeOutdir(); String getPackage(); String getClassName(); void setDestdir(File destinationDir); void setOutdir(File outDir); void setFile(File file); void setGenerateDot(boolean genDot); void setTimeStatistics(boolean displayTime); void setTime(boolean displayTime); final void setVerbose(boolean verbose); final void setUnusedWarning(boolean warn); void setSkeleton(File skeleton); void setSkel(File skeleton); void setSkipMinimization(boolean skipMin); void setNomin(boolean b); void setNobak(boolean b); void setPack(boolean b); void setDot(boolean b); void setDump(boolean b); void setJLex(boolean b); void setLegacyDot(boolean b); void setEncoding(String encodingName);  }
@Test public void testUnusedWarning_Verbose() { task.setVerbose(false); assertWithMessage("Disabled in quiet mode").that(Options.unused_warning).isFalse(); }
@Test public void testVerbose() { task.setVerbose(false); assertThat(!Options.verbose).isTrue(); task.setVerbose(true); assertThat(Options.verbose).isTrue(); }