Created
March 21, 2012 10:42
-
-
Save wsoczynski/2146098 to your computer and use it in GitHub Desktop.
Wiedz, że coś się dzieje 2
This file contains 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
class TestCase1refactored { | |
def doFoo(bar: Bar): Bar = { | |
val result = new Bar(bar.i + 10) | |
return result | |
} | |
} | |
def testCase1refactored() { | |
val bar = new Bar(0) | |
val testedObject = new TestSubject1refactored() | |
val result = testedObject.doFoo(bar) | |
if(result.i == 10){ | |
println("true") | |
} else { | |
println("false") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment