MCPcopy Create free account
hub / github.com/apache/groovy / ASTNodeTest

Class ASTNodeTest

src/test/groovy/org/codehaus/groovy/ast/ASTNodeTest.java:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21import junit.framework.TestCase;
22
23public class ASTNodeTest extends TestCase {
24
25 ASTNode astNode = new ASTNode();
26
27 public void testHashCode() {
28 int hashcode = astNode.hashCode();
29
30 astNode.setLineNumber(astNode.getLineNumber() + 10);
31 assertEquals("hashCode is consistent", hashcode, astNode.hashCode());
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected