PlotLineGlobalConfiguration { public static PlotLineConnectionType getDefaultConnectionType() { ensureInitialized(); return connection; }  static Font getMarkerFont(); static PlotLineConnectionType getDefaultConnectionType(); static int getLegendPadding();  }
@Test (dataProvider = "knownTypes") public void testKnownConnectionTypes(String connection) { recordMapping("PlotLine.connection", connection); PlotLineConnectionType type = PlotLineGlobalConfiguration.getDefaultConnectionType(); Assert.assertNotNull(type); Assert.assertEquals(type.name(), connection); }
@Test public void testUnkownConnectionType() { recordMapping("PlotLine.connection", "NOT_A_CONNECTION_TYPE"); PlotLineConnectionType type = PlotLineGlobalConfiguration.getDefaultConnectionType(); Assert.assertNotNull(type); Assert.assertNotSame(type.name(), "NOT_A_CONNECTION_TYPE"); }