Finished refactoring

This commit is contained in:
2014-10-01 08:59:59 +02:00
parent 133796730a
commit 9619aac78c
5 changed files with 157 additions and 386 deletions

View File

@@ -0,0 +1,25 @@
package ch.psi.imagej.hdf5;
import static org.junit.Assert.*;
import org.junit.Test;
public class HDF5UtilitiesTest {
@Test
public void testGetGroupDescriptor() {
String descriptor = "/test/one/two/three";
String gdescriptor = HDF5Utilities.getGroupDescriptor(descriptor);
System.out.println(gdescriptor);
assertEquals(gdescriptor, "test/one/two");
}
@Test
public void testGetDatasetDescriptor() {
String descriptor = "/test/one/two/three";
String gdescriptor = HDF5Utilities.getDatasetName(descriptor);
System.out.println(gdescriptor);
assertEquals(gdescriptor, "three");
}
}