[gui-test] proper reading text of SimpleColoredComponent

We should use SimpleColoredComponent#getCharSequence method to get the SCC text value instead of iterator because it is not thread safe.
This commit is contained in:
Sergey Karashevich
2018-09-17 18:04:59 +03:00
parent 4035aaec9b
commit e1cd7236ff
@@ -119,14 +119,14 @@ private fun getValueWithCellRenderer(cellRendererComponent: Component, isExtende
private fun SimpleColoredComponent.getFullText(): String? {
return computeOnEdt {
this.iterator().asSequence().joinToString()
this.getCharSequence(false).toString()
}
}
private fun SimpleColoredComponent.getFirstText(): String? {
return computeOnEdt {
this.iterator().asSequence().joinToString()
this.getCharSequence(true).toString()
}
}