OfficeService.printReport()
chama scan()
desnecessariamente. SimplePrinter
não suporta e lança UnsupportedOperationException
.
O teste espera não lançar. Inicialmente, falha.
- Segregar interfaces (
Printer
,Scanner
) e garantir queprintReport
use apenasPrinter
.
mvn -q test