@Test public void testNoConnectedSurveysReturnNoUpdatedSurveys() { Survey currentSurvey = getBasicSurvey("not-connected"); Sketch fakeSketch = new Sketch(); when(mockActivity.getSketch(currentSurvey)).thenReturn(fakeSketch); Map<Survey, Space<Coord2D>> translated = ConnectedSurveys.getTranslatedConnectedSurveys( mockActivity, currentSurvey, new Space<Coord2D>()); Assert.assertEquals(translated.size(), 0); }
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; }
ConnectedSurveys { 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; } }
ConnectedSurveys { 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; }  }
ConnectedSurveys { 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; }  static Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
            GraphActivity activity, Survey survey, Space<Coord2D> projection); }
ConnectedSurveys { 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; }  static Map<Survey, Space<Coord2D>> getTranslatedConnectedSurveys(
            GraphActivity activity, Survey survey, Space<Coord2D> projection);  }