@Test public void testProcess() { klvConfiguration.set(KlvProcessor.Configuration.SUBSAMPLE_COUNT, 50); locationKlvProcessor.process(handlers, metacard, klvConfiguration); assertThat(metacard.getLocation(), is(wkt)); }
/** Test a subsample count that is below the minimum required by LocationKlvProcessor. */ @Test public void testBadConfiguration() { klvConfiguration.set( KlvProcessor.Configuration.SUBSAMPLE_COUNT, LocationKlvProcessor.MIN_SUBSAMPLE_COUNT - 1); locationKlvProcessor.process(handlers, metacard, klvConfiguration); assertThat(metacard.getLocation(), nullValue()); }