PentahoOlap4JJndiConnectionReadHandler extends AbstractXmlReadHandler implements OlapConnectionReadHandler { protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "path".equals( tagName ) ) { pathReadHandler = new StringReadHandler(); return pathReadHandler; } return null; } PentahoOlap4JJndiConnectionReadHandler(); Object getObject(); OlapConnectionProvider getProvider();  }
@Test public void testGetHandlerForChild() throws Exception { Attributes attrs = mock( Attributes.class ); assertNull( handler.getHandlerForChild( "uri", "tagName", attrs ) ); assertNotNull( handler.getHandlerForChild( null, "path", attrs ) ); assertNull( handler.getHandlerForChild( null, null, attrs ) ); }