use of org.codice.ddf.spatial.kml.util.KmlMarshaller in project ddf by codice.
the class KMLTransformerImplTest method setUp.
@BeforeClass
public static void setUp() throws IOException {
metacardDate = new Date(metacardDate.getTime() + Calendar.getInstance().getTimeZone().getOffset(metacardDate.getTime()));
when(mockContext.getBundle()).thenReturn(mockBundle);
URL url = KMLTransformerImplTest.class.getResource(DEFAULT_STYLE_LOCATION);
when(mockBundle.getResource(any(String.class))).thenReturn(url);
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
ActionProvider mockActionProvider = mock(ActionProvider.class);
Action mockAction = mock(Action.class);
when(mockActionProvider.getAction(any(Metacard.class))).thenReturn(mockAction);
when(mockAction.getUrl()).thenReturn(new URL(ACTION_URL));
kmlTransformer = new KMLTransformerImpl(mockContext, DEFAULT_STYLE_LOCATION, new KmlStyleMap(), mockActionProvider, new KmlMarshaller());
}
Aggregations