@Test public void testExtractInvalidSSAs() throws Exception { List<Entity> list = Arrays.asList(AccessibleVia.INVALIDSSA.generate(), AccessibleVia.INVALIDSSA.generate(), AccessibleVia.INVALIDSSA.generate()); Mockito.when(repo.findEach(Mockito.eq(EntityNames.SECTION), Mockito.any(NeutralQuery.class))).thenReturn(list.iterator()); se.extractEntities(null); Mockito.verify(ex, Mockito.never()).extractEntity(Mockito.any(Entity.class), Mockito.any(ExtractFile.class), Mockito.any(String.class)); }
@SuppressWarnings("unchecked") @Override public void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache) { Iterator<Entity> sections = this.repository.findEach(EntityNames.SECTION, new NeutralQuery()); while (sections.hasNext()) { Entity section = sections.next(); extractTeacherSectionAssociation(section); extractGradebookEntry(section, gradebookEntryCache); extractStudentSectionAssociation(section); } }
SectionEmbeddedDocsExtractor implements EntityDatedExtract { @SuppressWarnings("unchecked") @Override public void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache) { Iterator<Entity> sections = this.repository.findEach(EntityNames.SECTION, new NeutralQuery()); while (sections.hasNext()) { Entity section = sections.next(); extractTeacherSectionAssociation(section); extractGradebookEntry(section, gradebookEntryCache); extractStudentSectionAssociation(section); } } }
SectionEmbeddedDocsExtractor implements EntityDatedExtract { @SuppressWarnings("unchecked") @Override public void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache) { Iterator<Entity> sections = this.repository.findEach(EntityNames.SECTION, new NeutralQuery()); while (sections.hasNext()) { Entity section = sections.next(); extractTeacherSectionAssociation(section); extractGradebookEntry(section, gradebookEntryCache); extractStudentSectionAssociation(section); } } SectionEmbeddedDocsExtractor(EntityExtractor entityExtractor, ExtractFileMap leaToExtractFileMap,
                                        Repository<Entity> repository, EntityToEdOrgDateCache studentCache,
                                        EntityToEdOrgDateCache staffDatedCache); }
SectionEmbeddedDocsExtractor implements EntityDatedExtract { @SuppressWarnings("unchecked") @Override public void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache) { Iterator<Entity> sections = this.repository.findEach(EntityNames.SECTION, new NeutralQuery()); while (sections.hasNext()) { Entity section = sections.next(); extractTeacherSectionAssociation(section); extractGradebookEntry(section, gradebookEntryCache); extractStudentSectionAssociation(section); } } SectionEmbeddedDocsExtractor(EntityExtractor entityExtractor, ExtractFileMap leaToExtractFileMap,
                                        Repository<Entity> repository, EntityToEdOrgDateCache studentCache,
                                        EntityToEdOrgDateCache staffDatedCache); @SuppressWarnings("unchecked") @Override void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache); EntityToEdOrgDateCache getStudentSectionAssociationDateCache(); }
SectionEmbeddedDocsExtractor implements EntityDatedExtract { @SuppressWarnings("unchecked") @Override public void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache) { Iterator<Entity> sections = this.repository.findEach(EntityNames.SECTION, new NeutralQuery()); while (sections.hasNext()) { Entity section = sections.next(); extractTeacherSectionAssociation(section); extractGradebookEntry(section, gradebookEntryCache); extractStudentSectionAssociation(section); } } SectionEmbeddedDocsExtractor(EntityExtractor entityExtractor, ExtractFileMap leaToExtractFileMap,
                                        Repository<Entity> repository, EntityToEdOrgDateCache studentCache,
                                        EntityToEdOrgDateCache staffDatedCache); @SuppressWarnings("unchecked") @Override void extractEntities(final EntityToEdOrgDateCache gradebookEntryCache); EntityToEdOrgDateCache getStudentSectionAssociationDateCache();  }