@Test public void testSupports() { Assertions.assertThat(helper.supports(originalPath)) .isNotNull() .isTrue(); Path wrongPath = mock(Path.class); when(wrongPath.getFileName()).thenReturn("wrongh.path"); Assertions.assertThat(helper.supports(wrongPath)) .isNotNull() .isFalse(); }
public boolean supports(Path path) { return path.getFileName().endsWith("." + FormResourceTypeDefinition.EXTENSION); }
AbstractFormDefinitionHelper { public boolean supports(Path path) { return path.getFileName().endsWith("." + FormResourceTypeDefinition.EXTENSION); } }
AbstractFormDefinitionHelper { public boolean supports(Path path) { return path.getFileName().endsWith("." + FormResourceTypeDefinition.EXTENSION); } AbstractFormDefinitionHelper(FormDefinitionSerializer serializer, IOService ioService, CommentedOptionFactory commentedOptionFactory); }
AbstractFormDefinitionHelper { public boolean supports(Path path) { return path.getFileName().endsWith("." + FormResourceTypeDefinition.EXTENSION); } AbstractFormDefinitionHelper(FormDefinitionSerializer serializer, IOService ioService, CommentedOptionFactory commentedOptionFactory); boolean supports(Path path); void postProcess(Path source, Path destination); }
AbstractFormDefinitionHelper { public boolean supports(Path path) { return path.getFileName().endsWith("." + FormResourceTypeDefinition.EXTENSION); } AbstractFormDefinitionHelper(FormDefinitionSerializer serializer, IOService ioService, CommentedOptionFactory commentedOptionFactory); boolean supports(Path path); void postProcess(Path source, Path destination);  }