package io.bisq.gui.components;

public class ColoredDecimalPlacesWithZerosTextTest {

}

@@ -30,60 +30,1314 @@
 s;%0A%0A
-public class ColoredDecimalPlacesWithZerosTextTest %7B
+import javafx.scene.text.Text;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ColoredDecimalPlacesWithZerosTextTest %7B%0A%0A    @Test%0A    public void testOnlyZeroDecimals() %7B%0A        ColoredDecimalPlacesWithZerosText text = new ColoredDecimalPlacesWithZerosText(%221.0000%22);%0A        Text beforeZeros = (Text) text.getChildren().get(0);%0A        Text zeroDecimals = (Text) text.getChildren().get(1);%0A        assertEquals(%221.0%22, beforeZeros.getText());%0A        assertEquals(%22000%22, zeroDecimals.getText());%0A    %7D%0A%0A    @Test%0A    public void testOneZeroDecimal() %7B%0A        ColoredDecimalPlacesWithZerosText text = new ColoredDecimalPlacesWithZerosText(%221.2570%22);%0A        Text beforeZeros = (Text) text.getChildren().get(0);%0A        Text zeroDecimals = (Text) text.getChildren().get(1);%0A        assertEquals(%221.257%22, beforeZeros.getText());%0A        assertEquals(%220%22, zeroDecimals.getText());%0A    %7D%0A%0A    @Test%0A    public void testMultipleZeroDecimal() %7B%0A        ColoredDecimalPlacesWithZerosText text = new ColoredDecimalPlacesWithZerosText(%221.2000%22);%0A        Text beforeZeros = (Text) text.getChildren().get(0);%0A        Text zeroDecimals = (Text) text.getChildren().get(1);%0A        assertEquals(%221.2%22, beforeZeros.getText());%0A        assertEquals(%22000%22, zeroDecimals.getText());%0A    %7D
 %0A%0A%7D%0A

Add component tests