@Test @Ignore("Needs re-writing") public void testInitPage() throws Exception { ModelMap model = new ModelMap(); assertEquals("homePage", controller.doGet(model)); }
@Override public ModelAndView doGet(ModelMap model) { log.info("Requesting doGet of " + this.getClass()); return buildModelAndView( getModelViewName(), model, new ModelPopulator() { @Override public void populateModel(ModelMap model) { log.info("Building model of " + HomePageController.class + "..."); final ViewModelBuilder<HomePageViewModel> builder = new HomePageViewModelBuilder( userManager, getEbiSearchForm(), "EBI metagenomics: archiving, analysis and integration of metagenomics data", getBreadcrumbs(null), propertyContainer, studyDAO, sampleDAO, runDAO, biomeDAO, submissionContactDAO); final HomePageViewModel hpModel = builder.getModel(); hpModel.changeToHighlightedClass(ViewModel.TAB_CLASS_HOME_VIEW); model.addAttribute(ViewModel.MODEL_ATTR_NAME, hpModel); } } ); }
HomePageController extends AbstractController implements IController { @Override public ModelAndView doGet(ModelMap model) { log.info("Requesting doGet of " + this.getClass()); return buildModelAndView( getModelViewName(), model, new ModelPopulator() { @Override public void populateModel(ModelMap model) { log.info("Building model of " + HomePageController.class + "..."); final ViewModelBuilder<HomePageViewModel> builder = new HomePageViewModelBuilder( userManager, getEbiSearchForm(), "EBI metagenomics: archiving, analysis and integration of metagenomics data", getBreadcrumbs(null), propertyContainer, studyDAO, sampleDAO, runDAO, biomeDAO, submissionContactDAO); final HomePageViewModel hpModel = builder.getModel(); hpModel.changeToHighlightedClass(ViewModel.TAB_CLASS_HOME_VIEW); model.addAttribute(ViewModel.MODEL_ATTR_NAME, hpModel); } } ); } }
HomePageController extends AbstractController implements IController { @Override public ModelAndView doGet(ModelMap model) { log.info("Requesting doGet of " + this.getClass()); return buildModelAndView( getModelViewName(), model, new ModelPopulator() { @Override public void populateModel(ModelMap model) { log.info("Building model of " + HomePageController.class + "..."); final ViewModelBuilder<HomePageViewModel> builder = new HomePageViewModelBuilder( userManager, getEbiSearchForm(), "EBI metagenomics: archiving, analysis and integration of metagenomics data", getBreadcrumbs(null), propertyContainer, studyDAO, sampleDAO, runDAO, biomeDAO, submissionContactDAO); final HomePageViewModel hpModel = builder.getModel(); hpModel.changeToHighlightedClass(ViewModel.TAB_CLASS_HOME_VIEW); model.addAttribute(ViewModel.MODEL_ATTR_NAME, hpModel); } } ); }  }
HomePageController extends AbstractController implements IController { @Override public ModelAndView doGet(ModelMap model) { log.info("Requesting doGet of " + this.getClass()); return buildModelAndView( getModelViewName(), model, new ModelPopulator() { @Override public void populateModel(ModelMap model) { log.info("Building model of " + HomePageController.class + "..."); final ViewModelBuilder<HomePageViewModel> builder = new HomePageViewModelBuilder( userManager, getEbiSearchForm(), "EBI metagenomics: archiving, analysis and integration of metagenomics data", getBreadcrumbs(null), propertyContainer, studyDAO, sampleDAO, runDAO, biomeDAO, submissionContactDAO); final HomePageViewModel hpModel = builder.getModel(); hpModel.changeToHighlightedClass(ViewModel.TAB_CLASS_HOME_VIEW); model.addAttribute(ViewModel.MODEL_ATTR_NAME, hpModel); } } ); }  @Override ModelAndView doGet(ModelMap model); }
HomePageController extends AbstractController implements IController { @Override public ModelAndView doGet(ModelMap model) { log.info("Requesting doGet of " + this.getClass()); return buildModelAndView( getModelViewName(), model, new ModelPopulator() { @Override public void populateModel(ModelMap model) { log.info("Building model of " + HomePageController.class + "..."); final ViewModelBuilder<HomePageViewModel> builder = new HomePageViewModelBuilder( userManager, getEbiSearchForm(), "EBI metagenomics: archiving, analysis and integration of metagenomics data", getBreadcrumbs(null), propertyContainer, studyDAO, sampleDAO, runDAO, biomeDAO, submissionContactDAO); final HomePageViewModel hpModel = builder.getModel(); hpModel.changeToHighlightedClass(ViewModel.TAB_CLASS_HOME_VIEW); model.addAttribute(ViewModel.MODEL_ATTR_NAME, hpModel); } } ); }  @Override ModelAndView doGet(ModelMap model); static final String VIEW_NAME; static final String REQUEST_MAPPING_VALUE; static final String REDIRECT_VALUE; }