@@ -0,0 +1,860 @@
+package cz.eeg.data.io;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport java.io.File;%0D%0A%0D%0Aimport org.junit.After;%0D%0Aimport org.junit.AfterClass;%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport cz.eeg.io.BinaryData;%0D%0Aimport cz.eeg.io.FilesIO;%0D%0A%0D%0Apublic class BinaryDataTest %7B%0D%0A%0D%0A%09BinaryData dataFile=new BinaryData(new File(%22input/Masaryko001_20141124.eeg%22), 3);%0D%0A%09%0D%0A%09@AfterClass%0D%0A%09public static void tearDownAfterClass() throws Exception %7B%0D%0A%09%7D%0D%0A%0D%0A%0D%0A%0D%0A%09@After%0D%0A%09public void tearDown() throws Exception %7B%0D%0A%09%7D%0D%0A%0D%0A%09@Test%0D%0A%09public void testBinaryData() %7B%0D%0A%09%09assertNotNull(dataFile);%0D%0A%09%7D%0D%0A%0D%0A%09@Test%0D%0A%09public void testGetDat() %7B%0D%0A%09%09//dataFile.getDat();%0D%0A%09%09assertArrayEquals(dataFile.getDat(), new BinaryData(new File(%22input/Masaryko001_20141124.eeg%22), 3).getDat());%0D%0A%09%7D%0D%0A%0D%0A%09@Test%0D%0A%09public void testCtiByte() %7B%0D%0A%09%09assertNull(dataFile.getDat()%5B0%5D);%0D%0A%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Test na třídu binary data která čte to eeg