Added tests for sounds and modified the transparency for the chat history window.

#story[1245]
This commit is contained in:
Kusal Ekanayake
2017-09-12 18:11:32 +12:00
parent e518d13fd5
commit c8dc448a52
6 changed files with 72 additions and 8 deletions
@@ -0,0 +1,25 @@
package seng302.utilities;
import static org.junit.Assert.assertEquals;
import org.junit.Assert;
import org.junit.Test;
/**
* Used to test the muting functionality of the sounds util
* Created by kre39 on 12/09/17.
*/
public class SoundsTest {
@Test
public void testMutes() throws Exception {
Sounds.setMutes();
Assert.assertFalse(Sounds.isMusicMuted());
Assert.assertFalse(Sounds.isSoundEffectsMuted());
Sounds.toggleAllSounds();
Sounds.toggleMuteEffects();
Sounds.toggleMuteMusic();
Assert.assertFalse(Sounds.isMusicMuted());
Assert.assertFalse(Sounds.isSoundEffectsMuted());
}
}