mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Added tests for sounds and modified the transparency for the chat history window.
#story[1245]
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user