84 lines
1.6 KiB
Java
84 lines
1.6 KiB
Java
|
package de.ctdo.bunti.dmx;
|
||
|
|
||
|
import org.junit.Before;
|
||
|
import org.junit.Test;
|
||
|
|
||
|
import static org.junit.Assert.*;
|
||
|
|
||
|
public class DMXMixerImplTest {
|
||
|
DMXMixerImpl dut;
|
||
|
|
||
|
@Before
|
||
|
public void setUp() throws Exception {
|
||
|
dut = new DMXMixerImpl();
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetArtNetSender() throws Exception {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetArtNetDeviceAddress() throws Exception {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testInitDMXData() throws Exception {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSendOutDMXBuffer() throws Exception {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testUpdateDevice() throws Exception {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelGood1() throws Exception {
|
||
|
assertTrue(dut.setDMX512Channel(512, 255));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelGood2() throws Exception {
|
||
|
assertTrue(dut.setDMX512Channel(512, 0));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelGood3() throws Exception {
|
||
|
assertTrue(dut.setDMX512Channel(1, -10));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelGood4() throws Exception {
|
||
|
assertTrue(dut.setDMX512Channel(140, 300));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelBad1() throws Exception {
|
||
|
assertFalse(dut.setDMX512Channel(0, 10));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelBad2() throws Exception {
|
||
|
assertFalse(dut.setDMX512Channel(513, 10));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testSetDMX512ChannelBad3() throws Exception {
|
||
|
assertFalse(dut.setDMX512Channel(-1, -10));
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
@Test
|
||
|
public void testOnApplicationEvent() throws Exception {
|
||
|
|
||
|
}
|
||
|
}
|