You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that FEST assertions could refactor the StringAssert into CharSequenceAssert class. The idea is to support both StringBuilder and StringBuffer in a very natural way, without converting them to String which is less readable.
Internally, the CharSequenceAssert should have exactly the same code as StringAssert, just the conversion from CharSequence to String will be done internally. That means almost no changes in code.
Joes suggested, that we could still have a StringAssert class inheriting from CharSequenceAssert, so that StringAssert is still here and you could have StringBuilder and StringBuffer assertions.
Any other opinions on that change?
The text was updated successfully, but these errors were encountered:
I think that FEST assertions could refactor the StringAssert into CharSequenceAssert class. The idea is to support both StringBuilder and StringBuffer in a very natural way, without converting them to String which is less readable.
Internally, the CharSequenceAssert should have exactly the same code as StringAssert, just the conversion from CharSequence to String will be done internally. That means almost no changes in code.
Joes suggested, that we could still have a StringAssert class inheriting from CharSequenceAssert, so that StringAssert is still here and you could have StringBuilder and StringBuffer assertions.
Any other opinions on that change?
The text was updated successfully, but these errors were encountered: