assertChanged

private fun assertChanged(oldString: String, newString: String, token: Any, replacement: String): String(source)

Asserts that oldString changes after replacing a token with replacement.

Return

the new string

Parameters

oldString

the original string before replacement

newString

the new string after replacement

token

the value that is replaced

replacement

the new value that replaces the token

Throws

if the original string does not change after the replacement