Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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