Method method = clazz.getMethod( "setGroups", new Class[] { String.class, String.class } );
method.invoke( null, groups, excludedGroups );
}
catch ( ClassNotFoundException e )
{
throw new TestSetFailedException( e.getMessage(), e );
}
catch ( SecurityException e )
{
throw new TestSetFailedException( e.getMessage(), e );
}
catch ( NoSuchMethodException e )
{
throw new TestSetFailedException( e.getMessage(), e );
}
catch ( IllegalArgumentException e )
{
throw new TestSetFailedException( e.getMessage(), e );
}
catch ( IllegalAccessException e )
{
throw new TestSetFailedException( e.getMessage(), e );
}
catch ( InvocationTargetException e )
{
throw new TestSetFailedException( e.getMessage(), e );
}
XmlMethodSelector xms = new XmlMethodSelector();
xms.setName( clazzName );