@Test public void shouldNotCareWithNonAutoGeneratedFixtures() { List<Resource> mockResources = createMockResources(); when(scanner.collectResources()).thenReturn(mockResources); snapshotGenerator.validateSnapshots(); }
public void validateSnapshots() { scanner.collectResources().stream().map(this::convertToJsonNode).forEach(this::verifyAutoGeneratedClasses); }
SnapshotGenerator { public void validateSnapshots() { scanner.collectResources().stream().map(this::convertToJsonNode).forEach(this::verifyAutoGeneratedClasses); } }
SnapshotGenerator { public void validateSnapshots() { scanner.collectResources().stream().map(this::convertToJsonNode).forEach(this::verifyAutoGeneratedClasses); } SnapshotGenerator(BeanFactory beanFactory);  SnapshotGenerator(BeanFactory beanFactory, FixtureScanner scanner); }
SnapshotGenerator { public void validateSnapshots() { scanner.collectResources().stream().map(this::convertToJsonNode).forEach(this::verifyAutoGeneratedClasses); } SnapshotGenerator(BeanFactory beanFactory);  SnapshotGenerator(BeanFactory beanFactory, FixtureScanner scanner); boolean createOrUpdateFixture(Object actual, boolean regenerateFixture); JsonNode getSnapshotFixtureNode(); String getCurrentSnapshotFixtureName(); void validateSnapshots(); }
SnapshotGenerator { public void validateSnapshots() { scanner.collectResources().stream().map(this::convertToJsonNode).forEach(this::verifyAutoGeneratedClasses); } SnapshotGenerator(BeanFactory beanFactory);  SnapshotGenerator(BeanFactory beanFactory, FixtureScanner scanner); boolean createOrUpdateFixture(Object actual, boolean regenerateFixture); JsonNode getSnapshotFixtureNode(); String getCurrentSnapshotFixtureName(); void validateSnapshots();  }