XviExporter { public static String getContent(Sketch sketch, Space<Coord2D> space, double scale) { String text = field(GRIDS_COMMAND, "1 m"); text += multilineField(STATIONS_COMMAND, getStationsText(space, scale)); text += multilineField(SHOT_COMMAND, getLegsText(space, scale)); text += multilineField(SKETCHLINE_COMMAND, getSketchLinesText(sketch, scale)); text += field(GRID_COMMAND, getGridText(space, scale)); return text; }  static String getContent(Sketch sketch, Space<Coord2D> space, double scale);  }
@Test public void testLineIsPassedThroughToXvi() { Survey testSurvey = BasicTestSurveyCreator.createStraightNorth(); BasicTestSketchCreator.drawOneHorizontalLine(testSurvey.getPlanSketch()); String xvi = XviExporter.getContent( testSurvey.getPlanSketch(), Projection2D.PLAN.project(testSurvey), 1.0); Assert.assertTrue(xvi.contains("{BLACK 5.00 0.00 10.00 0.00}")); }