@Test(expected=RuntimeException.class) public void testSetupWithoutISLookupFacade() throws Exception { Configuration conf = new Configuration(); doReturn(conf).when(context).getConfiguration(); mapper.setup(context); }
@Override protected void setup(Context context) throws IOException, InterruptedException { try { objectStoreFacade = ServiceFacadeUtils.instantiate(context.getConfiguration()); } catch (ServiceFacadeException e) { throw new RuntimeException("unable to instantiate MDStore service facade", e); } }
ObjectStoreDocumentContentUrlImporterMapper extends Mapper<AvroKey<Identifier>, NullWritable, AvroKey<DocumentContentUrl>, NullWritable> { @Override protected void setup(Context context) throws IOException, InterruptedException { try { objectStoreFacade = ServiceFacadeUtils.instantiate(context.getConfiguration()); } catch (ServiceFacadeException e) { throw new RuntimeException("unable to instantiate MDStore service facade", e); } } }
ObjectStoreDocumentContentUrlImporterMapper extends Mapper<AvroKey<Identifier>, NullWritable, AvroKey<DocumentContentUrl>, NullWritable> { @Override protected void setup(Context context) throws IOException, InterruptedException { try { objectStoreFacade = ServiceFacadeUtils.instantiate(context.getConfiguration()); } catch (ServiceFacadeException e) { throw new RuntimeException("unable to instantiate MDStore service facade", e); } }  }
ObjectStoreDocumentContentUrlImporterMapper extends Mapper<AvroKey<Identifier>, NullWritable, AvroKey<DocumentContentUrl>, NullWritable> { @Override protected void setup(Context context) throws IOException, InterruptedException { try { objectStoreFacade = ServiceFacadeUtils.instantiate(context.getConfiguration()); } catch (ServiceFacadeException e) { throw new RuntimeException("unable to instantiate MDStore service facade", e); } }   }
ObjectStoreDocumentContentUrlImporterMapper extends Mapper<AvroKey<Identifier>, NullWritable, AvroKey<DocumentContentUrl>, NullWritable> { @Override protected void setup(Context context) throws IOException, InterruptedException { try { objectStoreFacade = ServiceFacadeUtils.instantiate(context.getConfiguration()); } catch (ServiceFacadeException e) { throw new RuntimeException("unable to instantiate MDStore service facade", e); } }    }