@Test public void testBval() throws Exception { ETLStatistics etlStatistics = new ETLStatistics(); boolean bval = false; CrsMultiMediaTransformer crsMultiMediaTransformer = new CrsMultiMediaTransformer(etlStatistics); CrsExtractor extractor = new CrsExtractor(multimediaFile, etlStatistics); for (XMLRecordInfo extracted : extractor) { CommonReflectionUtil.setField(AbstractTransformer.class, crsMultiMediaTransformer, "objectID", "RMNH.INS.867435"); CommonReflectionUtil.setField(AbstractTransformer.class, crsMultiMediaTransformer, "input", extracted); Element oaiDcElem = getDescendant(extracted.getRecord(), "oai_dc:dc"); List<Element> frmDigitaleBestandenElems = getDescendants(oaiDcElem, "frmDigitalebestanden"); Element frmDigitaleBestandenElem = frmDigitaleBestandenElems.get(0); Object obj = ReflectionUtil.call(crsMultiMediaTransformer, "bval", new Class[] {Element.class, String.class}, new Object[] {frmDigitaleBestandenElem, "abcd:MultiMediaPublic"}); bval = (boolean) obj; } assertTrue(bval); }
private boolean bval(Element e, String tag) { String s = val(e, tag); return (s == null || s.equals("1")); }
CrsMultiMediaTransformer extends AbstractXMLTransformer<MultiMediaObject> { private boolean bval(Element e, String tag) { String s = val(e, tag); return (s == null || s.equals("1")); } }
CrsMultiMediaTransformer extends AbstractXMLTransformer<MultiMediaObject> { private boolean bval(Element e, String tag) { String s = val(e, tag); return (s == null || s.equals("1")); } CrsMultiMediaTransformer(ETLStatistics stats); }
CrsMultiMediaTransformer extends AbstractXMLTransformer<MultiMediaObject> { private boolean bval(Element e, String tag) { String s = val(e, tag); return (s == null || s.equals("1")); } CrsMultiMediaTransformer(ETLStatistics stats);  }
CrsMultiMediaTransformer extends AbstractXMLTransformer<MultiMediaObject> { private boolean bval(Element e, String tag) { String s = val(e, tag); return (s == null || s.equals("1")); } CrsMultiMediaTransformer(ETLStatistics stats);   }