Skip to content

Instantly share code, notes, and snippets.

@wsoczynski
Created March 21, 2012 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsoczynski/2146098 to your computer and use it in GitHub Desktop.
Save wsoczynski/2146098 to your computer and use it in GitHub Desktop.
Wiedz, że coś się dzieje 2
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