mirror of
https://github.com/paulscherrerinstitute/ch.psi.imagej.hdf5.git
synced 2026-02-19 09:18:50 +01:00
Finished refactoring
This commit is contained in:
25
src/test/java/ch/psi/imagej/hdf5/HDF5UtilitiesTest.java
Normal file
25
src/test/java/ch/psi/imagej/hdf5/HDF5UtilitiesTest.java
Normal 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");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user