diff --git a/test/com/valkryst/VTerminal/AsciiStringTest/ApplyShadeGradientTest.java b/test/com/valkryst/VTerminal/AsciiStringTest/ApplyShadeGradientTest.java deleted file mode 100644 index 62522599a7..0000000000 --- a/test/com/valkryst/VTerminal/AsciiStringTest/ApplyShadeGradientTest.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.valkryst.VTerminal.AsciiStringTest; - -import com.valkryst.VTerminal.AsciiCharacter; -import com.valkryst.VTerminal.AsciiString; -import com.valkryst.VTerminal.misc.IntRange; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.awt.Color; - -public class ApplyShadeGradientTest { - private AsciiString string; - - @Before - public void initializeString() { - string = new AsciiString("ABCDEFGHJIKLMNOP"); - string.setBackgroundColor(Color.WHITE); - string.setForegroundColor(Color.BLACK); - } - - @Test - public void toBackgroundOfAllCharacters() { - string.applyShadeGradient(true); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertNotEquals(Color.WHITE, character.getBackgroundColor()); - Assert.assertEquals(Color.BLACK, character.getForegroundColor()); - } - } - - @Test - public void toForegroundOfAllCharacters() { - string.applyShadeGradient( false); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertEquals(Color.WHITE, character.getBackgroundColor()); - Assert.assertNotEquals(Color.BLACK, character.getForegroundColor()); - } - } - - @Test - public void toBackgroundOfRange() { - final IntRange range = new IntRange(0, string.getCharacters().length); - - string.applyShadeGradient(range, true); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertNotEquals(Color.WHITE, character.getBackgroundColor()); - Assert.assertEquals(Color.BLACK, character.getForegroundColor()); - } - } - - @Test - public void toForegroundOfRange() { - final IntRange range = new IntRange(0, string.getCharacters().length); - - string.applyShadeGradient(range, false); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertEquals(Color.WHITE, character.getBackgroundColor()); - Assert.assertNotEquals(Color.BLACK, character.getForegroundColor()); - } - } -} diff --git a/test/com/valkryst/VTerminal/AsciiStringTest/ApplyTintGradientTest.java b/test/com/valkryst/VTerminal/AsciiStringTest/ApplyTintGradientTest.java deleted file mode 100644 index 1bfaf1d1a2..0000000000 --- a/test/com/valkryst/VTerminal/AsciiStringTest/ApplyTintGradientTest.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.valkryst.VTerminal.AsciiStringTest; - -import com.valkryst.VTerminal.AsciiCharacter; -import com.valkryst.VTerminal.AsciiString; -import com.valkryst.VTerminal.misc.IntRange; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.awt.Color; - -public class ApplyTintGradientTest { - private AsciiString string; - - @Before - public void initializeString() { - string = new AsciiString("ABCDEFGHJIKLMNOP"); - string.setBackgroundColor(Color.BLACK); - string.setForegroundColor(Color.WHITE); - } - - @Test - public void toBackgroundOfAllCharacters_withValidInput() { - string.applyTintGradient(true); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertNotEquals(Color.BLACK, character.getBackgroundColor()); - Assert.assertEquals(Color.WHITE, character.getForegroundColor()); - } - } - - @Test - public void toForegroundOfAllCharacters_withValidInput() { - string.applyTintGradient( false); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertEquals(Color.BLACK, character.getBackgroundColor()); - Assert.assertNotEquals(Color.WHITE, character.getForegroundColor()); - } - } - - @Test - public void toBackgroundOfRange_withValidInput() { - final IntRange range = new IntRange(0, string.getCharacters().length); - - string.applyTintGradient(range, true); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertNotEquals(Color.BLACK, character.getBackgroundColor()); - Assert.assertEquals(Color.WHITE, character.getForegroundColor()); - } - } - - @Test - public void toForegroundOfRange_withValidInput() { - final IntRange range = new IntRange(0, string.getCharacters().length); - - string.applyTintGradient(range, false); - - for (final AsciiCharacter character : string.getCharacters()) { - Assert.assertEquals(Color.BLACK, character.getBackgroundColor()); - Assert.assertNotEquals(Color.WHITE, character.getForegroundColor()); - } - } -}