Coverage Report - net.sourceforge.combean.test.adapters.drasys.graph.TestDRAGraphWithEditI
 
Classes in this File Line Coverage Branch Coverage Complexity
TestDRAGraphWithEditI
87%
13/15
N/A
1
 
 1  
 /*
 2  
     This file is part of Combean.
 3  
 
 4  
     Combean is free software; you can redistribute it and/or modify
 5  
     it under the terms of the GNU General Public License as published by
 6  
     the Free Software Foundation; either version 2 of the License, or
 7  
     (at your option) any later version.
 8  
 
 9  
     Combean is distributed in the hope that it will be useful,
 10  
     but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  
     GNU General Public License for more details.
 13  
 
 14  
     You should have received a copy of the GNU General Public License
 15  
     along with Combean; if not, write to the Free Software
 16  
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 17  
 */
 18  
 /*
 19  
  * Created on 23.03.2005
 20  
  *
 21  
  */
 22  
 package net.sourceforge.combean.test.adapters.drasys.graph;
 23  
 
 24  
 import net.sourceforge.combean.adapters.drasys.graph.DRAGraphWithEditIAsGraph;
 25  
 import net.sourceforge.combean.interfaces.graph.Graph;
 26  
 import net.sourceforge.combean.test.graph.generic.AbstractTestConstructableGraphProp;
 27  
 import drasys.or.graph.SparseGraph;
 28  
 
 29  
 /**
 30  
  * @author schickin
 31  
  *
 32  
  */
 33  
 public class TestDRAGraphWithEditI extends AbstractTestConstructableGraphProp {
 34  
     
 35  24
     private SparseGraph draGraph = null;
 36  24
     private DRAGraphWithEditIAsGraph g = null;
 37  
 
 38  
     public static void main(String[] args) {
 39  0
         junit.textui.TestRunner.run(TestDRAGraphWithEditI.class);
 40  0
     }
 41  
 
 42  
     /*
 43  
      * @see AbstractTestConstructableGraphProp#setUp()
 44  
      */
 45  
     protected void setUp() throws Exception {
 46  24
         this.draGraph = new SparseGraph();
 47  24
         this.g = new DRAGraphWithEditIAsGraph(this.draGraph);
 48  
         
 49  24
         super.setUp();
 50  24
     }
 51  
 
 52  
     /*
 53  
      * @see AbstractTestConstructableGraphProp#tearDown()
 54  
      */
 55  
     protected void tearDown() throws Exception {
 56  24
         super.tearDown();
 57  24
     }
 58  
 
 59  
     /**
 60  
      * Constructor for TestDRAGraphWithEditI.
 61  
      * @param name
 62  
      */
 63  
     public TestDRAGraphWithEditI(String name) {
 64  24
         super(name);
 65  24
     }
 66  
     
 67  
     /* (non-Javadoc)
 68  
      * @see net.sourceforge.combean.test.graph.AbstractTestGraph#getGraph()
 69  
      */
 70  
     protected Graph getGraph() {
 71  48
          return this.g;
 72  
     }
 73  
     /* (non-Javadoc)
 74  
      * just a dummy such that eclipse automatically executes the test defined
 75  
      * in the abstract superclasses
 76  
      * 
 77  
      * @see net.sourceforge.combean.test.graph.AbstractTestTwoNodesGraph#testGetNumNodes()
 78  
      */
 79  
     public void testGetNumNodes() {
 80  3
          super.testGetNumNodes();
 81  3
     }
 82  
 }