package org.enoir.graphvizapi.test;
import org.enoir.graphvizapi.Attributes;
import org.enoir.graphvizapi.Node;
import org.enoir.graphvizapi.exception.AttributeNotFondException;
import org.junit.Assert;
import org.junit.Test;

/**
 * Created by frank on 2014/11/27.
 */
public class TestException {
    @Test
    public void TestAttributeNotFond(){
        try {
            Node node = new Node("testId");
            node.addAttributes(new Attributes("color", "#000"));
            node.removeAttributes("label");
        }catch (AttributeNotFondException e) {
            Assert.assertTrue(true);
        }
        Assert.assertTrue(false);
    }
}


@@ -602,17 +602,42 @@
        %7D
-%0A
+catch (Exception ex)%7B%0A    
         
@@ -658,21 +658,31 @@
 rue(false);%0A
+        %7D%0A
     %7D%0A%7D%0A%0A

Fix TestException.