GuidedDecisionTableEditorGraphDeleteHelper implements DeleteHelper { @Override public boolean supports(final Path destination) { return (dtableType.accept(destination)); } GuidedDecisionTableEditorGraphDeleteHelper(); @Inject  GuidedDecisionTableEditorGraphDeleteHelper(final @Named("ioStrategy") IOService ioService,
                                                      final GuidedDTableResourceTypeDefinition dtableType,
                                                      final GuidedDTableGraphResourceTypeDefinition dtableGraphType,
                                                      final GuidedDecisionTableGraphEditorService dtableGraphService,
                                                      final CommentedOptionFactory commentedOptionFactory); @Override boolean supports(final Path destination); @Override void postProcess(final Path path);  }
@Test public void checkDoesSupportGuidedDecisionTables() { when( path.getFileName() ).thenReturn( "a-file." + dtableType.getSuffix() ); assertTrue( helper.supports( path ) ); }
@Test public void checkDoesNotSupportNonGuidedDecisionTables() { when( path.getFileName() ).thenReturn( "a-file.txt" ); assertFalse( helper.supports( path ) ); }