Last active
December 30, 2015 19:51
-
-
Save blangel/9ae58ce14aa1dd95bd76 to your computer and use it in GitHub Desktop.
Overloading Test Methods
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
| 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