コード例 #1
0
 public static OutputSection createTestTransportOutputSection() {
   OutputSection transportOutputSection =
       new OutputSection(OutputSectionConstants.TRANSPORT_SECTION_TITLE);
   OutputSection gettingAroundOutputSection = createGettingAroundOutputSection();
   OutputSection gettingThereAndAwayOutputSection = createGettingThereAndAwayOutputSection();
   transportOutputSection.setOutputSectionList(
       Lists.newArrayList(gettingAroundOutputSection, gettingThereAndAwayOutputSection));
   return transportOutputSection;
 }
コード例 #2
0
 private static OutputSection createAnimalsOutputSection() {
   OutputSection mammalsOutputSection =
       new OutputSection(
           OutputSectionConstants.MAMMALS_SECTION_TITLE, TestDestinationConstants.MAMMALS_LINES);
   OutputSection animalsOutputSection =
       new OutputSection(OutputSectionConstants.ANIMALS_SECTION_TITLE);
   animalsOutputSection.setOutputSectionList(Lists.newArrayList(mammalsOutputSection));
   return animalsOutputSection;
 }
コード例 #3
0
 public static OutputSection createTestPracticalInformationOutputSection() {
   OutputSection practicalInformationOutputSection =
       new OutputSection(OutputSectionConstants.PRACTICAL_INFORMATION_SECTION_TITLE);
   practicalInformationOutputSection.setOutputSectionList(
       Lists.newArrayList(
           createTestHealthAndSafetySection(),
           createMoneyAndCostsSection(),
           createTestVisaSection()));
   return practicalInformationOutputSection;
 }
コード例 #4
0
 public static OutputSection createTestIntroductionOutputSection() {
   OutputSection introductionOutputSection =
       new OutputSection(OutputSectionConstants.INTRODUCTION_SECTION_TITLE);
   OutputSection overviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.INTRODUCTION_OVERVIEW_LINES);
   introductionOutputSection.setOutputSectionList(Lists.newArrayList(overviewOutputSection));
   return introductionOutputSection;
 }
コード例 #5
0
 private static OutputSection createGettingThereAndAwayOutputSection() {
   OutputSection gettingThereAndAwayOutputSection =
       new OutputSection(OutputSectionConstants.GETTING_THERE_AND_AWAY_SECTION_TITLE);
   gettingThereAndAwayOutputSection.setOutputSectionList(
       Lists.newArrayList(
           createTestGettingThereAndAwayAirSection(),
           createTestLandSection(),
           createTestBoatSection()));
   return gettingThereAndAwayOutputSection;
 }
コード例 #6
0
 private static OutputSection createPlantsOutputSection() {
   OutputSection plantsOutputSection =
       new OutputSection(OutputSectionConstants.PLANTS_SECTION_TITLE);
   OutputSection plantsOverviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.PLANTS_OVERVIEW_LINES);
   plantsOutputSection.setOutputSectionList(Lists.newArrayList(plantsOverviewOutputSection));
   return plantsOutputSection;
 }
コード例 #7
0
 private static OutputSection createBirdsOutputSection() {
   OutputSection birdsOutputSection =
       new OutputSection(OutputSectionConstants.BIRDS_SECTION_TITLE);
   OutputSection birdsOverviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.BIRDS_OVERVIEW_LINES);
   birdsOutputSection.setOutputSectionList(Lists.newArrayList(birdsOverviewOutputSection));
   return birdsOutputSection;
 }
コード例 #8
0
 public static OutputSection createTestHistoryOutputSection() {
   OutputSection historyOutputSection =
       new OutputSection(
           OutputSectionConstants.HISTORY_SECTION_TITLE, TestDestinationConstants.HISTORY_LINES);
   OutputSection overviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.HISTORY_OVERVIEW_LINES);
   historyOutputSection.setOutputSectionList(Lists.newArrayList(overviewOutputSection));
   return historyOutputSection;
 }
コード例 #9
0
 private static OutputSection createTestHealthAndSafetySection() {
   OutputSection healthAndSafetySection =
       new OutputSection(OutputSectionConstants.HEALTH_AND_SAFETY_SECTION_TITLE);
   healthAndSafetySection.setOutputSectionList(
       Lists.newArrayList(
           createTestBeforeYouGoSection(),
           createTestDangersAndAnnoyancesSection(),
           createTestInTransitSection(),
           createTestWhileYoureThereSection()));
   return healthAndSafetySection;
 }
コード例 #10
0
 private static OutputSection createEndangeredSpeciesOutputSection() {
   OutputSection endangeredSpeciesOutputSection =
       new OutputSection(OutputSectionConstants.ENDANGERED_SPECIES_SECTION_TITLE);
   OutputSection endangeredSpeciesOverviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.ENDANGERED_SPECIES_OVERVIEW_LINES);
   endangeredSpeciesOutputSection.setOutputSectionList(
       Lists.newArrayList(endangeredSpeciesOverviewOutputSection));
   return endangeredSpeciesOutputSection;
 }
