/** Tests the method {@code getMarkerSupport}. */ public void testGetMarkerSupport() { lnf.update( new ILnfMarkerSupportExtension[] { new ILnfMarkerSupportExtension() { public String getId() { return "defaultMarkerSupport"; } public AbstractMarkerSupport createMarkerSupport() { return new MarkerSupport(); } }, new ILnfMarkerSupportExtension() { public String getId() { return "borderMarkerSupport"; } public AbstractMarkerSupport createMarkerSupport() { return new BorderMarkerSupport(); } } }); AbstractMarkerSupport markerSupport = lnf.getMarkerSupport(null); assertNotNull(markerSupport); assertTrue(markerSupport.getClass() == BorderMarkerSupport.class); lnf.setTheme(new DummyTheme()); lnf.initialize(); markerSupport = lnf.getMarkerSupport(null); assertNull(markerSupport); lnf.setTheme(new DummyTheme2()); lnf.initialize(); markerSupport = lnf.getMarkerSupport(null); assertNotNull(markerSupport); assertTrue(markerSupport.getClass() == BorderMarkerSupport.class); }