Package ru.org.linux.section

Examples of ru.org.linux.section.SectionService


    return new ImageDao();
  }

  @Bean
  public SectionService sectionService(SectionDao sectionDao) {
    return new SectionService(sectionDao);
  }
View Full Code Here


    Section sectionModerate = mock(Section.class);
    when(sectionModerate.isPremoderated()).thenReturn(true);
    Section sectionNotModerate = mock(Section.class);
    when(sectionNotModerate.isPremoderated()).thenReturn(false);

    SectionService sectionService = mock(SectionService.class);
    when(sectionService.getSection(1)).thenReturn(sectionModerate);
    when(sectionService.getSection(2)).thenReturn(sectionNotModerate);

    permissionService.setSectionService(sectionService);

    // проверка что данные в mock resultSet верные
    assertTrue(resultSetModerateNew.getBoolean("moderate"));
View Full Code Here

TOP

Related Classes of ru.org.linux.section.SectionService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.