Coverage Summary for Class: TestRemovedVertex (org.umlg.sqlg.test.vertex)

Class Class, % Method, % Line, %
TestRemovedVertex 100% (1/1) 100% (2/2) 80% (4/5)


 package org.umlg.sqlg.test.vertex;
 
 import org.apache.tinkerpop.gremlin.structure.T;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.junit.Assert;
 import org.junit.Test;
 import org.umlg.sqlg.test.BaseTest;
 
 /**
  * Date: 2014/12/06
  * Time: 9:52 AM
  */
 public class TestRemovedVertex extends BaseTest {
 
     @Test(expected = IllegalStateException.class)
     public void testExceptionOnRemovedVertex() {
         Vertex v1 = this.sqlgGraph.addVertex(T.label, "Person", "name", "john");
         v1.remove();
         v1.property("name", "peter");
         Assert.fail("should have thrown exception");
     }
 }