コード例 #11
0
 private static OutputSection createMoneyAndCostsSection() {
   OutputSection moneyAndCostsSection =
       new OutputSection(OutputSectionConstants.MONEY_AND_COSTS_SECTION_TITLE);
   OutputSection moneySection =
       new OutputSection(
           OutputSectionConstants.MONEY_SECTION_TITLE, TestDestinationConstants.MONEY_LINES);
   OutputSection costsSection =
       new OutputSection(
           OutputSectionConstants.COSTS_SECTION_TITLE, TestDestinationConstants.COSTS_LINES);
   moneyAndCostsSection.setOutputSectionList(Lists.newArrayList(moneySection, costsSection));
   return moneyAndCostsSection;
 }
コード例 #12
0
 public static OutputSection createTestWildLifeOutputSection() {
   OutputSection wildLifeOutputSection =
       new OutputSection(OutputSectionConstants.WILD_LIFE_SECTION_TITLE);
   OutputSection overviewOutputSection = createWildLifeOverViewOutputSection();
   wildLifeOutputSection.setOutputSectionList(
       Lists.newArrayList(
           overviewOutputSection,
           createAnimalsOutputSection(),
           createBirdsOutputSection(),
           createPlantsOutputSection(),
           createEndangeredSpeciesOutputSection()));
   return wildLifeOutputSection;
 }
コード例 #13
0
 private static OutputSection createGettingAroundOutputSection() {
   OutputSection gettingAroundOutputSection =
       new OutputSection(OutputSectionConstants.GETTING_AROUND_SECTION_TITLE);
   gettingAroundOutputSection.setOutputSectionList(
       Lists.newArrayList(
           createTestGettingAroundAirSection(),
           createTestBicycleSection(),
           createTestGettingAroundBoatSection(),
           createTestCarAndMotorcycleSection(),
           createTestHitchingSection(),
           createTestLocalTransportSection(),
           createTestBusAndTramSection(),
           createTestTrainSection()));
   return gettingAroundOutputSection;
 }
コード例 #14
0
 private static OutputSection createTestVisaSection() {
   OutputSection visasSection = new OutputSection(OutputSectionConstants.VISAS_SECTION_TITLE);
   OutputSection overviewSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.VISA_OVERVIEW_LINES);
   OutputSection otherSection =
       new OutputSection(
           OutputSectionConstants.OTHER_SECTION_TITLE, TestDestinationConstants.OTHER_LINES);
   OutputSection permitsSection =
       new OutputSection(
           OutputSectionConstants.PERMITS_SECTION_TITLE, TestDestinationConstants.PERMITS_LINES);
   visasSection.setOutputSectionList(
       Lists.newArrayList(overviewSection, otherSection, permitsSection));
   return visasSection;
 }
コード例 #15
0
 public static OutputSection createTestWorkLiveStudyOutputSection() {
   OutputSection workLiveStudyOutputSection =
       new OutputSection(OutputSectionConstants.WORK_LIVE_STUDY_SECTION_TITLE);
   OutputSection workOutputSection = new OutputSection(OutputSectionConstants.WORK_SECTION_TITLE);
   OutputSection businessOutputSection =
       new OutputSection(
           OutputSectionConstants.BUSINESS_SECTION_TITLE, TestDestinationConstants.BUSINESS_LINES);
   OutputSection overviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.WORK_OVERVIEW_LINES);
   workOutputSection.setOutputSectionList(
       Lists.newArrayList(overviewOutputSection, businessOutputSection));
   workLiveStudyOutputSection.setOutputSectionList(Lists.newArrayList(workOutputSection));
   return workLiveStudyOutputSection;
 }
コード例 #16
0
 public static OutputSection createTestWeatherOutputSection() {
   OutputSection weatherOutputSection =
       new OutputSection(OutputSectionConstants.WEATHER_SECTION_TITLE);
   OutputSection whenToGoOutputSection =
       new OutputSection(OutputSectionConstants.WHEN_TO_GO_SECTION_TITLE);
   OutputSection overviewOutputSection =
       new OutputSection(
           OutputSectionConstants.OVERVIEW_SECTION_TITLE,
           TestDestinationConstants.WHEN_TO_GO_OVERVIEW_LINES);
   OutputSection climateOutputSection =
       new OutputSection(
           OutputSectionConstants.CLIMATE_SECTION_TITLE, TestDestinationConstants.CLIMATE_LINES);
   whenToGoOutputSection.setOutputSectionList(
       Lists.newArrayList(overviewOutputSection, climateOutputSection));
   weatherOutputSection.setOutputSectionList(Lists.newArrayList(whenToGoOutputSection));
   return weatherOutputSection;
 }