Skip to content

Instantly share code, notes, and snippets.

@blangel
Last active December 30, 2015 19:51
Show Gist options
  • Select an option

  • Save blangel/9ae58ce14aa1dd95bd76 to your computer and use it in GitHub Desktop.

Select an option

Save blangel/9ae58ce14aa1dd95bd76 to your computer and use it in GitHub Desktop.
Overloading Test Methods
test ClassToTest {
methodToTest() {
// testing method named 'methodToTest' on class ClassToTest which takes 0 arguments
}
methodToTest(String) {
// testing overloaded method named 'methodToTest' on class ClassToTest which takes 1 argument of type String
}
// note, there is no restriction one must organize code in this way, this exists to allow programmers to more neatly organize their test methods
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment