Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
../../../../../img/srcFileCovDistChart5.png 87% of files have more coverage
6   46   4   6
0   20   0.67   1
1     4  
1    
 
  RigidContextChecker       Line # 31 6 4 42.9% 0.42857143
 
  (79)
 
1    /* This file is part of the project "Hilbert II" - http://www.qedeq.org
2    *
3    * Copyright 2000-2013, Michael Meyling <mime@qedeq.org>.
4    *
5    * "Hilbert II" is free software; you can redistribute
6    * it and/or modify it under the terms of the GNU General Public
7    * License as published by the Free Software Foundation; either
8    * version 2 of the License, or (at your option) any later version.
9    *
10    * This program is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    * GNU General Public License for more details.
14    */
15   
16    package org.qedeq.kernel.se.test;
17   
18   
19    import java.lang.reflect.InvocationTargetException;
20   
21    import org.qedeq.base.test.DynamicGetter;
22    import org.qedeq.kernel.se.base.module.Qedeq;
23    import org.qedeq.kernel.se.common.ModuleContext;
24    import org.qedeq.kernel.se.visitor.ContextChecker;
25   
26    /**
27    * We really try to get the context in the module.
28    *
29    * @author Michael Meyling
30    */
 
31    public class RigidContextChecker implements ContextChecker {
32   
 
33  71838 toggle public void checkContext(final Qedeq qedeq, final ModuleContext context) {
34  71838 try {
35  71838 DynamicGetter.get(qedeq, context.getLocationWithinModule());
36    } catch (RuntimeException e) {
37  0 System.err.println(context);
38  0 throw e;
39    } catch (IllegalAccessException e) {
40  0 throw new RuntimeException(e);
41    } catch (InvocationTargetException e) {
42  0 throw new RuntimeException(e);
43    }
44    }
45   
46    }