test_class.declarator: mockActivity
test_class.modifier: @Mock
test_class.original_string: @Mock
      GraphActivity mockActivity;
test_class.type: GraphActivity
test_class.var_name: mockActivity
test_class.file: app/src/test/java/org/hwyl/sexytopo/control/graph/ConnectedSurveysTest.java
test_class.identifier: ConnectedSurveysTest
test_case.body: @Test
      public void testConnectedSurveyGetsTranslatedCorrectly() throws Exception {
  
          Survey currentSurvey = getBasicSurvey("current");
          Survey joinedSurvey = getBasicSurvey("joined");
          connectTwoSurveys(currentSurvey, currentSurvey.getActiveStation(),
                  joinedSurvey, joinedSurvey.getOrigin());
  
          GraphActivity activity = new PlanActivity();
  
          Space<Coord2D> planProjection = Projection2D.PLAN.project(currentSurvey);
          Map<Survey, Space<Coord2D>> translated =
                  ConnectedSurveys.getTranslatedConnectedSurveys(
                          activity, currentSurvey, planProjection);
  
          Assert.assertEquals(translated.size(), 1);
          Survey translatedSurvey = getNamedSurvey(translated, "joined");
          Space<Coord2D> projection = translated.get(translatedSurvey);
          Coord2D newStationPoint = getStationPosition(projection, "2");
          Assert.assertEquals(-2.0, newStationPoint.y, SexyTopo.ALLOWED_DOUBLE_DELTA);
      }
test_case.class_method_signature: ConnectedSurveysTest.testConnectedSurveyGetsTranslatedCorrectly()
test_case.full_signature: @Test public void testConnectedSurveyGetsTranslatedCorrectly()
test_case.identifier: testConnectedSurveyGetsTranslatedCorrectly
test_case.invocations: getBasicSurvey getBasicSurvey connectTwoSurveys getActiveStation getOrigin project getTranslatedConnectedSurveys assertEquals size getNamedSurvey get getStationPosition assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConnectedSurveyGetsTranslatedCorrectly()
focal_class.file: app/src/main/java/org/hwyl/sexytopo/control/graph/ConnectedSurveys.java
focal_class.identifier: ConnectedSurveys
focal_class.class_method_signature: ConnectedSurveys.getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_class.full_signature: public static Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_class.identifier: getTranslatedConnectedSurveys
focal_class.modifiers: public static
focal_class.parameters: (
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_class.return: Map<Survey, Space<Coord2D>>
focal_class.signature: Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_class.class_method_signature: ConnectedSurveys.updateTranslatedConnectedSurveys(
              GraphActivity activity, Survey original,
              Map<Survey, Space<Coord2D>> translated, Survey survey, Space<Coord2D> projection)
focal_class.full_signature: private static void updateTranslatedConnectedSurveys(
              GraphActivity activity, Survey original,
              Map<Survey, Space<Coord2D>> translated, Survey survey, Space<Coord2D> projection)
focal_class.identifier: updateTranslatedConnectedSurveys
focal_class.modifiers: private static
focal_class.parameters: (
              GraphActivity activity, Survey original,
              Map<Survey, Space<Coord2D>> translated, Survey survey, Space<Coord2D> projection)
focal_class.return: void
focal_class.signature: void updateTranslatedConnectedSurveys(
              GraphActivity activity, Survey original,
              Map<Survey, Space<Coord2D>> translated, Survey survey, Space<Coord2D> projection)
focal_class.class_method_signature: ConnectedSurveys.haveWeAlreadyDoneThisSurvey(Map<Survey, Space<Coord2D>> translated, Survey survey, Survey original)
focal_class.full_signature: private static boolean haveWeAlreadyDoneThisSurvey(Map<Survey, Space<Coord2D>> translated, Survey survey, Survey original)
focal_class.identifier: haveWeAlreadyDoneThisSurvey
focal_class.modifiers: private static
focal_class.parameters: (Map<Survey, Space<Coord2D>> translated, Survey survey, Survey original)
focal_class.return: boolean
focal_class.signature: boolean haveWeAlreadyDoneThisSurvey(Map<Survey, Space<Coord2D>> translated, Survey survey, Survey original)
focal_method.body: public static Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection) {
          Map<Survey, Space<Coord2D>> translated = new HashMap<>();
          updateTranslatedConnectedSurveys(activity, survey, translated, survey, projection);
          return translated;
      }
focal_method.class_method_signature: ConnectedSurveys.getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_method.full_signature: public static Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_method.identifier: getTranslatedConnectedSurveys
focal_method.invocations: updateTranslatedConnectedSurveys
focal_method.modifiers: public static
focal_method.parameters: (
              GraphActivity activity, Survey survey, Space<Coord2D> projection)
focal_method.return: Map<Survey, Space<Coord2D>>
focal_method.signature: Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
              GraphActivity activity, Survey survey, Space<Coord2D> projection)