Created
June 7, 2011 06:58
-
-
Save sourcerebels/1011796 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sourcerebels.tinspect | |
class HashTag { | |
String name | |
public String getName() { | |
println "getName" | |
return name | |
} | |
} | |
class HashTagTests extends GroovyTestCase { | |
public void testShouldHaveAName() { | |
def hashTag = new HashTag() | |
hashTag.name = "tag" | |
assertEquals "tag", hashTag.name | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment