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 testConnectedSurveySketchGetsTranslatedCorrectly() {
  
          Survey currentSurvey = getBasicSurvey("current");
          Survey joinedSurvey = getBasicSurvey("joined");
  
          Sketch sketch = joinedSurvey.getPlanSketch();
          PathDetail pathDetail = sketch.startNewPath(new Coord2D(0, 0));
          pathDetail.lineTo(new Coord2D(0, 1));
          sketch.finishPath();
  
          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);
  
          Sketch translatedSketch = translated.keySet().iterator().next().getPlanSketch();
          PathDetail translatedPathDetail =
                  translatedSketch.getPathDetails().toArray(new PathDetail[] {})[0];
          List<Coord2D> coords = translatedPathDetail.getPath();
          Assert.assertEquals(new Coord2D(0, -1), coords.get(0));
          Assert.assertEquals(new Coord2D(0, 0), coords.get(1));
      }
test_case.class_method_signature: ConnectedSurveysTest.testConnectedSurveySketchGetsTranslatedCorrectly()
test_case.full_signature: @Test public void testConnectedSurveySketchGetsTranslatedCorrectly()
test_case.identifier: testConnectedSurveySketchGetsTranslatedCorrectly
test_case.invocations: getBasicSurvey getBasicSurvey getPlanSketch startNewPath lineTo finishPath connectTwoSurveys getActiveStation getOrigin project getTranslatedConnectedSurveys getPlanSketch next iterator keySet toArray getPathDetails getPath assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConnectedSurveySketchGetsTranslatedCorrectly()
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)